MCQs on Operator in C

Hello students welcome to CSE Study247 , Today I am provide you MCQs on Operator in C.

This page provide 20 Multiple choice question with Answer that is very useful of Computer science students like preparation of many exam Like ( ISRO,DRDO ,Semester, Interview, TCS , Railway & another Government Sector)

❤️ TOP 500+ C Programming Question and Answer

C programming is the basic language of programming that help to learn another language. So this MCQ is very useful for you.

C-Programming-MCQ-Multiple-Choice-Questions

C is a general purpose ,high level language that originally developed by Dennis Ritchie to develop the UNIX operating system at Bell labs.

 

Q.1 a+b where a and b is





ANSWER= (B) Operand

 

Q.2 a+b where + is





ANSWER= (A) Operator

 

Q.3 Which of the following is example of relational operator in C





ANSWER= (D) All of these

 

Q.4 ++ and — are unary operators





ANSWER= (A) True

 

Q.5 != is the example of —— operator.





ANSWER= (A) Relational

 

Q.6 Find out the output for the following program

  void main()
  {
  int x = 45%10;
  printf(“%d”, x);
  }






ANSWER= (C) 5

Explain 10×4 + 5 = 45. So reminder is 5

 

Q.7 Which of the following operator is used to find the size of any variable ?





ANSWER= (C) Sizeof operator

 

Q.8 Which of the following is a logical opeartor ?





ANSWER= (C) &&

 

Q.9 The operator % can be applied only to ?





ANSWER= (C) interger values

 

Q.10 Find out the output for the following program

  void main()
  {
  float x = 8;
  printf(“%f”, x);
  }






ANSWER= (A) 8.000000

Explain   integer value 8 is promoted to float i.e 8.0 and printed with all 6 decimal numbers

 

Q.11 The symbol of execlusive ‘or’ operator ?





ANSWER= (D) ^

 

Q.12 Which expression execute quickly ?





ANSWER= (D) Both A & B

 

Q.13 Which operator has the lowest priority ?





ANSWER= (A) ||

 

Q.14 Identify the invalid expression ?





ANSWER= (C) –a–

 

Q.15 Find out the output for the following program

  void main()
  {
  float x = 4.5 + 5.5;
  printf(“%d”, (int)x);
  }






ANSWER= (A) 10

 

Q.16 Indentify the invalid compound operators ?





ANSWER=(A) ~ =

 

Q.17 Relational operators cannot be used on





ANSWER= (A) structure

 

Q.18 The operators used to access number of structures is





ANSWER= (C) Both A & B

 

Q.19 Operator % in C Language is called ?





ANSWER= (A) Modulus

 

Q.143 Find out the output for the following program

  void main()
  {
  double y = 12.6;
  int x = 10;
  int z;
  z = x + y;
  printf(“%d”, z);
  }






ANSWER= (B) 22

S.NOMCQSET-1SET-2
1Data TypesCLICK
2Operator CLICKCLICK
3Control Structure CLICKCLICK
4Looping StructureCLICK CLICK
5Array CLICKCLICK
6FunctionCLICKCLICK
7PointerCLICKCLICK
8Structure and UnionsCLICKCLICK
9C Interview MCQCLICKCLICK

1. Official Telegram Click Here
2. Telegram For CSE MCQs Click Here
3. You TubeClick Here