Contents

Which of the following are valid examples of character constant?
a) ‘A’     
b) ‘9’     
c) ‘$’  
d) all of these

d

A character constant must be enclosed in
a) Quotation marks (“)
b) single quotes (‘)
c) Exclamation points (!)  
d) pound signs (#)

b

What is the valid range of numbers for int type of data?
a) 0 to 256                           
b) -32768 to 32767
c) 65535 to +65536           
d) no specific range

b

How many bytes are occupied by the statement float a, b?
a) 1                        
b) 4                        
c) 8                        
d) 16

c

An expression consists of…..
a) constant                           
b) variable
c) operator                           
d) all of these

d

Which of the following are valid expressions in C++ except?
a) sales-revenue
b) Mpg, Gallons
c) Pi*Radius                        
d) M/n

b