Posts

Showing posts with the label C language Multiple Choice Questions

C language Multiple Choice Questions

C language Multiple Choice Questions 1) Array is a _________ data structure. Non-linear Primary Linear Data type  Answer: (c) Linear Explanation: An array is a non-primitive and linear data structure that only stores a similar data type. 2) Which of the following statement is correct about the array? In the array, users can only allocate the memory at the run time. In the array, users can only allocate the memory at the compile time. The array is a primitive and non-linear data structure that only stores a similar data type. All of the these  Answer: (b) In the array, users can only allocate the memory at the compile time. Explanation: An array is a non-primitive and linear data structure that only stores a similar data type. In array, users can only allocate the memory at the compile time. 3) Which of the following statement is correct about the C language? The C language is a binary language with some extra features. The C language is a high-level language with some low feat...

C language Multiple Choice Questions

C language Multiple Choice Questions 1) What is the 16-bit compiler allowable range for integer constants? -3.4e38 to 3.4e38 -32767 to 32768 -32668 to 32667 -32768 to 32767  Answer: (d) -32768 to 32767 Explanation: In a 16-bit C compiler, we have 2 bytes to store the value. The range for signed integers is -32768 to 32767. The range for unsigned integers is 0 to 65535. The range for unsigned character is 0 to 255. 2) Study the following program: main() {printf("javatpoint"); main();} main() {printf("javatpoint"); main();} What will be the output of this program? Wrong statement It will keep on printing javatpoint It will Print javatpoint once None of the these  Answer: (b) It will keep on printing javatpoint Explanation: In this program, the main function will call itself again and again. Therefore, it will continue to print javatpoint. 3) What is required in each C program? The program must have at least one function. The program does not require any function. Inpu...