Contents

Which of the following is the correct format of preprocessor directive?
a) @define identifier value       
b) #define identifier value
c) &define identifier value       
d) %define identifier value

b

Which part of the program executed always first in C++ program?
a) main () function      
b) body function
c) both a & b               
d) none of these

a



Which of the following symbol is used as statement terminator in C++ program?
a) colon (:)                  
b) semicolon (;)
c) comma (,)                
d) none of these

b

The part of source code ignored by compiler is called……
a) comment                 
b) complement
c) common part
d) none of these

a



How many types of comments used in C++ program?
a) one  
b) two 
c) three
d) four


b

Explanation: single line comment, multi-line comment



Which of the following symbol is used to represent single line comment?
a) ampersand (&)         
b) at rate (@)
c) double slash (//)       
d) none of these

c