Classical

C Programming MCQ - Mixed Bag

36:  

The most significant hit will be lost in which of the following operations?

A.

>>

B.

complementation

C.

<<

D.

none of the above

 
 

Option: A

Explanation :


37:  

 If the bit pattern corresponding to a signed integer is shifted to the right then

A.

vacant bit will be filled by the sign bit

B.

vacant bit will be filled by 0

C.

the outcome is implementation dependent

D.

none of the above

 
 

Option: C

Explanation :


38:  

 If the word size is 16 bit, then ~0xc5 will be

A.

0x3a 

B.

0xff3a

C.

0x5c

D.

none of the above

 
 

Option: B

Explanation :


39:  

Preprocessing is typically done

A.

either before or at the beginning of the compilation process

B.

after compilation but before execution

C.

after loading

D.

none of the above

 
 

Option: A

Explanation :


40:  

Choose the correct statements.

A.

'x' is same as "x"

B.

length of the string "x" is two

C.

Unless otherwise specified, the first name in an enum has the value 1

D.

None of the above

 
 

Option: D

Explanation :




Suggest an improvement