C - Operators and Expressions Questions and Answers

Practice Mode
Showing 10 of 65 questions
Q41
 The associativity of logical AND, OR is 
  • A right to left
  • B left to right
  • C option a for arithmetic expression and b for pointer expression
  • D option a for pointer expression and b for arithmetic expression
Answer: Option B
Q42
 Which operator has the lowest priority ?
  • A Assignment
  • B Division
  • C Comma
  • D Conditional operator
Answer: Option C
Q43
 Which operator has the highest priority ?
  • A ( )
  • B ->
  • C .
  • D all the above
Answer: Option D
Q44
 Which operator has thehighest priority ?
  • A + +
  • B %
  • C +
  • D /
Answer: Option A
Q45
 Which operator has the lowest priority ?
  • A &
  • B +
  • C <=
  • D ||
Answer: Option D
Q46
&nbsp;Which is executed quickly ?
  • A p++
  • B ++p
  • C options a and b
  • D p + 1
Answer: Option C
Q47
&nbsp;p++ executes faster than p + 1 since
  • A p uses registers
  • B single machine instruction is required for p ++
  • C options a and b
  • D none of the above
Answer: Option B
Q48
&nbsp;Of the following, which are logical operators ?
  • A &&
  • B !
  • C ||
  • D options a, b, and c
Answer: Option D
Q49
&nbsp;In a C expression, how is a logical AND represented ?
  • A ||
  • B .AND
  • C @@
  • D &&
Answer: Option D
Q50
&nbsp;Which of the following is a ternaryoperator ?.
  • A ?:
  • B *
  • C sizeof
  • D ^
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test