Expressions – Yes / No Questions

1. Are the following two statement same?

1. a <= 20 ? (b = 30): (c = 30);
2. (a <=20) ? b : (c = 30);

A. Yes
B. No

Correct Answer: B. No
ADVERTISEMENT

2. Two different operators would always have different Associativity.

A. Yes
B. No

Correct Answer: B. No
ADVERTISEMENT

3. Will the expression *p = p be disallowed by the compiler?

A. Yes
B. No

Correct Answer: B. No
ADVERTISEMENT

4. Every operator has an Associativity

A. Yes
B. No

Correct Answer: A. Yes
ADVERTISEMENT

Leave A Comment?