Electronics and Communication Engineering - Microprocessors

31. 

Consider the following DO statement in Fortran 77

DO 52 N = 1, 10, 3

The number of DO loop executions in the above statement is

A. 1
B. 10
C. 3
D. 4

Answer: Option D

Explanation:

Do statement is executed when N = 1, 4, 7, 10, i.e., a total of 4 times.


32. 

Which of the following can not be used as a variable name in C?

A. else
B. coal
C. ram
D. vendy

Answer: Option A

Explanation:

else is not allowed as variable name in C.


33. 

In Java it is possible to have

  1. An array of integers
  2. An array of string objects
  3. An array of arrays
  4. An array on integer and strings
Which of the above are correct?

A. All
B. 1, 2 and 3 only
C. 1 and 2 only
D. 1, 3 and 4 only

Answer: Option B

Explanation:

An array on integers and strings is not possible.


34. 

A 256 x 4 EPROM has

A. 8 address pins and 4 data pins
B. 8 address pins and 8 data pins
C. 4 address pins and 8 data pins
D. 4 address pins and 4 data pins

Answer: Option A

Explanation:

28 = 256


35. 

To evaluate X = (A + B + 1.2) * (A + B - C) the sequence of operation is

A. + + + - * =
B. * + + + - =
C. + + - * + =
D. - + + + * =

Answer: Option A

Explanation:

Parenthesis has first priority.