10th Computer Full Book Mcqs
10th Computer Full Book Mcqs
10th
Exam Syllabus
FULL BOOK
1. A software that facilitates programmers in writing computer programs is (A) A compiler (B) An editor (C) An IDE (D) A debugger
known as ..................................
2. .................................. is a software that is responsible for the conversion of (A) Compiler (B) Editor (C) IDE (D) Debugger
3. Every programming language has some primitive building blocks and follows (A) (B) Syntax (C) (D)
some grammar rules known as its .................................. Programming Building blocks Semantic rules
rules
4. A list of words that are predefined and must not be used by the programmer (A) Auto words (B) (C) (D)
to name his own variables are known as .................................. Reserved words Restricted words Predefined
words
5. include statements are written in .................................. section. (A) header (B) main (C) Comments (D) print
6. .................................. are added in the source code to further explain the (A) Messages (B) Hints (C) Comments (D) Explanations
7. .................................. are the values that do not change during the whole (A) Variables (B) Constants (C) Strings (D) Comments
execution of program.
9. For initializing a variable, we use .................................. operator. (A) --> (B) = (C) @ (D) ?
10. .................................. can be thought of as a container store constants. (A) Box (B) Jar (C) Variable (D) Collection
11. Computers can help us to solve .................................. problems. (A) Easy (B) Tough (C) Several (D) Minimum
12. Series of .................................. are known as a computer program. (A) Instructions (B) Numbers (C) Digits (D) Commands
13. The process of .................................. or storing these instruction in the (A) Creating (B) Modifying (C) Updating (D) Feeding
14. The person who knows how to write a computer .................................. (A) Summery (B) Program (C) Story (D) Article
15. Computers cannot understand .................................. (A) Urdu (B) English (C) Both A & B (D) 0, 1
16. Example(s) of computer programming language is/are (A) Java (B) C++ (C) C# (D) All of these
..................................
17. Python is a/an .................................. (A) (B) (C) English word (D) All of these
Programming Common
language language
18. C language was developed by ................................. (A) (B) (C) Both A & B (D)
Babbage
19. An IDE has a/an .................................. (A) OS (B) GUI (C) Mac (D) Window
20. An IDE consists of .................................. that help a programmer. (A) Commands (B) Statements (C) Environment (D) Tools
21. A software that provides a programming environment to facilitate (A) GUI (B) OS (C) IDE (D) Mac
22. Name(s) of IDE is/are .................................. (A) Visual Studio (B) Xcode (C) Code::Blocks (D) All of these
23. A text editor is a .................................. that allows programmers to write (A) Software (B) Statement (C) Command (D) Screen
24. All IDEs have their own specific .................................. (A) Statements (B) Commands (C) Text editors (D) All of these
25. Computers only understand and work in .................................. language. (A) Assembly (B) Machine (C) High level (D)
None of these
26. A .................................. is a software that is responsible for conversion of a (A) Compiler (B) Syntax (C) Program (D) IDE
27. A software that provides a programming environment to facilitate (A) Work place (B) Work space (C) IDE (D) All
28. The set of rules in programming language is known as (A) Codes (B) Program (C) Syntax (D) Compiler
29. Every programming language has a list of words that are (A) Other words (B) (C) (D) Defined
words
30. Predefined words are known as .................................. (A) (B) Keywords (C) Both A & B (D)
31. Reserved word(s) is/are .................................. (A) Auto (B) Double (C) Int (D) All of these
32. Reserved word(s) is/are .................................. (A) case (B) do (C) Both A & B (D) do-it
33. Reserved word(s) is/are .................................. (A) volatile (B) union (C) return (D) all
34. We include header files in our program by writing .................................. (A) include (B) break (C) void (D) main
35. We include file .................................. that contains information related to (A) main() (B) math.h (C) stdio.h (D) conio.h
36. Every C program must contain a .................................. function. (A) stdio.h (B) main() (C) conio.h (D) math.h
37. The body of main() is enclosed in the .................................. braces. (A) [ ] (B) () (C) {} (D) All of these
38. Each statement ends with a .................................. symbol. (A) Colon (B) Semi colon (C) Comma (D) Full stop
39. C language is .................................. sensitive. (A) very (B) no (C) not case (D) case
40. .................................. are the statements in a program that are ignored by (A) Comments (B) Function (C) Braces (D) Integers
41. In C programming, there are .................................. types of comments. (A) 1 (B) 2 (C) 3 (D) 4
42. Single-line comment start with .................................. (A) .. (B) * (C) /* (D) //
43. Multi-line comment start with .................................. (A) /* (B) // (C) \\ (D) \*
44. Multi-line comment end at .................................. (A) /* (B) //* (C) */ (D) *//
45. Single line comments start with ......: (A) \\ (B) // (C) || (D) *//
46. The body of main is enclosed ......: (A) ( ) (B) [ ] (C) { } (D) < >
47. In C programming, there are ...... types of comments: (A) 1 (B) 2 (C) 3 (D) 4
48. C programming language has a character set that includes (A) Alphabets (B) Digits (C) (D) All of these
Special symbols
..................................
49. .................................. are the values that cannot be changed by a program. (A) Functions (B) Variables (C) Constants (D)
None of these
50. Example(s) of constant is/are .................................. (A) 11 (B) 13.9 (C) -5 (D) All of these
51. Type(s) of constant is/are .................................. (A) (B) (C) (D) All of these
constant
52. Example(s) of integer constant is/are .................................. (A) 13 (B) -9 (C) -355 (D) All of these
53. Example(s) of real constant is/are .................................. (A) 4.5 (B) 666 (C) -87 (D) 0
54. Example(s) of character constant is/are .................................. (A) ‘100’ (B) ‘Z’ (C) Both A & B (D) -60
55. The value of a .................................. can be changed in a program. (A) Constant (B) Function (C) Variable (D) All of these
56. Each variable has a unique name called .................................. (A) Identifier (B) Data type (C) Both A & B (D)
None of these
57. Each variable has a .................................. (A) Unique name (B) Data type (C) Both A & B (D) Constant
58. Data type(s) is/are .................................. (A) int (B) float (C) char (D) All of these
59. A .................................. is actually a name given to a memory location, as (A) Constant (B) Variable (C) Function (D)
60. The type int is used to store .................................. (A) Integer (B) Real (C) Character (D) All of these
61. The type float is used to store .................................. (A) Integer (B) Character (C) Real (D)
None of these
62. The type char is used to store .................................. (A) Integer (B) Real (C) Character (D) All of these
63. Integer takes up .................................. bytes of memory. (A) 2 (B) 4 (C) 6 (D) 8
64. A signed int can store .................................. values. (A) Positive (B) Negative (C) Both A & B (D)
None of these
65. An unsigned int can store .................................. values. (A) Positive (B) Negative (C) Both A & B (D)
None of these
66. char data type takes up just .................................. byte of memory for (A) 1 (B) 2 (C) 3 (D) 4
storage.
67. A variable name can only contain .................................. (A) Alphabets (B) Digits (C) Underscore _ (D) All of these
68. Variable name must begin with a .................................. (A) Letter (B) (C) Either A or B (D) Digit
An underscore
69. A .................................. cannot be used as a variable name. (A) Alphabet (B) (C) Function (D) Constant
Reserved word
70. We need to .................................. a variable before we can use it in the (A) Create (B) Modify (C) Change (D) Declare
program.
71. A variable cannot be declared unless we mention its .................................. (A) Name (B) Data type (C) Length (D) All of these
72. After declaring a variable, its data type .................................. be changed. (A) Can (B) Cannot (C) (D)
cannot
73. Assigning value to a .................................. for the first time is called (A) Variable (B) Constant (C) Both A & B (D) Function
variable initialization.
74. printf is used to print .................................. type of data. (A) int (B) float (C) char (D) All of them
75. scanf is a .................................. in C programming language. (A) Keyword (B) Library (C) Function (D) None of them
76. getch() is used to take .................................. as input from user. (A) int (B) float (C) char (D) all
77. Let the following part of code, what will be the value of variable a after (A) 8.8 (B) 8 (C) 8.0 (D) 8.2
execution.
int a=4;
float b=2.2;
a=a*b;
78. Which of the following is a valid line of code? (A) int=20; (B) grade=‘A’; (C) (D) None of them
line=this is a line;
79. Which operator has the highest precedence among the following? (A) / (B) = (C) > (D) !
80. Which of the following is not a type of operator? (A) (B) (C) (D)
operator operator
81. The operator % is used to calculate .................................. (A) Percentage (B) Remainder (C) Factorial (D) Square
82. Which of the following is a valid character? (A) ‘here’ (B) “a” (C) ‘9" (D) None of them
83. What is true about C language? (A) (B) (C) (D) None of them
84. A computer is a device that takes .................................. as input. (A) Data (B) Process (C) Information (D)
None of these
85. All the programming languages must provide .................................. to (A) Functions (B) Instructions (C) Guidelines (D) All of these
handle input.
86. Each programming language has its keywords or .................................. for (A) Variables (B) Constants (C) Functions (D)
functions
87. C language offers .................................. function to display the output. (A) printf (B) printf (C) getch (D) getche
88. C language offers .................................. function to get input from user. (A) printf (B) scanf (C) User defined (D)
None of these
89. printf is a .................................. function in C programming language. (A) Built-in (B) User defined (C) Both A & B (D) Variable
90. printf name comes from .................................. (A) Print function (B) Print format (C) (D)
91. .................................. format specifier is used against int data type. (A) %a (B) %b (C) %c (D) %d
92. .................................. format specifier is used against int data type. (A) %d (B) %i (C) %f (D) %c
93. .................................. format specifier is used against float data type. (A) %f (B) %d (C) %i (D) %c
94. .................................. format specifier is used against char data type. (A) %d (B) %i (C) %f (D) %c
95. scanf is a .................................. function in C language. (A) Built-in (B) User defined (C) Variable (D) Constant
96. There are .................................. main parts of scanf function. (A) 1 (B) 2 (C) 3 (D) 4
97. We can take .................................. input(s) using a single scanf function. (A) 1 (B) 2 (C) 3 (D) Multiple
98. It is a very common mistake to forget .................................. sign in the (A) % (B) ! (C) & (D) @
scanf function.
99. Without .................................. sign, the program gets executed but does (A) % (B) & (C) @ (D) $
100. .................................. function is used to read a character from user. (A) printf (B) scanf (C) getch() (D)
None of these
101. To use getch() function, we need to include the library (A) math.h (B) conio.h (C) stdio.h (D) All of these
103. If we do not end each statement with a .................................. it results into (A) . (B) % (C) # (D) ;
error.
104. Escape sequences are used in .................................. function inside the “ (A) scanf (B) printf (C) getch (D) getche
and ”.
105. A statement terminator is identifier for compiler which identifies (A) Start (B) End (C) Both A & B (D)
None of these
.................................. of a line.
106. Escape sequences consist of .................................. character(s). (A) 1 (B) 2 (C) 3 (D) 4
107. The first character of escape sequence is always .................................. (A) / (B) \ (C) ! (D) %
108. Sequence .................................. is used to display single quote ( ’ ) (A) \ (B) \\ (C) \a (D) \b
109. Sequence .................................. is used to generate an alert sound. (A) \ (B) \\ (C) \a (D) \b
110. Sequence .................................. is used to removes previous char. (A) \ (B) \\ (C) \a (D) \b
111. Sequence .................................. is used to display back slash ( \ ) (A) \ (B) \a (C) \b (D) \\
112. Sequence .................................. is used to generate an alert sound. (A) \ (B) \\ (C) \a (D) \b
113. After escape character, .................................. specifies movement of the (A) n (B) A (C) b (D) H
114. Escape sequence .................................. specifies the I/O function of (A) \a (B) \b (C) \t (D) \h
115. A tab stop is collection of .................................. spaces. (A) 2 (B) 4 (C) 6 (D) 8
116. What will be the output of code: void main(){ printf ("2");} (A) 3 (B) 1 (C) 2 (D) 4
117. Which of the following format specifieris used for character data type: (A) % c (B) % d (C) % f (D) % i
118. In C language ...... is used as statement terminator: (A) # (B) ; (C) % (D) &
119. What will be the output of code? void abc(){printf("1/n");} (A) "1" (B) "2" (C) 1 (D) 2
120. It is a very common mistake to forget ...... operator in the scanf function. (A) & (B) % (C) * (D) $
121. Some basic operator types are .................................. (A) (B) (C) (D) All of these
operator operator
122. .................................. operator is used to assign a value to a variable. (A) Assignment (B) Arithmetic (C) Logical (D) Relational
123. .................................. is used as assignment operator in C. (A) % (B) < (C) > (D) =
124. .................................. is used as arithmetic operator in C. (A) / (B) > (C) < (D) =
126. .................................. operator divides the value of left operand by the (A) Multiplication (B) Division (C) Subtraction (D) Modulus
127. .................................. operator is a binary operator. (A) Division (B) Addition (C) Subtraction (D) Multiplication
128. .................................. operator calculates the sum of two operands. (A) Addition (B) Subtraction (C) Multiplication (D) Division
129. The statement a=a+1; is used to increase the value of a variable by (A) 0 (B) -1 (C) +1 (D) 2
..................................
130. .................................. operator will subtract right operand from the left (A) - (B) + (C) * (D) \
operand.
132. Modulus operator works on .................................. data type. (A) char (B) float (C) int (D)
none of these
133. .................................. operators compare two values to determine the (A) Arithmetic (B) Relational (C) Logical (D) Assignment
134. C language allows us to perform relational operators on (A) Numeric (B) char (C) Both A & B (D) float
135. .................................. operator is used as equal to. (A) = (B) == (C) > (D) !=
136. .................................. operator is used as Not equal. (A) != (B) == (C) < (D) =
137. .................................. operator is used as greater than equal to. (A) <= (B) >= (C) == (D) >
138. Relational operators perform operations on two operands and return the (A) True (B) False (C) Both A & B (D)
None of these
result in ..................................
140. In C language, .................................. operator is used to check for (A) = (B) % (C) == (D) &
141. Single .................................. assigns right operand to the variable on left (A) + (B) < (C) > (D) =
side.
142. .................................. operator is used as a logical AND. (A) & (B) && (C) || (D) !
143. .................................. operator is used as a logical OR. (A) & (B) && (C) || (D) !
144. .................................. operator is used as a logical NOT. (A) ! (B) !! (C) || (D) &&
145. The result of the expression False && False is .................................. (A) False (B) True (C) 0, 1 (D) 1, 0
146. The result of the expression True || False is .................................. (A) false (B) true (C) 1, 0 (D) 0, 1
147. The result of the expression !(False) is .................................. (A) true (B) false (C) 0,1 (D) 1,0
148. Unary operators are applied over .................................. (A) (B) One operand (C) (D)
operands
149. Binary operators require .................................. to perform the operation. (A) One operand (B) (C) (D)
operands
150. Ternary operator applied on .................................. operand(s). (A) 1 (B) 2 (C) 3 (D) 4
151. Which operator is used as assignment operators: (A) <= (B) >= (C) = (D) = =
152. What will be the value of variable "a" after execution of the following part (A) 8 (B) 8.0 (C) 8.8 (D) 8.2
153. ...... relational operator is used for equal in C language: (A) = (B) = = (C) ! = (D) > =
154. Which symbol is used for logical AND operators: (A) && (B) || (C) ! (D) $$
155. In C language, which of the following is logical operator: (A) + (B) < (C) % (D) NOT
156. Ternary operator is applied on ...... operands: (A) 1 (B) 2 (C) 3 (D) 4
157. Among the following ...... operator has the lowest precedence: (A) \ (B) = (C) > (D) !
158. Conditional logic helps in .................................. (A) Decisions (B) Iterations (C) Traversing (D) All
159. .................................. statements describe the sequence in which (A) Loop (B) Conditional (C) Control (D) All
160. In if statement, what happens if condition is false? (A) (B) (C) (D)
int a=5;
if (a<10)
a++;
else
if(a>4)
a--;
162. Which of the following is the condition to check a is a factor of c? (A) a%c==0 (B) c%a==0 (C) a*c==0 (D) a+c==0
163. A condition can be any .................................. expression. (A) Arithmetic (B) Relational (C) Logical (D)
Arithmetic,
relational or
logical
164. An if statement inside another if statement is called .................................. (A) Nested (B) boxed (C) repeated (D) decomposed
structure.
165. A set of multiple instructions enclosed in braces is called a (A) box (B) list (C) block (D) job
..................................
166. Sometimes, If the condition is not true then we perform some other task. (A) (B) Condtion (C) Expression (D) Variable
167. How many types of control statements are there in C language? (A) 1 (B) 2 (C) 3 (D) 4
168. Control statement type(s) is/are .................................. (A) Sequential (B) Selection (C) Repetition (D) All of these
169. .................................. control is the default control structure in C (A) Repetition (B) Selection (C) Sequential (D) All of these
language.
170. According to the .................................. control, all the statements are (A) Sequential (B) Selection (C) Repetition (D) All of these
171. There are ...... of control statements in C language: (A) two (B) three (C) four (D) five
172. Which is NOT a type of control statement in C language: (A) (B) (C) (D)
statements statements
173. In C-language which is the default control structure: (A) (B) (C) (D) All of these
control control
174. Which is a control statement: (A) Relation (B) Function (C) Selection (D) Array
175. Sequential control is the ...... control structure in C-language: (A) Selection (B) Repetition (C) Relation (D) Default
176. Which control structure executes the statement in order: (A) Sequential (B) Repetition (C) Selection (D) Relational
177. Which control structure repeats a set of statement for a number of times: (A) Sequential (B) Repetition (C) Selection (D) Relation
178. The statement which help us to decide which statements should be (A) Sequential (B) Selection (C) Repetition (D) All of these
179. How many type of selection statements are there? (A) 1 (B) 2 (C) 3 (D) 4
180. Type(s) of selection statements is/are .................................. (A) If statement (B) (C) Both A & B (D)
181. C language provides .................................. statement in which we specify (A) If (B) If-else (C) goto (D) scanf
182. Any expression that has a non-zero value, calculates to (A) True (B) False (C) Result (D) Expression
..................................
183. if is a .................................. (A) Variable (B) Constant (C) Keyword (D)
None of these
184. The associated code of if statement is any valid C language (A) (B) (C) (D)
statements
185. To associate more than one statements to an if statement, then need to (A) () (B) {} (C) [] (D) Any of these
186. Properly indent the instructions under if statement using (A) Spaceabar (B) Shift (C) Tab (D) Enter
..................................
187. Associated code of if statement is executed if the condition is (A) False (B) True (C) Missing (D) Blocked
..................................
188. An if statement may not have an associated .................................. (A) else (B) if (C) if-else (D)
189. A set of multiple instructions enclosed in braces is called a (A) Set (B) Block (C) (D) Both B & C
.................................. Compound
statement
190. Conditional statements within conditional statements are called (A) Nested (B) Selection (C) (D) Repetition
Nested selection
.................................. structure.
191. In compound statements, it is common mistake to omit one or two (A) Semi colons (B) colons (C) Functions (D) Braces
192. Which of the following is a selection statements: (A) if (B) for (C) while (D) do while
193. In if statement, the condition is enclosed within: (A) { } (B) ( ) (C) [ ] (D) < >
194. Which symbol is used if to enter the condition: (A) [ ] (B) " " (C) { } (D) ( )
195. Whichof the following option is used for making two way decisions: (A) for (B) if-else (C) while (D) if
196. C programming language also provides ...... to deal with conditions: (A) (B) (C) (D) All of these
197. A selection statement within another selection statement is called ...... (A) Nested (B) Dual (C) Infinite (D) Complex
selection structure:
198. An array is a .................................. structure. (A) Loop (B) Control (C) Data (D) Conditional
199. Array elements are stored at .................................. memory locations. (A) Contiguous (B) Scattered (C) Divided (D) None
200. If the size of an array is 100, the range of indexes will be (A) 0-99 (B) 0-100 (C) 1-100 (D) 2-2012
..................................
201. .................................. structure allows repetition of a set of instructions. (A) Loop (B) Condtional (C) Control (D) Data
202. .................................. is the unique identifier, used to refer to the array. (A) Data type (B) Array name (C) Array size (D) None
203. Array can be initialized .................................. declaration. (A) At the time of (B) After (C) Before (D) Both A & B
204. Using loops inside loops is called .................................. loops. (A) for (B) while (C) do-while (D) Nested
205. .................................. part of for loop is executed first. (A) Condition (B) Body (C) Initialization (D)
Increment /
decrement
206. .................................. make it easier to read and write values in array. (A) Loops (B) Conditions (C) Expressions (D) Functions
207. To initialize the array in a single statement, initialize it (A) At the time of (B) After (C) Before (D) Both A & B
.................................. declaration.
208. .................................. is a container to store collection of data items in a (A) Data (B) (C) database (D) Program
Data structure
specific layout.
209. .................................. is a data structure that can hold multiple values of (A) An array (B) A program (C) Statement (D) Function
210. An important property of array is that it stores all the values at consecutive (A) Program (B) Database (C) Array (D)
memory
211. .................................. values to an array for the first time, is called array (A) Creating (B) Modifying (C) Assigning (D)
None of these
initialization.
212. .................................. can be initialized at the time of its declaration, or (A) An array (B) A variable (C) A constant (D) A function
later.
213. We cannot initialize all the elements of array in .................................. (A) Single (B) Double (C) Triple (D) Multiple
statement(s).
214. First element has the index .................................. (A) 1 (B) 0 (C) 2 (D) 3
215. We can use .................................. as array indices. (A) Array name (B) Constant (C) Variable (D) Function
216. Each element of .................................. has an index that can be used with (A) A variable (B) A constant (C) A function (D) An array
217. Which of the following is correct declaration of array: (A) int array [10]; (B) int array {10}; (C) int array; (D) int array (10);
218. The index of first element of an array is: (A) 0 (B) 1 (C) 2 (D) 3
219. The index of an element in array is written within ......: (A) < > (B) [ ] (C) {] (D) { }
220. Which is the second element in an array: (A) n[0] (B) n[2] (C) n[3] (D) n[1]
221. If size of an array is 10, the range of indexes will be: (A) 0-10 (B) 0-9 (C) 1-110 (D) 2-10
222. What is the output of the following code: int b [3] = {15,20,16}; printf("%d", (A) 16 (B) 17 (C) 18 (D) 19
b[2]);
223. ...... is the output of the following code: int n {4} = {8,7,6,3}; printf ("%d", (A) 0 (B) -1 (C) 1 (D) 3
n[3]);
224. What is the output of the following code: int c [2] = {25,30}; printf( (A) 30 (B) 25 (C) 24 (D) 23
"%d",C[1] );
225. If we need to repeat one or more statements, then we use (A) Programs (B) Variables (C) Constants (D) Loops
..................................
226. C language provides .................................. kind of loop structures. (A) 1 (B) 2 (C) 3 (D) 4
227. C language provides .................................. loop structure(s). (A) for (B) while (C) do-while (D) All of these
228. Always make sure that the .................................. becomes false at some (A) loop (B) condition (C) variable (D) constant
point.
229. Each run of a loop is called .................................. (A) Iteration (B) Cycle (C) Movement (D) Both A & C
230. If the size of an array is 50, the range of indexes will be ......: (A) 0-50 (B) 0-49 (C) 1-49 (D) 1-50
231. What will be the output of the following: void abc() { printf ("Pakistan"); } (A) Punjab (B) Pak (C) Pakistan (D) Pun
232. What will be the output of this code: void abc(){ printf ("Punjab");} (A) Punjab (B) Pun (C) Pak (D) Pakistan
233. How many times the word "PAKISTAN" will be printed through the loop: (A) 5 (B) 4 (C) 3 (D) 1
printf "PAKISTAN";
234. How many times the word "PAKISTAN" will be printed through the loop (A) 10 (B) 1 (C) 9 (D) 0
printf ("PAKISTAN");
}:
235. Each run of a loop is called: (A) Cycle (B) Iteration (C) Duration (D) Test
236. Loop within a loop is called ......: (A) For loop (B) While loop (C) do while loop (D) Nested loop
237. Functions could be built-in or .................................. (A) (B) (C) User defined (D) Both A & C
238. The functions which are available in C standard library are called (A) User defined (B) Built-in (C) Recursive (D) Repetitive
..................................
239. The values passed to a function are called .................................. (A) Bodies (B) Return types (C) Arrays (D) Arguments
240. char cd() {return ‘a’}. in this function “char” is .................................. (A) Body (B) Return type (C) Array (D) Arguments
241. The advantages of using functions are .................................. (A) Readability (B) Reusability (C) (D) All
Easy debugging
242. If there are three return statements in the function body, (A) one (B) Two (C) Three (D) First and last
243. Readability helps to .................................. the code. (A) Understand (B) Modify (C) Debug (D) All
244. .................................. means to transfer the control to another function. (A) Calling (B) Defining (C) Re-writing (D) Including
245. Dividing a big problem into multiple smaller parts and then try to solve (A) (B) (C) Conquer rule (D) Solution
conquer
246. .................................. is a block of statements which performs a particular (A) A variable (B) A constant (C) A function (D) A loop
task.
247. printf is a .................................. that is used to display anything on (A) Variable (B) Constant (C) Function (D) Array
computer screen.
248. scanf is a .................................. that is used to take input from the user. (A) Function (B) Variable (C) Program (D) Constant
250. Type(s) of function is/are .................................. (A) (B) (C) Both A & B (D) Array
function
251. The example(s) of built-in function is/are .................................. (A) printf (B) Scanf (C) Both A & B (D) Loop
252. Advantage(s) of functions .................................. (A) Reusability (B) (C) Readability (D) All of these
Separation of
tasks
253. Inputs of a function are called .................................. of the function. (A) Function (B) Parameters (C) Return value (D)
Function
signature
254. Output of the function is called its .................................. (A) Function (B) Parameters (C) Return value (D)
Function
signature
255. The functions which are defined by a programmer are called (A) Built-in (B) User defined (C) Both A & B (D)
None of these
.................................. functions.
256. A .................................. is a block of statements that gets some inputs and (A) Function (B) Statement (C) Return value (D)
Function
provides some outputs.
signature
257. A function can have multiple parameters, but it cannot return more than (A) 1 (B) 2 (C) 3 (D) 4
.................................. values.
258. .................................. is used to defined the inputs and output of a (A) Parameters (B) Return value (C) Function (D)
function. Function
signature
259. A function that takes an integer as input and returns its square (A) (B) (C) (D)
.................................. int square (int); float area (float); int isVowel int largest (int,
260. A function that takes radius of a circle as input and returns the area of (A) (B) (C) (D)
int square (int); int isVowel float area (float); int largest (int,
circle ..................................
261. Body of the function is the set of .................................. (A) Functions (B) Statements (C) Parameters (D) All of these
262. Just after the function’s signature, the set of statements enclosed inside (A) () (B) {} (C) [] (D) < >
263. A function cannot return more than .................................. value(s). (A) 1 (B) 2 (C) 3 (D) 4
264. There may be .................................. return statement(s) in a function. (A) 1 (B) 2 (C) 3 (D) Multiple
265. We can see that the program starts its execution from (A) void() (B) main() (C) printf (D) scanf
.................................. function.
266. The values passed to the function are called .................................. (A) Statement (B) Function (C) Return value (D) Arguments
267. Variables in the function definition that receive these values are called (A) Parameters (B) Statements (C) Arguments (D) Functions
268. It is not necessary to pass the .................................. with same names to (A) Constants (B) Functions (C) Variables (D) Parameters
269. A block of statements that performs a particular task is called: (A) Variable (B) Constant (C) Function (D) Loop
270. ...... is the block of statement which performs a particular task: (A) Computer (B) Program (C) Functions (D) Parameters
271. The functions which are available in C standard library are called: (A) (B) (C) (D)
function
272. The functions which are defined by a programmer are called ......: (A) (B) (C) (D)
functions
273. The printf and scanf are ...... functions: (A) built-in (B) artithmetic (C) user defined (D) custom
274. Inputs of a function are called ...... of the function: (A) arguments (B) block (C) statement (D) parameter
275. ...... is used to define the inputs and output of a function: (A) (B) main (C) printf (D) scanf
function
signature
276. In void main () "void" is ......: (A) return type (B) variable (C) constant (D) condition
277. What is the type of parameter in the function: (A) int (B) char (C) area (D) float
278. A function can return ...... values: (A) 1 (B) 2 (C) 3 (D) 4
279. A function cannot return more than ...... value(s): (A) 1 (B) 2 (C) 3 (D) 4
280. The ...... of the function is the data type of the value returned by the (A) name (B) parameters (C) arguments (D) return type
function:
281. The keywords used to transfer the control from a function back to the (A) return (B) switch (C) goto (D) back
282. A function that does not return anything has return type: (A) int (B) float (C) void (D) char
283. Which of the following are used to receive the values passed to the (A) constants (B) arguments (C) parameters (D) expressions
function as input: