C++ Programming Basics Multiple Questions and Answers.

11.Which of the following is used for comments in C++ ?
A. // comment
B. /* comment */
C. both // comment or /* comment */
D. // comment */

12.Which of the following is called address operator ?
A. *
B. &
C. _
D. %

13.Which of the following is a correct identifier in C++ ?
A. 7var_name
C. VAR_1234
D. $var_name

14.Which of the following is the correct syntax of including a user defined header files in C++ ?
A. #include
B. #include
C. #include “userdefined”
D. #include [userdefined]


Quick Links

GAT Subject

   Computer Science    English Mcqs    Agriculture    


   Computer Science    Civil Engineering    


   Networking    Electronics    Database    

Past Papers

   Model Papers    FPSC Papers