Exercise: Microprocessors

Questions for: Microprocessors

Let JCOKE = 20 and LPEPSI =15. Consider the statement

IF(2* JCOKE. LE. LPEPSI)
JCOKE = JCOKE + 5
JCOKE = JCOKE + 3

The value of JCOKE after the execution of above statement will be
A:
25
B:
23
C:
15
D:
17
Answer: B

Since 2 x J COKE = 40 and (LPEPSI) is 15 control goes to statement J COKE = J COKE + 3 and result is 23.

If it is desired to tabulate number of students in a class in Fortran language, a proper variable name is
A:
ST
B:
STUD
C:
NSTUD
D:
STD
Answer: C

It is an integer. Hence N as first character.

The signal in 8086 are in minimum mode when
A:
MN / Mx pin is tied to Vcc
B:
MN / Mx pin is grounded
C:
MN / MX pin is left open
D:
none of the above
Answer: A
No answer description is available. Let's discuss.
Accumulator is an 8 bit register and is also known as register B.
A:
True
B:
False
C:
D:
Answer: B

Accumulator is register A.

Which of the following integer expressions is incorrect in Pascal?
A:
L div M + P
B:
A * * B
C:
A div B - C
D:
A mod B
Answer: B

Two operators cannot be together.

Ad Slot (Above Pagination)
Quiz