C Programming MCQ - Mixed Bag

21:  

Choose the correct comments
In a bit-field

A.

a field can he un-named

B.

a field can be of width 0

C.

if a field is un-named, its width must not be zero

D.

a field must have a name

 
 

Option: B

Explanation :

Click on Discuss to view users comments.

Write your comments here:



22:  

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 the above

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



23:  

Bit-fields will he accommodated in a word

A.

from left to right

B.

from right to left

C.

in a way that depends on the implementation

D.

none of the above

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here:



24:  

C preprocessor

A.

takes care of conditional compilation

B.

takes care of macros

C.

takes care of include files & acts before compilation

D.

All of the above

 
 

Option: D

Explanation :

Click on Discuss to view users comments.

Write your comments here:



25:  

A preprocessor command

A.

need not start on a new line

B.

need not start on the first column

C.

has # as the first character

D.

comes before the first executable statement

 
 

Option: C

Explanation :

Click on Discuss to view users comments.

Write your comments here: