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
51. Where does the execution of everry C program starts ?
- Every C program starts in the main () function.
- Every C program starts in the begin () function
- Every C program starts in the initialize () function.
- Every C program starts in the start () function.
52. 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.
- only option I
- only option 2
- both options 1 and 2
- Neither option 1 nor 2
53. What is themaximum value of a signed data type that is 8 bits in size ?
- 2 to the power of 7
- 2 to the power of 8
- (2 to the power of 7) minus 1
- (2 to the power of 8) minus 1
54. What is the largest value aninteger can hold in an ANSI C compiler ?
- 65536
- 2147483647
- INT_MAX
- 1<< INT_BITS
55. Among the following, which escape sequence does not have anyspecific meaning ?
- '\t'
- '\a'
- '\b'
- '\c'
56. The escape sequence character '\x07' is equivalent to thecharacter.
- '\a'
- '\b'
- '\r'
- '\f'
57. Which of these is an invalid identifier ?
- wd-count
- wd-count
- w4count
- wdcountabcd
58. 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 ?
- 2k/9
- (2k+8)/9
- (k+8)/9
- 2*(k+8)/9