C - Elements of C Language Questions and Answers
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;
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
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
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
38. Identify the separator (s) in C.
- white space character
- comment
- options a and b
- semicolon
39. Identify the wrong statement .
- # define /* symbolic constant */MAX 100
- int/*declaration */a,b;
- char cl,c2;
- # define MAX 25;