Contents

The variable names cannot begin with….
a) number                            
b) underscore
c) upper-case-letter             
d) lower-case-letter

a

Which of the following is an illegal variable name?
a) _cust_num                      
b) jan2009
c) datOfWeek                      
d) 2dGraph

d

Which statement is true about data types?
a) each data has no memory requirement
b) each data has different requirement
c) each data has same memory requirement
d) none of these

b

The numeric data types in C++ can be divided into two general categories called
a) integer and floating                     
b) single and double
c) numbers and characters
d) arithmetic and algebra

a

The data type int stores…..
a) whole numbers              
b) numbers that have fraction parts
c) comments                        
d) strings

a

The number of bytes used by int data types in C++ is……
a) 2                        
b) 8                        
c) 12                      
d) 16

a