Classical

C Programming MCQ - Operators & Expressions

11:  

In an operation involving || operator, evaluation

A.

takes place from left to right

B.

will be stopped if one of its components evaluates to true

C.

takes place from right to left

D.

both (a) and (b)

 
 

Option: D

Explanation :


12:  

Pick the operators that assosciate from the left

A.

+

B.

,

C.

<

D.

All of the above

 
 

Option: D

Explanation :


13:  

Pick the operators that assosiate from the right

A.

?:

B.

+=

C.

=

D.

All of the above

 
 

Option: D

Explanation :


14:  

The operators . ,  || , < , = , if arranged in the ascending order of precedence reads

A.

. , | I , < , =

B.

= , < , | | , .

C.

= , | | , < , .

D.

< , || , = , .

 
 

Option: C

Explanation :


15:  

Pick the operators that assosiate from left to right

A.

&&

B.

?:

C.

,

D.

All of the above

 
 

Option: D

Explanation :




Suggest an improvement