Microprocessors

Q1:
Consider the following C program int ram

float alpha, gamma
ram = 6400
alpha = 0.562
gamma = alpha * ram + 1


Now consider the following statements about this program
  1. ram is an integer variable
  2. alpha, gamma are real variables
  3. *, + are arithmetic operators
  4. 0.562 may be an integer constant or real constant
Which of the above are correct?

A All

B 1, 2, 3 only

C 2, 3, 4 only

D 1, 2, 4 only

ANS:B - 1, 2, 3 only

0.562 is not an integer constant.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.