Classical

C Programming MCQ - Constant Variables & Data Types

41:  

Which of the following comments about wide characters is/are true ?

A.

it is binary representation of a character in the extended binary set

B.

it is of integer type wchar_t

C.

end of file is represented by WEOF

D.

All of the above

 
 

Option: D

Explanation :


42:  

 Which of the following is true of external variables?

A.

they provide a way for two way communication between functions

B.

their scope extends from the point of definition through the remainder of the program

C.

if they are not initialized, they will be initilised to zero

D.

All of the above 

 
 

Option: D

Explanation :


43:  

Choose the correct statements

A.

address is the numeric value associated with a memory location

B.

two variables can have the same address

C.

value of a variable can be an address

D.

All of the above

 
 

Option: D

Explanation :


44:  

The declaration 

  int x : 4;

means

A.

x is a four digit integer

B.

x cannot be greater than a four digit integer

C.

x is a four-bit integer 

D.

none of above

 
 

Option: C

Explanation :


45:  

 As soon as a pointer variable is freed, its value 

A.

is set to null

B.

becomes unpredictable

C.

is set to 1

D.

remains the same

 
 

Option: D

Explanation :




Suggest an improvement