Boolean's Multiple Questions and Answers.

1.Is bool a fundamental data type in C++?
A. No, it is expanded from macros
B. No, it is an enum of {false, true}
C. No, it is a typedef of unsigned char
D. Yes

2.Find the odd one out?
A. std::vector
B. std::vector
C. std::vector
D. std::vector

3.What is the value of the bool?
A. 1
B. 2
C. False
D. True

4.What happens when a null pointer is converted into bool?
A. The statement is ignored
B. Bool value evaluates to false
C. Bool value evaluates to true
D. An error is flagged

5.For what values of the expression is an if-statement block not executed?
A. 0
B. 0 and -1
C. 0 and all negative values
D. 0, all negative values, all positive values except 1


Quick Links

GAT Subject

   Computer Science    English    Agriculture    Botany    


   Computer Science    Civil Engineering    


   Networking    Electronics    Database    

Past Papers

   Model Papers    FPSC    PPSC    NTS