Electronics and Communication Engineering - Microprocessors

6.
Which has volatile memory?
Magnetic tape
RAM
Diskette
Hard disk
Answer: Option
Explanation:

RAM has volatile memory and therefore the matter has to be saved frequently.


7.
Consider the following logical IF statement in FORTRAN 77

IF (SALT. EQ. PEPPER) GO TO 11
GOTO 13

The above statement using arithmetic IF statement would be
IF (SALT - PEPPER) 13, 11, 13
IF (SALT - PEPPER) 11, 11, 13
IF (SALT - PEPPER) 11, 13, 13
IF (SALT - PEPPER) 13, 11, 11
Answer: Option
Explanation:

The given statement is logical IF statement. The control goes to statement 11 if SALT = PEPPER otherwise control goes to statement 13 Same is true in arithmetic statement (a).


8.
Consider the following DO statement in Fortran 77

DO 23 X = 10.0, 2.0

The number of DO loop executions in the above statement is
10
2
5
zero
Answer: Option
Explanation:

Do loop will not be executed since 0 is less than 10.


9.
Contents of RAM cannot be altered.
True
False
Answer: Option
Explanation:

It is read and write memory. Its contents can be changed.


10.
Which of the following operations will give the result 2 in C?
5 / 2
4.0 / 2
4.0 / 2.0
4 / 2.0
Answer: Option
Explanation:

Since both 5 and 2 are integers, the result will be 2.