Exercise: Microprocessors

Questions for: Microprocessors

Consider the following in C

int k
float a ;
k = 4.2
a = 300


The values stored in computer memory for k and a are respectively
A:
4.2 and 300
B:
4 and 300 respectively
C:
4.2 and 300.00 respectively
D:
4 and 300.00 respectively
Answer: D
No answer description is available. Let's discuss.

Assertion (A): The 'do while' statement is used less frequently than the 'while' statement.

Reason (R): For most applications it is more natural to test for continuation of loop at the beginning than at the end of loop.

A:
Both A and R are correct and R is correct explanation of A
B:
Both A and R are correct but R is not correct explanation of A
C:
A is correct R is wrong
D:
A is wrong R is correct
Answer: A
No answer description is available. Let's discuss.
In C the range of real constants expressed in exponential form is
A:
-2.3 e 37 to + 2.3 e 37
B:
-3.4 e 38 to + 3.4 e 38
C:
-3.4 e 37 to + 3.4 e 37
D:
-2.3 e 38 to + 2.3 e 38
Answer: C
No answer description is available. Let's discuss.
Which of the following statements is non-executable in FORTRAN 77?
A:
DO
B:
ASSIGN
C:
END
D:
DIMENSION
Answer: D
No answer description is available. Let's discuss.
In Pascal the repeat and while loops will terminate
A:
only when the logical expression controlling the loop becomes true for both repeat and while loops
B:
only when the logical expression controlling the loop becomes false for both repeat and while loops
C:
only when the logical expression controlling the loop becomes true for repeat loop and false for while loop
D:
only when the logical expression controlling the loop becomes false for repeat loop and true for while loop
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz