Contents

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

a

Which of the following is correct format variable declaration?
a) datatype variable name;     
b) variable name datatype
c) variable name datatype;
d) none of these

a

How many variables of same datatype can be declared in a single statement?
a) one variable      
b) many variables
c) both a & b          
d) none of these

c

The process of assigning a value to variable is called…….
a) initialization
b) declaration
c) specification
d) none of these

a



Which of the following operator is used to initialize a variable?
a) NOT operator                      
b) assignment operator
c) AND operator          
d) OR operator

b

Explanation: Assignment operator is =



Which of the following is the correct format for initialization?
a) int a==3                   
b) int a=3
c) int a=3;                   
d) int a==3.

c

Fundamental Datatype in C++