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

31.  Symbolic constants are defined as 

  • # define S1 S2
  • # define S1 S2
  • # define S1 = S2
  • # define S1 = S2;
Show Answer Report

32.  The symbolic  # in the # define statement must commence from 

  • anywhere in a line
  • the first column of a line
  • the first column of next line
  • the first line
Show Answer Report

33.  What is an object in C ?

  • constant
  • variable
  • indentifier
  • keyword
Show Answer Report

34.  Statement terminator is represented by 

  • :
  • blank
  • ;
  • \in
Show Answer Report

35.  Whchis true in case of ANSI C?

  • Comments are represented in between /* and /*
  • Nested comments are not allowed
  • Nested comments are allowed.
  • Comments are not allowed within a string constant
Show Answer Report

36.  Identify the correct statement(s) related to token .

  • Token is an individual entity of a program.
  • Tokens are identified during the complication
  • Compiler always constitutes the longest possible token.
  • All the above
Show Answer Report

37.  Identify the number of tokens in the followng : if (age =21)

  • 4
  • 5
  • 6
  • 7
Show Answer Report

38. Identify the separator (s) in C.

  • white space character
  • comment
  • options a and b
  • semicolon
Show Answer Report

39. Identify the wrong statement .

  • # define /* symbolic constant */MAX 100
  • int/*declaration */a,b;
  • char cl,c2;
  • # define MAX 25;
Show Answer Report

40.  Which is aninvalid variable name ?

  • Int
  • Xx
  • net-salary
  • floating
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test