Pages

Tuesday, 22 September 2015

C Language Online Quiz Questions And Answers

16. What is constant?
A. Constants have fixed values that do not change during the execution of a program
B. Constants have fixed values that change during the execution of a program
C. Constants have unknown values that may be change during the execution of a program
D. None of the above
Answer : A

17. Which is the right way to declare constant in C?
A. int constant var =10;
B. int const var = 10;
C. const int var = 10;
D. B & C Both
Answer : D

18. Which operators are known as Ternary Operator?
A. ::, ?
B. ?, :
C. ?, ;;
D. None of the avobe
Answer : B

19. In switch statement, each case instance value must be _______?
A. Constant
B. Variable
C. Special Symbol
D. None of the avobe
Answer : A

20. What is the work of break keyword?
A. Halt execution of program
B. Restart execution of program
C. Exit from loop or switch statement
D. None of the avobe
Answer : C

No comments:

Post a Comment