Electronics and Communication Engineering - Microprocessors

16.
Initially the number decimal 8 is stored. If instruction RAL is executed twice, the final number stored will be
decimals 8
decimal 16
decimal 32
decimal 2
Answer: Option
Explanation:

If instruction RAL is executed once the number gets doubled.


17.
In Java 31% gives an answer
3
4
3 / 4
4 / 3
Answer: Option
Explanation:

Modulus operator gives the remainder of division as answer.


18.
For the expression cos (ωt + 0) the correct Pascal equivalent is
BETA * JCOS (OMEGA * T + THETA) / SQRT (SQR (BETA) + SQR (OMEGA))
BETA COS (OMEGA * T + THETA) / SQRT [SQR (BETA) + SQR (OMEGA)]
BETA COS (OMEGA T + THETA) / SQRT [SQR (BETA) + SQR (OMEGA)]
None of the above
Answer: Option
Explanation:

Operator * must be written explicitly in Pascal.


19.
Consider the following features of 'structures' in C?
  1. The values of a structure variable can be assigned to another structure variable of the same type using the assignment operator.
  2. One structure can be nested within another structure.
  3. A variable structure can also be passed to a function.
Which of the above are correct?
All
1 and 2 only
1 and 3 only
2 and 3 only
Answer: Option
Explanation:

All are correct.


20.

Assertion (A): In 8085 SP and PC are 8 bit each.

Reason (R): 8085 is an 8 bit microprocessor.

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:

SP and PC are 16 bit each in 8085.