Q.1.

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}
Q.2.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int i=    i = i++;
    printf("%d\n", i);
    return}
Q.3.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int x=y=z;
    z = x!=4 || y ==
    printf("z=%d\n", z);
    return
}
Q.4.

Associativity of an operator is either Left to Right or Right to Left.

Q.5.

Every operator has an Associativity

Q.6.

Which of the following are unary operators in C?

1. !
2. sizeof
3. ~
4. &&
Q.7.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int i=
    int j = i + (5);
    printf("%d\n", j);
    return
}
Q.8.

What will be the output of the program?

#include<stdio.h>
int main()
{
    int a=b=c;
    c = (a ==|| b > 200);
    printf("c=%d\n", c);
    return
}
Q.9.

What will be the output of the program?

#include<stdio.h>
int main()
{
    static int a[20];
    int i =    a[i] = i  ;
    printf("%d, %d, %d\n", a[0], a[1], i);
    return}