Electronics and Communication Engineering - Microprocessors

36.
For the floating point numbers 1.81 x 10-29 and 0.0152 x 1018 the normalised forms are
0.181 x 10-28 and 0.152 x 1017 respectively
18.1 x 10-30 and 0.152 x 1017 respectively
0.181 x 10-28 and 1.52 x 1016 respectively
None of the above
Answer: Option
Explanation:

In normalised form, the integer part is zero.


37.
In computers the secondary memory is faster than primary memory.
True
False
Answer: Option
Explanation:

Secondary memory is slow.


38.
Consider the following in C
  1. An arithmetic operation between integer and an integer gives integer as the result.
  2. An arithmetic operation between a real and a real constant gives real constant as the result.
  3. An arithmetic operation between an integer constant and a real constant is not valid.
Which of the above are correct?
All
1 and 2 only
2 and 3 only
1 and 3 only
Answer: Option
Explanation:

Mixed mode statement is allowed in C.


39.
Binary storage of decimal number 44 in 8 bits is
00101100
10101100
10101101
00101101
Answer: Option
Explanation:

Use decimal to binary conversion method.


40.
LET JCOKE = 11 and LPEPSI = 19. Consider the statement

IF (JCOKE - LPEPSI) 5, 5, 7
5 JCOKE = JCOKE + 2
7 JCOKE = JCOKE + 5

The value of JCOKE after the execution of above statement will be
13
16
9
14
Answer: Option
Explanation:

(J COKE - L PEPSI) is 11 - 19 = - 8 Since (J COKE - L PEPSI) is negative statement 5 is executed and result is 11 + 2 = 13.