Contents

How many datatypes are most used in C++?
a) four 
b) five 
c) six
d) seven

b

Explanation: Character datatype, Integer datatype, Floating point datatype, Boolean datatype, Unsigned datatype



Which of the following datatype is used to store single character value?
a) character datatype             
b) integer datatype
c) floating point datatype         
d) Boolean datatype

a



What is the correct format for declaring character datatype?
a) character gender;     
b) char gender;
c) character gender      
d) char gender

b

What is the signed range of character datatype?
a) 0 to 255                   
b) -128 to 127
c) 127 to 255               
d) none of these

b

What is the unsigned range of character datatype?
a) 0 to 255                   
b) -128 to 127
c) 127 to 255               
d) none of these

a

How many bytes are required for character variable in declaration?
a) 1 byte                                  
b) 2 bytes
c) 4 bytes                    
d) 5 bytes

a