C - Elements of C Language Questions and Answers

Practice Mode
Showing 10 of 58 questions
Q21
 A character constant is written within 
  • A double quotes
  • B single quotes
  • C options a and b
  • D none of the above
Answer: Option B
Q22
 String constants are represented within
  • A single quotes
  • B double quotes
  • C options a and b
  • D \* and *\
Answer: Option B
Q23
 Identify the invalid string constant . 
  • A " A + B "
  • B " "
  • C " ' "
  • D ' A '
Answer: Option D
Q24
 Whch is not a character constant ?
  • A '\60]
  • B '\012'
  • C '\x24'
  • D 'sum'
Answer: Option D
Q25
 Identify the invalid constant
  • A " "
  • B ' '
  • C ' in '
  • D ' \ b'
Answer: Option C
Q26
Identify the escape sequence (s).
  • A \0
  • B \n
  • C \f
  • D all the above
Answer: Option D
Q27
 Which is not a white space character ?
  • A \f
  • B \v
  • C \0
  • D blank
Answer: Option C
Q28
Identify the white space character (s).
  • A blank
  • B \f
  • C \r
  • D all the above
Answer: Option D
Q29
 Identify the invalid string constant .
  • A "\t 10\t 15t"
  • B "cost = 90\x24\n"
  • C "\n Don't care condition "
  • D ' C is flexible'
Answer: Option D
Q30
 If a constant is given a name it becomes 
  • A a string consant
  • B manifest
  • C const declaration
  • D invalid
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test