#### Expressions

6

In the expression a=b=5 the order of Assignment is NOT decided by Associativity of operators

A. True
B. False

7

The expression of the right hand side of || operators doesn't get evaluated if the

left hand side determines the outcome.

A. True
B. False

8

Associativity has no role to play unless the precedence of operator is same.

A. True
B. False

9

What will be the output of the program?
#include<stdio.h>
int main()
{
int i=2;
int j = i + (1, 2, 3, 4, 5);
printf("%d\n", j);
return 0;
}

A. 4
B. 7
C. 6
D. 5

10

What will be the output of the program?

#include<stdio.h>
int main()
{
char ch;
ch = 'A';
printf("The letter is");
printf("%c", ch >= 'A' && ch <= 'Z' ? ch + 'a' - 'A':ch);
printf("Now the letter is");
printf("%c\n", ch >= 'A' && ch <= 'Z' ? ch : ch + 'a' - 'A');
return 0;
}

A. The letter is a Now the letter is A
B. The letter is A Now the letter is a
C. Error
D. None of above