C Operators Questions and Answers

Practice Mode
Showing 10 of 122 questions
Q1
Whcih is most appropriate one ?
  • A x<<1
  • B x*2
  • C x+x
  • D All are same
Answer: Option A
Q2
Bitwise operators are applicable only on
  • A Integers
  • B Integers and characters
  • C Integers and floats
  • D Integers, floats and double
Answer: Option B
Q3
Which operator enjoys the lowest priority from the group of operators ?
  • A Comma operator
  • B Conditional operator
  • C Assignment operator
  • D Unary operator
Answer: Option C
Q4
which operator is used both as an operators and a keyword?
  • A Right shifting operator
  • B Cast operator
  • C Sizeof operator
  • D Token pasting operator
Answer: Option C
Q5
How to find generic root of a number ?
  • A p%11
  • B p%9
  • C p%13
  • D None of the above
Answer: Option B
Q6
Find the output. void main ( ) { int a=8, x; x=++a++a+++a; printf(&quot;%d, %d, x, a); }
  • A 33,11
  • B 24,11
  • C 24,5
  • D Compilation error
Answer: Option D
Q7
x%y is equal to
  • A y-(x/y)*x
  • B x-(x/y)*y
  • C x-(y/x)*x
  • D y-(y/x)*y
Answer: Option B
Q8
Which of the following operator has left to right associatively?
  • A Sizeof opeator
  • B Paranthesis
  • C Conditional operator
  • D Assignment operator
Answer: Option B
Q9
Find the output void main ( ) { int x,y; x=10; y=sizeof(++x); printf(&quot;x=%d y=%d&quot;, x,y); }
  • A x=10 y=2
  • B x=11 y=2
  • C Compilation error
  • D None of these
Answer: Option A
Q10
Find the output void main ( ) { int a,b,c=32; if (a==b==c) printf(&quot;dealhi challo&quot;); else printf(&quot;d or die&quot;); }
  • A delhi chaool
  • B do or die
  • C compile time error
  • D Runtime error
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test