C - Elements of C Language Questions and Answers

Practice Mode
Showing 10 of 58 questions
Q31
 Symbolic constants are defined as 
  • A # define S1 S2
  • B # define S1 S2
  • C # define S1 = S2
  • D # define S1 = S2;
Answer: Option A
Q32
 The symbolic  # in the # define statement must commence from 
  • A anywhere in a line
  • B the first column of a line
  • C the first column of next line
  • D the first line
Answer: Option A
Q33
 What is an object in C ?
  • A constant
  • B variable
  • C indentifier
  • D keyword
Answer: Option B
Q34
 Statement terminator is represented by 
  • A :
  • B blank
  • C ;
  • D \in
Answer: Option C
Q35
 Whchis true in case of ANSI C?
  • A Comments are represented in between /* and /*
  • B Nested comments are not allowed
  • C Nested comments are allowed.
  • D Comments are not allowed within a string constant
Answer: Option B
Q36
 Identify the correct statement(s) related to token .
  • A Token is an individual entity of a program.
  • B Tokens are identified during the complication
  • C Compiler always constitutes the longest possible token.
  • D All the above
Answer: Option D
Q37
 Identify the number of tokens in the followng : if (age =21)
  • A 4
  • B 5
  • C 6
  • D 7
Answer: Option C
Q38
Identify the separator (s) in C.
  • A white space character
  • B comment
  • C options a and b
  • D semicolon
Answer: Option C
Q39
Identify the wrong statement .
  • A # define /* symbolic constant */MAX 100
  • B int/*declaration */a,b;
  • C char cl,c2;
  • D # define MAX 25;
Answer: Option D
Q40
 Which is aninvalid variable name ?
  • A Int
  • B Xx
  • C net-salary
  • D floating
Answer: Option C
Questions and Answers for Competitive Exams Various Entrance Test