C - Elements of C Language Questions and Answers

Practice Mode
Showing 10 of 58 questions
Q41
 Identify the  correct statement .
  • A The variable names VOLUME and volume are identical
  • B The variable names Sum andsum are identical.
  • C Variables are not declared before use.
  • D Variable names may be absent in a declaration.
Answer: Option D
Q42
Identify the invalid identifier.
  • A NET_$
  • B BINGO
  • C _ACCOUNT
  • D _4
Answer: Option A
Q43
 Which is the most appropriate variable initialization ?
  • A # define MAX 100
  • B int x, y; y = 15
  • C float y = 2.14;
  • D char c;c = 'O' ;
Answer: Option C
Q44
 Tokens are separated by using 
  • A :
  • B .
  • C ;
  • D separator
Answer: Option D
Q45
 An escape sequencce commences with 
  • A \
  • B /
  • C ?
  • D #
Answer: Option A
Q46
 Identify the worng declaration. 
  • A int n = {7}
  • B char c2 = 'A' + 25, cl = 'Z';
  • C int x ; y ;
  • D int x = 10, y = x * 20, year;
Answer: Option C
Q47
 Identify the wrong sentence. 
  • A # define isa preprocessor facility.
  • B # define aids in modifying a constant value throughout the program.
  • C # define uses a statement terminator.
  • D # define improves the readabilitty of the program.
Answer: Option C
Q48
 What is avariable declaration ?
  • A The assignment of propertiesto a variable.
  • B Theassignment of memory space to a variable.
  • C The assignment of properties and memory space to a variable.
  • D The assignment of properties and indentification to a variable.
Answer: Option D
Q49
 What are strings ?
  • A They are contiguous blocks of characters and a terminating NUL.
  • B They are individual characters linked together to form a string.
  • C Both options (a) and (b)
  • D None of the above.
Answer: Option C
Q50
 In addition to the length of the string, whatmust be considered while determining the minimum number of characters required to store a C strings ?
  • A An EOF at the end must be considered.
  • B A '\0' at the end must be considered.
  • C Apart from the string itself, there is nothing else tobe considered when determining the length of the string.
  • D A '\0\n' at the end must be considered.
Answer: Option B
Questions and Answers for Competitive Exams Various Entrance Test