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
1
10
3
4
Answer: Option
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?
else
coal
ram
vendy
Answer: Option
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?
All
1, 2 and 3 only
1 and 2 only
1, 3 and 4 only
Answer: Option
Explanation:

An array on integers and strings is not possible.


34.
A 256 x 4 EPROM has
8 address pins and 4 data pins
8 address pins and 8 data pins
4 address pins and 8 data pins
4 address pins and 4 data pins
Answer: Option
Explanation:

28 = 256


35.
To evaluate X = (A + B + 1.2) * (A + B - C) the sequence of operation is
+ + + - * =
* + + + - =
+ + - * + =
- + + + * =
Answer: Option
Explanation:

Parenthesis has first priority.