C - Elements of C Language Questions and Answers

Practice Mode
Showing 10 of 58 questions
Q51
Where does the execution of everry C program starts ?
  • A Every C program starts in the main () function.
  • B Every C program starts in the begin () function
  • C Every C program starts in the initialize () function.
  • D Every C program starts in the start () function.
Answer: Option A
Q52
 Regarding real values in C, which of the following it TRUE ? 1. float occupiesless memory than a double. 2. The range of real numbersthat can be represented by a double is less than those represented by a float.
  • A only option I
  • B only option 2
  • C both options 1 and 2
  • D Neither option 1 nor 2
Answer: Option A
Q53
What is themaximum value of a signed data type that is 8 bits in size ?
  • A 2 to the power of 7
  • B 2 to the power of 8
  • C (2 to the power of 7) minus 1
  • D (2 to the power of 8) minus 1
Answer: Option C
Q54
 What is the largest value aninteger can hold in an ANSI C compiler ?
  • A 65536
  • B 2147483647
  • C INT_MAX
  • D 1<< INT_BITS
Answer: Option C
Q55
Among the following, which escape sequence does not have anyspecific meaning ?
  • A '\t'
  • B '\a'
  • C '\b'
  • D '\c'
Answer: Option D
Q56
&nbsp;The escape &nbsp;sequence character &nbsp;'\x07' is equivalent to thecharacter.&nbsp;
  • A '\a'
  • B '\b'
  • C '\r'
  • D '\f'
Answer: Option A
Q57
&nbsp;Which of these is an invalid identifier ?
  • A wd-count
  • B wd-count
  • C w4count
  • D wdcountabcd
Answer: Option A
Q58
&nbsp;In a compiler there are 36 bits for a word and to store a character, 8 bits are needed.in this to store a character two words are appended.then for storing k characters string, how many words are needed ?
  • A 2k/9
  • B (2k+8)/9
  • C (k+8)/9
  • D 2*(k+8)/9
Answer: Option A
Questions and Answers for Competitive Exams Various Entrance Test