C - Operators and Expressions Questions and Answers

Practice Mode
Showing 10 of 65 questions
Q11
 Assume c1 and c2 as char variables. if C1='A'; c2='2'' what ar the results of the statements putchar (C1 + 3) andputchar (C2 - 1))?
  • A D, 1
  • B C, 2
  • C d, 1
  • D c, 1
Answer: Option A
Q12
 Which is not a valid expression ?
  • A +0XAB5
  • B -0525
  • C 15-
  • D +a
Answer: Option C
Q13
 Which is not a valid expression ?
  • A -p++
  • B ++p--
  • C ++6
  • D ++x++
Answer: Option C
Q14
 Which is not a valid expression ?
  • A ++(a + )
  • B y--
  • C -- x --
  • D ++p+q
Answer: Option A
Q15
 The equality operator isrepresented by 
  • A :=
  • B .EQ.
  • C =
  • D ==
Answer: Option D
Q16
 Identify the logical operator. 
  • A !
  • B !=
  • C ~
  • D ==
Answer: Option A
Q17
 Identify the relational operator. 
  • A &&
  • B >
  • C ||
  • D !
Answer: Option B
Q18
 The number of bitwise operators in C is 
  • A 3
  • B 4
  • C 5
  • D 6
Answer: Option C
Q19
 The number of bitwise operators in C is 
  • A 4
  • B 5
  • C 6
  • D 7
Answer: Option C
Q20
The symbol of bitwise AND operator is 
  • A <<
  • B &=
  • C &&
  • D &
Answer: Option D
Questions and Answers for Competitive Exams Various Entrance Test