STD 10
STD 10
2. C is a _______language.
(A) structured (B) portable
(C) middle level and higher level (D) all of the given
3. Which of the following is/are included in the optional section of C program?
(A) Documentation (B) Symbolic Constant Definition
(C) File Include Section and Global (D) All of the given
Variable Declaration
4. In C language, comments are enclosed within________.
(A) / and/ (B) < and > (C) /* and */ (D) * and*
5. The pre-processor directive #define is used to define which of the following in
C?
(A) String constant. (B) Symbolic constant
(C) Integer constant (D) A character
6. In C language. symbolic constant is generally written using ______.
(A) include (B) # define (C) main (D) none of the
given
7. The extension of header file is________.
(A) A head (B) header (C) h (D) none of the
given
8. Each C program starts with _________statement.
(A) #define PI 3.14 (B) #include (C) Include <> (D) none of the
<stdio.h> given
9. How many types of variables can be used in a C program?
(A) 2 (B) 3 (C) 4 (D) 5
10. C variables are governed by ________.
(A) type (B) name (C) scope (D) all of the given
11. The global variables are defined _________.
Page 1
(A) within { } (B) before defining (C) after the end of (D) none of the
main () main ( ) given
12. The execution of C program starts from _______.
(A) #include (B) # define PI 3.14 (C) main ( ) (D) All of the given
<stdio.h>
13. _______of the following is a user defined function.
(A) main (B) printf ( ) (C) scanf ( ) (D) #define PI 3.14
14. The functions already available in C that a user can use in his or her program
are known as ________functions.
(A) In-built (B) Library (C) User defined (D) A or B
15. C statements ends with_______ sign.
(A) : (B) : (C) , (D) >
16. What is the extension of C source code?
(A) src (B) .c (C) exe (D) csre
17. Which of the following is an extension of C program file?
(A) c (B) h (C) s (D) t
18. Which of the following converts a source program into machine language
program?
(A) Compiler / (B) Loader (C) Linker (D) All of the given
translator
19. The source code converted into machine language program by compiler is
known as _______.
(A) Object code (B) Object program (C) A or B (D) Executable code
21. _______is used to link the object code with the library functions giving executable
program or code.
(A) Compiler (B) Loader (C) Linker (D) D All of the
given
Page 2
(A) A Letters (B) White spaces (C) Special (D) Digits
Characters
27. _________ value can be stored in a variable declared using int keyword.
(A) A Positive (B) Negative (C) A or B (D) Real
28. Which of the following refers to size of memory allocated to int as per
gcc compiler?
(A) 2 (B) 4 (C) 6 (D) 8
29. Signed int data type has a range of __________.
(A) (-32767 to +32768) (B) (-2147483648 to +2147483647)
(C) (0 to 2147483647) (D) (0 to 4294967295)
30. In C, ________keyword is used along with int to increase the range of integer
numbers higher than +2147483647.
(A) unsigned (B) long (C) float (D) double
31. gcc compiler allocates _________ bytes of memory to the variable declared using
long int.
(A) 8 (B) 6 (C) 4 (D) 2
35. Which of the following refers to size of memory allocated to float as per gcc
compiler?
(A) 1 (B) 2 (C) 4 (D) 6
36. The increase range of double numbers _______ is used as prefix to double.
(A) unsigned (B) long (C) wide (D) twice
Page 3
(A) 4 (B) 2 (C) 1 (D) 3
39. The signed char has a range of_______.
(A) (-128 to +127) (B) (-32768 to (C) O to 256 (D) 0 to 255
32767)
48. _______ statement tells the compiler to exit from the function body
(A) } (B) return 0 (C) quit (D) end
49. When C program is written using ________, there is no need write ‘ return 0;’
(A) { (B) void (C) main (D) void main ( )
50. Each data type is allocated a fixed memory space in C and is denoted by _______.
(A) A constant (B) byte (C) variable (D) data type
----- -----