2024_12_23_08_15
2024_12_23_08_15
2024_12_23_08_15
Page 1
11. The extension of header file is________.
(A) A head (B) header (C) h (D) none of the
given
12. How many types of variables can be used in a C program?
(A) 2 (B) 3 (C) 4 (D) 5
13. The global variables are defined _________.
(A) within { } (B) before defining (C) after the end of (D) none of the
main () main ( ) given
15. At which place, the user defined functions other than the main are written in C
program?
(A) before main ( ) (B) after main ( ) (C) A or B (D) within main ( )
16. The function_________ is used for calculating value of X raised to given power.
(A) pow ( ) (B) expo ( ) (C) sqr ( ) (D) none of the
given
17. C statements ends with_______ sign.
(A) : (B) : (C) , (D) >
18. _______of the following indicates the end of the main function.
(A) ) (B) ; (C) } (D) >
19. The program written using a text editor is known as _______.
(A) source (B) object code (C) executable code (D) loader code
code/source
program
20. What is the extension of C source code?
(A) src (B) .c (C) exe (D) csre
Page 2
25. _______data type is used as prefix to function name.
(A) void (B) int (C) Boat (D) char
26. The type of value that can be assigned to an identifier is known as its _______.
(A) constant (B) variable (C) data type (D) array
27. Warning message function should return a value appears when return 0;"
statement is not written in the function. Which of the following should be
written to avoid getting such message?
(A) null main ( ) (B) void main ( ) (C) int main ( ) (D) blank main ( )
28. _______ statement tells the compiler to exit from the function body
(A) } (B) return 0 (C) quit (D) end
30. The statement declaring any integer variable or any variable is called a
_______statement.
(A) function (B) data type (C) program (D) declaration
31. _________ value can be stored in a variable declared using int keyword.
(A) A Positive (B) Negative (C) A or B (D) Real
34. gcc compiler allocates _________ bytes of memory to the variable declared using
long int.
(A) 8 (B) 6 (C) 4 (D) 2
Page 3
39. _______values are precise to 6 and at times 7 decimal digits.
(A) float (B) double (C) long double (D) All of the given
40. Float data types are precise to_______ decimal digits. Le., after the ‘.’.
(A) 6 (B) 5 (C) 4 (D) 7
41. Float data types are precise at times_______ decimal digits. i.e., before the ‘.’.
(A) 6 (B) 5 (C) 4 (D) 7
42. To get higher precision than the float data type_______ data type is used along
with float.
(A) long (B) double (C) Int (D) unsigned int
43. ______data type are precise to 16 decimal digits, i.e., after the decimal points.
(A) float (B) long float (C) double (D) short float
44. double values use_______ bytes memory space.
(A) 4 (B) 6 (C) 1 (D) 8
45. ________ of the following data types occupies 16 bytes memory space.
(A) Long double (B) Double (C) Float (D) All of the given
----- -----