Contents

Which of the following symbol is used for multi-line comment?
a) @....@                    
b) //……//
c) /*……*/                  
d) /*………/*

c

Explanation: multi-line comment start with slash asterisk and end with asterisk slash



C++ Constants and Variables


The quantity that cannot be changed during program execution is called…
a) variable                   
b) constant
c) alphabet                  
d) all of these

b



How many categories of constants are in C++ language?
a) one  
b) two 
c) three
d) four


c

Explanation: Literal, Boolean, Symbolic constants



How many types of literal constants?
a) one  
b) two 
c) three
d) four

c

Explanation: string constant, numeric constant, character constant



The sequence of alphabetic characters, digits, and special symbols written in double quotation mark is called…….
a) string constant
b) numeric constant
c) character constant
d) all of these

a