Contents

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 are examples of number constant?
a) +4                                      
b) -5
c) both a & b                       
d) none of these

c

What is the maximum length of string constant?
a) 64 characters  
b) 128 characters
c) 256 characters               
d) 512 characters

c

Which of the followings are examples of string constants?
a) Pakistan                           
b) “123”
c) 5-plates                            
d) none of these

b

Which of the following constants consists of positive or negative signed numerals?
a) string constant
b) numeric constant
c) character constant
d) all of these

b

Which of the following symbol is used to represent single line comment?
a) ampersand (&)               
b) at rate (@)
c) double slash (//)             
d) none of these

c