Electronics and Communication Engineering - Microprocessors

26.

Assertion (A): Mnemonics are used in assembly level program.

Reason (R): Computer cannot understand mnemonics.

Both A and R are correct and R is correct explanation of A
Both A and R are correct but R is not correct explanation of A
A is correct R is wrong
A is wrong R is correct
Answer: Option
Explanation:

Both are correct but independent. Computers work in binary only.


27.
Which of the following is a valid real variable in FORTRAN 77?
KPR
LINE
JOB
RATE
Answer: Option
Explanation:

A real variable should not start with I, J, K, L, M, N.


28.
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
IF (SALT - PEPPER) 11, 11, 13
IF (SALT - PEPPER) 13, 11, 13
IF (SALT - PEPPER) 13, 11, 11
IF (SALT - PEPPER) 11, 13, 13
Answer: Option
Explanation:

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.


29.

Assertion (A): Microprocessor 8085 can address 65536 memory locations.

Reason (R): Microprocessor 8085 has 16 address lines.

Both A and R are correct and R is correct explanation of A
Both A and R are correct but R is not correct explanation of A
A is correct R is wrong
A is wrong R is correct
Answer: Option
Explanation:

216 = 65536.


30.
If initial value of PROD is zero and a program adds X to PROD, Y times we get the result
X + Y
XY
X / Y
X - Y
Answer: Option
Explanation:

Adding X to PROD, Y times evidently gives the product XY.