Microprocessors

Q1:
Consider the following logical IF statement in FORTRAN 77

IF (SALT. GE. PEPPER) GOTO 11
GOTO 13

The above statement using arithmetic IF statement would be

A IF (SALT - PEPPER) 11, 11, 13

B IF (SALT - PEPPER) 13, 11, 13

C IF (SALT - PEPPER) 13, 11, 11

D IF (SALT - PEPPER) 11, 13, 13

ANS:C - IF (SALT - PEPPER) 13, 11, 11

The given statement is logical IF statement. If SALT greater than or equal to PEPPER control goes to statement 11 otherwise control goes to statement 13 Same is true of arithmetic IF statement (c). If (SALT - PEPPER) is negative, control goes to statement 13 and otherwise control goes to statement 11.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.