C - Elements of C Language Questions and Answers

Take Exam

The Elements of C Language questions with answers cover the fundamental building blocks of C programming, including variables, data types, operators, and control structures. These programming questions and answers are ideal for beginners aiming to strengthen their coding foundation. Each question is designed to test conceptual clarity and coding accuracy, commonly seen in TCS, Wipro, and Infosys placement exams. With explanations and examples, these MCQs help learners prepare effectively for both academic tests and real-world programming challenges.

C - Elements of C Language

Showing 10 of 58 questions

21.  A character constant is written within 

  • double quotes
  • single quotes
  • options a and b
  • none of the above
Show Answer Report

22.  String constants are represented within

  • single quotes
  • double quotes
  • options a and b
  • \* and *\
Show Answer Report

23.  Identify the invalid string constant . 

  • " A + B "
  • " "
  • " ' "
  • ' A '
Show Answer Report

24.  Whch is not a character constant ?

  • '\60]
  • '\012'
  • '\x24'
  • 'sum'
Show Answer Report

25.  Identify the invalid constant

  • " "
  • ' '
  • ' in '
  • ' \ b'
Show Answer Report

26. Identify the escape sequence (s).

  • \0
  • \n
  • \f
  • all the above
Show Answer Report

27.  Which is not a white space character ?

  • \f
  • \v
  • \0
  • blank
Show Answer Report

28. Identify the white space character (s).

  • blank
  • \f
  • \r
  • all the above
Show Answer Report

29.  Identify the invalid string constant .

  • "\t 10\t 15t"
  • "cost = 90\x24\n"
  • "\n Don't care condition "
  • ' C is flexible'
Show Answer Report

30.  If a constant is given a name it becomes 

  • a string consant
  • manifest
  • const declaration
  • invalid
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test