Latest C Program - Operators and Expressions MCQ quiz section | Questions and answer with Solution | Jobvision.in
Dear Student, welcome to C Program - Operators and Expressions quiz section. Are you are preparing for competitive exams, candidate should prepared C Program - Operators and Expressions MCQ Questions and answer. Here you can practice all the latest C Program - Operators and Expressions MCQ with Explanations questions and answers for free. Along with answers you can also find detailed solutions for all C Program - Operators and Expressions questions. These aptitude questions will help you to crack competitive exams such as IT written exams, government exams, bank exams, entrance exams etc.
1 Which of the following operator takes only integer operands?
2 In an expression involving || operator, evaluation
- Will be stopped if one of its components evaluates to false
- Will be stopped if one of its components evaluates to true
- Takes place from right to left
- Takes place from left to right
3 Determine output:
void main()
{
int i=0, j=1, k=2, m;
m = i++ || j++ || k++;
printf(%d %d %d %d, m, i, j, k);
}
4 Determine output:
void main()
{
int c = - -2;
printf(c=%d, c);
}
5 Determine output:
void main()
{
int i=10;
i = !i>14;
printf(i=%d, i);
}
6 In C programming language, which of the following type of operators have the highest precedence
7 What will be the output of the following program?
void main()
{
int a, b, c, d;
a = 3;
b = 5;
c = a, b;
d = (a, b);
printf(c=%d d=%d, c, d);
}
8 Which of the following comments about the ++ operator are correct?
9 What will be the output of this program on an implementation where int occupies 2 bytes?
#include <stdio.h>
void main()
{
int i = 3;
int j;
j = sizeof(++i + ++i);
printf(i=%d j=%d, i, j);
}
10 Which operator has the lowest priority?
11 What will be the output?
void main(){
int a=10, b=20;
char x=1, y=0;
if(a,b,x,y){ printf(EXAM);
}
}
12 What number will z in the sample code given below?
int z, x=5, y= -10, a=4, b=2;
z = x++ - --y*b/a;
13 What is the output of the following statements?
int i = 0;
printf(%d %d, i, i++);
14 What is the output of the following statements?
int b=15, c=5, d=8, e=8, a;
a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;
printf(%d, a);
15 What will be the output of the following code fragment?
void main()
{
printf(%x,-1<<4);
}
16 Find the output of the following program 
17 Find the output of the following program 
18 Determine output of the following program code
19 Choose the correct output for the following program 
20 Consider the following program fragment, and choose the correct one
void main()
{
int a, b = 2, c;
a = 2 * (b++);
c = 2 * (++b);
}
21 Which operator from the following has the lowest priority?
22

Identify the correct output of the following code:
23 Given b=110 and c=20, what is the value of 'a' after execution of the expression a=b-=c*=5?
24 what will be the output when following code is executed?
void main()
{
int a=10, b;
b = a++ + ++a;
printf(%d %d %d %d, b, a++, a, ++a);
}
25
Determine output
void main()
{
int c = - -2;
printf(c=%d, c);
}