C - Operators and Expressions Questions and Answers

Practice Mode
Showing 10 of 65 questions
Q1
 The number of binary arithmetic operators in C is 
  • A 5
  • B 4
  • C 6
  • D 7
Answer: Option A
Q2
 The number of unaryarithmetic operatorsin C is 
  • A 1
  • B 4
  • C 3
  • D 2
Answer: Option B
Q3
The operator % yields 
  • A quotient value
  • B remaindervalue
  • C percentage value
  • D fractional part of the division
Answer: Option B
Q4
 The operator / when applied to floatingvalues yields 
  • A remainder value
  • B negative value of the remainder
  • C quotient including fractional part
  • D integer quotient value only.
Answer: Option C
Q5
 The operator % can be applied only to
  • A float values
  • B double values
  • C options a and b
  • D integral values
Answer: Option D
Q6
 x % y is equal to 
  • A (x -(x/y))
  • B (x (x/y)* y)
  • C (y-(x/y))
  • D (y - (x/y)* y)
Answer: Option B
Q7
 The operator / can be applied to 
  • A integral values
  • B float values
  • C double values
  • D all the above
Answer: Option D
Q8
 The second operand of the operator % must always be 
  • A negative value
  • B non-zero
  • C zero
  • D positive value
Answer: Option B
Q9
 If both the operands of the operator / are integers, the result is 
  • A a float value
  • B an integer value
  • C option a or b
  • D undefined
Answer: Option B
Q10
 Integer dividion results in 
  • A rounding of thefractional part of the quotient
  • B truncating the fractional part of the quotient
  • C floating value
  • D syntax error
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test