Operator MCQ Questions and Answers

Home | C Language | Operator

C Operators MCQs Questions and Answers: Here learn c operators objective questions and answers for Online Test, C Mock Test for online exam.

Page: 1/5

1) Which of the following is not logical operator?

2) In mathematics and computer programming, which is the correct order of mathematical operators ?

3) In which numbering system can the binary number 1011011111000101 be easily converted to?

4) Which bitwise operator is suitable for turning off a particular bit in a number?

5) Which bitwise operator is suitable for turning on a particular bit in a number?

6) Which bitwise operator is suitable for checking whether a particular bit is on or off?

7) What is the output of this C code?

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

8) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = 3;
int l = i / -2;
int k = i % -2;
printf("%d %d\n", l, k);
return 0;
}

9) What is the output of this C code?

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

10) What is the output of this C code?

#include <stdio.h>
int main()
{
int i = -5;
i = i / 3;
printf("%d ", i);
return 0;
}