0% found this document useful (0 votes)
133 views15 pages

12th Class Guess Papers 2024 Com Mcqs

The document appears to be a practice test for an intermediate computer science exam. It contains 52 multiple choice questions testing knowledge of topics like database models, SQL, files, tables, keys, and entity relationship diagrams. The questions cover concepts from data modeling, querying, and relational database design.

Uploaded by

Siddiqa Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
133 views15 pages

12th Class Guess Papers 2024 Com Mcqs

The document appears to be a practice test for an intermediate computer science exam. It contains 52 multiple choice questions testing knowledge of topics like database models, SQL, files, tables, keys, and entity relationship diagrams. The questions cover concepts from data modeling, querying, and relational database design.

Uploaded by

Siddiqa Amir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Guess Paper Annual 2024 Computer Science 12

COMPUTER SCIENCE
INTER PART-II
1 Which of the following type of file require largest processing time?
A Sequential file B Random file C Indexed sequential file D Direct access file
2 Which of the following may be a temporary file?
A Master file B Transaction file C Backup file D None of these
Which of the following represents a collection of concepts that are used to describe the structure of a
3 database?
A Data warehouse B Data model C Data structure D Data type
4 Which of the following data model is more flexible?
Hierarchical data Relational data
A Network data model B C D Object data model
model model
5 SQL is a(n):
Unstructured Object oriented
A language B Structured language C language D Software
6 The manipulated and processed data is called:
A Object B Information C Data D None
7 The process of arranging data in a logical sequence is called:
A Sorting B Summarizing C Data capturing D Classifying
8 A collection of raw facts and figures is called:
A Data B Information C Processing D None
9 The smallest meaningful unit of data in a database is called:
A Byte B Record C Character D Field
10 A collection of related fields is:
A File B Record C Database D None
11 ......... type requires largest processing time.
A Random file B Direct access file C Sequential file D Index sequential file
12 Which of the following may be temporary file?
A Master file B Data file C Transaction file D Program file
13 A logical grouping of characters is a:
A Filed B Record C File D All
14 A ......... can store text only.
A Binary B Text file C Exe file D Object file
15 Which one of the following type of file requires largest processing time?
Indexed sequential
A Sequential file B Random file C file D Direct access file
16 Data can be recovered in case of loss by using:
A Master file B Transaction file C Backup file D Data file
17 A database containing all students in a class would store basic data of students in:
A Record B Filed C Cell D File
Page 1
Guess Paper Annual 2024 Computer Science 12
18 Which file is used to store information that remains constant for a long time:
A Data file B Master file C Transaction file D Backup file
19 The extension of image file is:
A .exl B .doc C .bmp D .ppt
20 A database is an organized collection of ......... related data.
A Logically B Physically C Loosely D Badly
21 Which of the following database model is also referred an inverted tree?
A Hierarchal B Network C Relational D Object
22 Which one refers to the correctness and consistency of data?
A Data independence B Data integration C Data integrity D Data model
23 Multiple copies of the same data is referred to as:
A Data integrity B Data inconsistency C Data redundancy D Data isolation
24 SQL stands for:
Self-Quantifying- Structured Query Self Quantative
A Sort-Query-List B Language C language D language
25 Insert command is used to insert:
A A new table B A new record C A view D Dependencies
26 CREATE command is used to create a:
A Table B View C View D Query
27 SQL is used for:
Data definition and
A Data definition B Data manipulation C manipulation D Searching records
28 The foreign key is found in:
A Parent table B Dependent table C Pivot table D Index table
29 A table must have:
A Primary key B Secondary key C Composite key D Sort key
30 An entity related to itself in an ERD model refers to:
Recursive One-to-many Many-to-many
A relationship B relationship C relationship D One-to-one relationship
31 Which of the following keys does not hold uniqueness property?
A Candidate key B Foreign key C Primary key D Secondary key
32 Database development process involve mapping of conceptual data model into:
Object oriented Network data Implementation
A data model B model C model D Hierarchical data model
33 In relational database, a table is also called a:
A Tuple B Relation C File D Schema
34 A category of data or information that describes an entity is called a(n):
A Attribute B Data item C Record D Tuple
35 The row of relation can be of ......... order.
A Any B Same C Sorted D Constant
36 A relation is analogous to a:
A Table B Field C Record D Row
37 Which of the following is degree of a table?
Total number of Total number of Total number of foreign
A rows B columns C Total number of cells D keys
Page 2
Guess Paper Annual 2024 Computer Science 12
38 The row of table is also called:
A Entity B Attributes C Cell D Record
39 A relation is also known as:
A Table B Tuple C Relationship D Attribute
40 The columns of a table correspond to:
A Table B Record C Field D Cell
41 Which of the following is not included in the definition of entity?
A Person B Object C Concept D Action
42 Which of the following is used to associate entities with one another?
A Entity B Attribute C Identifier D Relationship
43 In MS Access, table contains:
A Fields B Record C Character D File
44 Views are also called:
A Complex tables B Simple tables C Virtual tables D Actual tables
45 To find all names start with M from student table, the criteria is:
A Like “M?” B Like “M – ” C Like “M# ” D Like “M * ”
46 A virtual table that is constructed form other tables is called:
A Tuple B Table C View D Report
47 A key that consists more than one attributes is called:
A Foreign key B Composite key C Primary key D Control key
48 The selected candidate key is called:
A Foreign key B Composite key C Primary key D Sort key
49 ......... key does not hold uniqueness property.
A Foreign B Candidate C Primary D Secondary
50 A table must have a:
A Primary key B Secondary key C Composite key D Sort key
51 Foreign key is found in:
A Parent table B Dependent table C Pivot table D Index table
52 How many primary keys can a relation have?
A At least once B Only one C No limit D Three
53 All the hardware costs are considered during:
Requirements
A Project planning B analysis C Feasibility study D Data analysis
54 In an E-R diagram, a rectangle represents a(n):
A Entity B Attribute C Relationship D None
55 ......... is used to define characteristics of an entity/object.
A Object B Attributes C Records D Files
56 In an E-R diagram, a diamond represents a(n):
A Attributes B Relationship C Entity D Modality
57 In ERD model, the relationships between two entities are represented by:
A Rectangle B Oval C Square D Diamond
58 Customers, cars and parts are examples of:
A Entities B Attribute C Cardinals D Relationships
59 Which one is not related to an entity?

Page 3
Guess Paper Annual 2024 Computer Science 12
A Person B Concept C Action D Object
60 Color of car is an example of:
A Entity B Attributes C Relation D Relationship
61 Which one of the following is used to associate entities with each other?
A Attributes B Relationship C Entities D Cardinals/Identifier
62 An entity related to itself in an ERD model refers to relationship:
A Recursive B One to many C Many to many D One to one
63 A relationship between countries and capitals is an example of relationship:
A One-to-one B One-to-Many C Many-to-Many D Many-to-One
64 Which of the following defines the nature of the relationship?
A Modality B Decision tree C Both A & B D None
65 Which of the following is not a basic data distribution strategy?
A Centralized B Partitioned C Replicated D Duplicated
66 In 3NF, which form of dependency is removed?
A Functional B Non-functional C Associative D Transitive
67 In relational database, a table is also called a:
A Tuple B Relation C File D Schema
68 Different attributes in two different tables having same name are referred to as:
A Synonym B Homonym C Acronym D Mutually exclusive
69 Every relation must have a:
A Primary key B Candidate key C Secondary key D Composite key
70 Transitive dependency is removed in:
A 1st normal form B 2nd normal form C 3rd normal form D 4th normal form
71 Two or more attributes having different names but same meaning is called:
A Homonyms B Aliases C Synonyms D Alternate attributes
72 Referential integrity is applied on:
A Foreign key B Composite key C Primary key D Sort key
73 A primary key that consists of two or more attributes of a relation is called:
A Sort key B Candidate key C Sub key D Composite key
74 Microsoft access saves the database with the extension:
A .mdb B .msdb C .madb D None of them
75 A database consists of various components called the:
A Tool B Properties C Entities D Object
76 Which of the following object of database is used to retrieve data from database?
A Queries B Forms C Reports D Tables
77 The output of a query is in the form of a:
A Table B Form C Report D Query
Which of the following object is used to retrieve data from database and present in a formatted
78 away?
A Report B Form C Table D Query
79 In access, the structure of a table is created in ......... view.
A Design view B Datasheet view C Both A & B D None of them
80 Which shortcut key is used to open an existing database in MS Access?
A Ctrl + N B Ctrl + S C Ctrl + O D Ctrl + Z

Page 4
Guess Paper Annual 2024 Computer Science 12
81 It makes very simple to create a database:
A Sample database B Wizard C Common standard D Easier programming
82 MS Access saves the database with the extension:
A .mbdq B .msdb C .ppt D .mdb
83 In relational database, a table is called:
A Tuple B Relation C File D Scheme
84 A set of related files created and managed by a DBMS is called:
A Field B Record C Database D Module
85 Which object is the output of a database application?
A Form B Query C Table D Report
86 A database consists of various components called:
A Tools B Properties C Entities D Objects
87 Which object is used to store data in database?
A Macro B Table C Form D Report
88 The output of the query is in the form of:
A Table B Form C Report D Query
89 Which of the following is not a database object?
A Table B Query C Report D MS Word
90 The example of popular DBMS is:
A MS Word B MS Access C MS Excel D MS PowerPoint
91 The graphical query tool is known as:
A Query grid B Design grid C Query form D Design form
92 In a relational database, a single piece of information is called:
A Field B Record C Entity D Attribute
93 The data in table is entered in:
A Design view B Normal view C Datasheet view D Layout view
94 How many table views are available in Microsoft access?
A 4 B 3 C 2 D 1
As in design view, you can move from field to field in the table window in datasheet view using .........
95 button.
A Tab B Esc C Enter D Spacebar
96 To find a four-character name that starts with H, the criteria is specified as:
A H*4 B H?4 C H???? D H####
97 Which of the following buttons of find and replace dialog box is clicked to start the search process?
A Find B Find next C Search D Next
The rule that a record from a table cannot be deleted if it’s associated record exits in a related table is
98 called ......... rule.
A Referential integrity B Entity–relationship C Normalization D All of them
99 The relationship between countries and their capitals is an example of ......... relationships.
A One-to-one B One-to-many C Many-to-many D None of them
100 The wildcard ......... Sal[ei]ma.
A Saleema B Salima C Both A & B D None of them
101 Each set of related items in a table is called:
A Table B Record C Field D Query

Page 5
Guess Paper Annual 2024 Computer Science 12
102 What is the default field size of a Text data type in MS-Access?
A 2 B 5 C 20 D 50
103 Which data type is default type in Access?
A Memo B Number C Text D Auto number
104 Every table must have a:
A Foreign key B Composite key C Primary key D Sort key
Which data type can be used to define a field that consists of only numbers to be used in
105 calculations?
A Text B Memo C Number D Date/time
Which data type can be used to define a field that consists of only numbers to be used in
106 calculations?
A Text B Memo C Number D Date/time
107 The column of a table corresponds to:
A Table B Field C Record D Cell
108 Which symbol indicates that you are editing a record?
A Pencil B Black arrow C Key D Asterisk
109 Which key is used to move field to field in table window in datasheet view?
A Tab B Esc C Enter D Spacebar
110 What command is required to actually execute a filter on a table?
A Remove filter B Apply filter C Clear grid D Find next
111 Which filtering method allows you to use data in a field as criterion for filtering?
A Filter by form B Apply filter C Clear grid D Find next
112 Which of the following is an example of a filter by form expression?
A Abdullah B 1985 C 4 OR 5 D None
113 What is Z to A order called?
A Ascending B Descending C Condescending D Alphabetical
114 The Sort Ascending button will:
Order all records
Order all records reverse Filter out selected
A alphabetically B alphabetically C records D Delete selected records
115 How find four names that starts with H, the criteria is specified as?
A H*a B H?4 C H???? D H##
116 The graphically query tool is known as:
A Query grid B Design grid C Query form D View form
117 How many query views are available in MS Access?
A 2 B 3 C 4 D 5
118 To find a name that start with S, the criteria is written as:
A S#? B S# C ?S D S*
119 ......... is used to retrieve data from one or more tables.
A Macro B Table C Query D Form
120 Forms are designed for:
A Input data B Manipulate data C Accepting change D All of them
121 How many are basic layouts of forms in Microsoft access?
A 2 B 3 C 4 D 5

Page 6
Guess Paper Annual 2024 Computer Science 12
122 The forms are the ......... end of our database in Microsoft access.
A Back B Front C Both A & B D None of these
123 A ......... auto form displays one record at a time.
A Tabular B Columnar C Datasheet D Justified
124 A form that contains the sub form is called:
A Form B Main form C Report D None of them
125 You can drag the ......... bar to move the property sheet window around on your screen.
A Title bar B Status bar C Scroll bar D All of them
A report provides a column for each field of the records in rows under the column header is known
126 as:
A Tabular B Columnar C Datasheet D Justified
127 ......... can be previewed on the screen before printing.
A Report B Form C Sub form D None of them
Which of the following is used to retrieve data from one or more tables of database and to present it
128 to the user in a formatted way?
A Report B Form C Query D Table
129 How many are the layout of report?
A 2 B 3 C 4 D 5
130 ......... auto form displays one record at a time.
A Columnar B Tabular C Datasheet D Justified
131 The forms are designed to:
A Data capturing B Data manipulation C Analysis D Managing output result
132 How many form layouts are provided by MS Access?
A 2 B 3 C 4 D 5
133 A form that contains a sub form is called:
A Form B Main form C Report D Child form
134 A form within another form is called:
A Sub-form B Main form C Multi-form D None
135 A sub form can be created using:
Drag and drop
A The form wizard B method C Sub form wizard D All of these
136 Which of the following is a one-to-many relation?
A Student-Reg no. B Mother-Daughter C Person-Date of birth D Country-Capital
137 A report may be based on:
A Table B Relationship C Form D Attributes
138 How many reports layouts are?
A 2 B 3 C 4 D 5
139 How many reports layouts are?
A 2 B 3 C 4 D 5
Which of the following is used to retrieve data from database and represent it to the user in a
140 formatted way?
A Form B Query C Table D Report
Which of the following is used to retrieve data from database and represent it to the user in a
141 formatted way?
A Form B Query C Table D Report
Page 7
Guess Paper Annual 2024 Computer Science 12
142 C is a:
A High level language B Low level language C Assembly language D Machine language
143 C was designed to write programs for:
Windows operating Windows operating Unix operating
A system B system C system D OS/2 operating system
144 Turbo C++ can compile:
Turbo C programs Turbo C++ programs
A C++ programs only B C and C++ programs C only D only
145 .exe file is produced by the:
A Linker B Loader C Compiler D Interpreter
146 Which of the following key is used to save a file?
A F2 B F3 C F5 D F9
147 Preprocessor directives are commands for:
A Microprocessor B Language processor C C preprocessor D Loader
148 Debug is the process of:
Creating bugs in Identifying and
A program B removing errors C Identifying errors D Removing errors
149 C-language was developed in:
A 1962 B 1969 C 1970 D 1972
150 The extension of C source program is:
A .h B .c C .obj D .exe
151 The process of converting source code into object code is knows as:
A Compiling B Executing C Linking D Saving
152 C statement end with a:
A Period B Comma C Colon D Semicolon
153 C-Language programs are divided into units called:
A Section B Syntax C Function D Debug
154 The statements written by programmer are called:
A Source code B Object code C Syntax D Debugging
155 The target code produced by the compiler is:
A Object code B Source code C Library code D Linked code
156 The target code produced by the compiler is:
A Object code B Source code C Library code D Linked code
157 ......... is a loop statement.
A If B If-else C Switch D For
158 Which of the following is used to donate preprocessor directives?
A % B $ C # D @
159 Header files in C contain:
Header information
A Compiler commands B Library functions C of C programs D Operators for files
160 Header files in C contain:
Header information
A Compiler commands B Library functions C of C programs D Operators for files
161 Which header file contains information about standard input/output functions?
A Stdio.h B Conio.h C String.h D Math.h
Page 8
Guess Paper Annual 2024 Computer Science 12
162 The name of header file is written between:
A [] B () C <> D << >>
163 The extension of the header file is:
A .c B .txt C .hf D .h
164 A table is a two dimensional structure that consists of:
A X and Y coordinates B Matrix elements C Rows and columns D Intersection of data
165 A program syntax error is detected by:
A Linker B Compiler C Loader D Debugger
166 The lowest level of programming language is:
A Java B Assembly language C Pascal D C++
167 Which of the following is not a low level language?
A BASIC B Machine C Assembly D None of these
168 Which of the following language requires no translator to execute the program?
A C B C++ C Machine language D Assembly language
169 Variables are created in:
A RAM B ROM C Hard disk D Cache
170 Which of the following is a valid character constant?
A A B B C 6 D =
When the result of the computation of two very small numbers is too small to be represented, this
171 phenomenon is called:
Arithmetic Arithmetic
A overflows B underflow C Truncation D Round off
172 The symbol = represents:
Comparison Assignment
A operator B operator C Equal to operator D None of these
173 Which of the following operators has lowest precedence?
A ! B + C = D ==
174 Relational operator is used to:
Establish a
relationship among Compare two Construct compound Perform arithmetic
A variables B values C conditions D operations
175 Which of the following is also known as control key?
A Foreign key B Composite key C Primary key D Sort key
176 Variable and constant names cannot contain a(n):
A Number B Underscore C Letter D Period
177 In C, the maximum length of text name is:
A 25 characters B 255 characters C 155 character D 55 characters
178 A memory location with some data that can be changed is called:
A Constant B Variable C Named constant D None
179 Which is a valid character constant?
A A B “Hello” C ‘6’ D =
180 The maximum length of text type field in MS Access is:
A 50 characters B 250 characters C 155 character D 255 character
181 Which term describes the kind of values that a variable can store?
A Variable Name B Data type C Variable type D Variable size
Page 9
Guess Paper Annual 2024 Computer Science 12
182 The number of bytes used by int data type in C is?
A 8 B 6 C 4 D 2
183 Number of bytes used by long double data type is:
A 4 B 8 C 10 D 12
184 The data type in C that can handle fractional values is called:
A Long B Char C Float D Int
185 Which is numeric data type with decimal point?
A Float B Int C Char D Long
186 Int is a ......... in C.
A Special word B key word C Cut word D First word
187 The only binary operator in the following is:
A ? B ++ C -- D +
188 Relational operators allow you to ......... values.
A Compare B Add C Multiply D Divide
189 When a relational expression is false, it has the value:
A Zero B One C Less than zero D Two
190 a+=b is equivalent to:
A b+=a B a=+b C a=a+b D b=b+a
191 The symbol “=” represents:
A Comparison B Assignment C Equal to D Logical
192 All of the following are logical operators except?
A NOT B AND C OR D =
193 The value of the C expression 5/9*2 is:
A 0.27 B 1.11 C 0 D 2
194 Which of the following is equivalent to (p>=q)?
A P<q B !(p<q) C p>q D !p<q
195 Which operator has lowest precedence?
A ! B + C = D ==
196 This means to increase a value by one:
A Modulus B Increment C Decrement D None of these
197 This means to increase a value by one:
A Modulus B Increment C Decrement D None of these
198 The value of logical operator OR will be 1 if:
A A=0 & B=1 B A=1 & B=0 C A=1 & B=1 D All of these
199 The value of logical operator OR will be 1 if:
A A=0 & B=1 B A=1 & B=0 C A=1 & B=1 D All of these
200 Logical operators are:
A NOT B AND C OR D All
201 For A = 4 and B =4 which expression evaluates as true?
A A>=B B A!=B C A<B D A>B
202 The expression p - = q is equivalent to:
A p=q-p B p=q-1 C p=p-q D q=p-q
203 An expression that uses a relational operator is known as:
A Operational B Sequential C Serial D Relational

Page 10
Guess Paper Annual 2024 Computer Science 12
204 An expression constant of:
A Operators B Operand C Both A & B D None
205 The escape sequence for backslash is:
A \ B \b C \\ D \t
206 The format specifier %u is used for:
A Integer B Unsigned short C Unsigned float D Unsigned long int
207 In C program, the number of columns that are printed are specified in:
A Format specifier B Field width specifier C Formatting integers D Both A & B
208 Escape sequence \\ is used to print:
A New line B Backslash C Space D Tab
209 Scanf function is used to input:
A Numeric value B String value C Both A & B D None of the above
210 The function getche() is defined in:
A stdio.h B string.h C math.h D conio.h
211 Getch( ) is a part of:
A Stdio B Conio C Math D All of above
212 A built-in function:
Cannot return a
A Cannot be redefined B Can be redefined C value D Should be redefined
213 Function prototypes for built-in functions are specified in:
A Source files B Header files C Object files D Image files
214 In a C program, two functions can have:
Same name and Same name but
A Same name B Same parameters C same parameter D different parameters
215 The escape sequence for carriage return is:
A \a B \c C \r D \f
216 The function that is used to display output on screen is called:
A Printf B Scanf C Pow D Display
217 How many variables can be used in one printf function?
A One B Two C Ten D Many
218 Format specifier starts with symbol:
A % B $ C # D @
219 Which escape sequence can be used to begin a new line in C?
A \ B \b C \m D \n
220 Which of the following is not a valid escape code?
A \t B \ C // D /
221 Which of the following format specifier is used for float data type?
A %e B %d C %f D %s
222 Printf() is a:
A Keyword B Built in function C Local function D User defined function
223 The format specifier % is used for:
A Integer B Unsigned short C Unsigned float D Unsigned long int
224 Which of the following format specifier is used for string?
A %f B %d C %c D %s

Page 11
Guess Paper Annual 2024 Computer Science 12
225 Which of the following things are determined by format specifier?
A Data type B Field width C Format of a value D All of these
226 The function used for input and output is stored in:
A Stdio.h B Conio.h C Math.h D Tan.h
227 Function which used to get input from the user:
A printf() B scanf() C clrscr() D puts()
228 The function getch() is defined in:
A Stdio.h B Conio.h C String.h D Math.h
229 The ASCII code for escape key:
A 27 B 28 C 29 D 30
230 Which programming structure executes program statements in order?
A Relation B Decision C Sequence D Repetition
231 Which programming structure makes a comparison?
A Relation B Decision C Sequence D Repetition
232 Another term for a computer making a decision is:
A Sequential B Selection C Repetition D Iteration
233 Another term for a computer making a decision is:
A Sequential B Selection C Repetition D Iteration
234 In if statement, true is represented by:
A 0 B 1 C 2 D 3
235 What is the simplest selection structure?
A If B Switch C If – else D Nested – if
236 Which of the following is used for making two way decisions?
A If B If – else C Nested if D Switch
237 Which keyword is not used in switch statement?
A Default B If C Case D Switch
238 Switch statement is an alternative of:
A If B If – else C Nested – if D Nested – if – else
239 The last statement of each case block in switch () structure must be:
A Default B If – else C Break D Else
240 The last statement of each case block in switch () structure must be:
A Default B If – else C Break D Else
241 The case block in switch () structure ends with:
A End select B Break C End case D Case else
242 Which of the following is called counter loop?
A Nested if – else B If – else C For loop D While loop
243 The conditional operator is used as alternative to:
A If B If – else C If – else if – else D Switch
244 Another term for a conditional operator is:
A Ternary B Binary C Byte D Iteration
245 Conditional operator takes:
A One operand B Two operands C Three operators D Four operands
246 Which operator is called a ternary operator?
A If B ++ C ? D ()

Page 12
Guess Paper Annual 2024 Computer Science 12
247 How many types of loop structures are present?
A 1 B 2 C 3 D 4
248 One execution of a loop is known as a (n):
A Test B Iteration C Duration D Integer
249 A loop that never ends is called:
A Infinite loop B Running loop C Nested loop D Continuous loop
250 One iteration of loop is known as:
A Iteration B Duration C Cycle D Repetition
251 While loop is also called:
A Conditional loop B Wend loop C Counter loop D None
252 ......... loop structure always executes at least once?
A Nested B FOR C While D Do While
253 Which of the following loop is available in C language?
A While-wend B For-next C Sequence D Do-while
254 Semicolon is placed at the end of condition in:
A Switch B For loop C While loop D Do-while loop
255 Semicolon is placed at the end of condition in:
A Switch B For loop C While loop D Do-while loop
256 The Do-while loop structure always ends with:
A Comma B Semi colon C Colon D Brace
257 ......... iterates at least once if condition is false.
A While loop B Do-while loop C For loop D All of these
258 What is the final value of x after executing the following code for (int x=0; x<,10; x++)?
A 8 B 9 C 10 D 11
259 If you want a user to enter exactly 20 values which loop would be the best to use?
A While B Do-while C Infinite D FOR
260 Which one is the loop structure?
A If B If-else C Switch D For
261 What is the final value of I after executing the following code for (int i=1; i<5; i+=2)?
A 7 B 5 C 6 D 9
262 A loop within a loop is called:
A Complex B Nested C Infinite D For
263 Which is a loop statement?
A If B If else C Switch D For
264 Printf() is a:
User-defined
A Built-in function B function C Local function D Keyword
265 A built-in function:
Cannot return a
A Cannot be redefined B Can be redefined C value D Should be redefined
266 Function prototypes for built-in functions are specified in:
A Source files B Header files C Object files D Image files
267 In a C program, two functions can have:
A Same name B Same parameters C Same name and D Same name but

Page 13
Guess Paper Annual 2024 Computer Science 12
same parameter different parameters
268 Which of the following looks for the prototypes of functions used in a program?
A Linker B Loader C Compiler D Parser
269 Which of the following is true about a function call?
Stops the execution Transfers control to Transfers control to Resumes the execution
A of the program B the called function C the main function D of the program
270 Memory is allocated to a local variable at the time of its:
A Declaration B Destruction C Definition D First reference
271 Global variables are created in:
A RAM B ROM C Hard Disk D Cache
272 May or may not be same
May or may not be May or may not be
A same B same C Must be different D Must be in lowercase
273 Formal arguments are also called:
A Actual arguments B Dummy arguments C Original arguments D Referenced arguments
274 Another name for built-in function is:
User-defined
A Library function B function C Arithmetic function D All of these
275 The first line of user-defined function is:
A Arguments B Header C Prototype D Calling
276 Multiple arguments to a function are separated by:
A Period B Colon C Commas D Semicolon
277 In C-Language, the first line of function definition is known as:
A Function header B Function body C Arguments D Parameters
278 A function that does not return any thing has return type:
A Nothing B Float C Void D Null
279 Function declaration is also known as function .........
A Definition B Header C Prototype D Parameters
280 Local variable are also called:
A Automatic variable B Static variable C Register variable D Run time variable
281 The scope of a variable refers to its:
A Length B Name C Accessibility D Data type
282 Memory allocated to a local variable at the time of its:
A Declaration B Destruction C Definition D First reference
283 A function can return ......... value.
A 1 B 2 C 3 D 4
284 A file is stored in:
A RAM B Hard Disk C ROM D Cache
285 Which of the following mode open only an existing file for both reading and writing:
A “w” B “w+” C “r+” D “a+”
286 On successfully closing a file, the f close() returns:
A NULL B 0(zero) C 1(one) D FILE pointer
287 An array subscript should be:
A Int B Float C double D An array

Page 14
Guess Paper Annual 2024 Computer Science 12
288 An array subscript should be:
A Int B Float C double D An array
289 An array subscript should be:
A Int B Float C double D An array
290 An array subscript should be:
A Int B Float C double D An array
291 An array subscript should be:
A Int B Float C double D An array
292 Which of the following functions is used to write a string to a file?
A Puts() B Pute() C Fputs() D Fgets()
293 The character conversion may occur in:
A Text stream B Binary stream C Input stream D Output stream
294 A sequence of characters from an input device to computer is called:
A Input stream B Text stream C Binary stream D Output stream
295 F open() function takes ......... parameters.
A 1 B 2 C 3 D 4
296 On successful closing a file, the f close() returns:
A Null B 0 (Zero) C 1 (One) D File pointer
297 Which mode opens only an existing file for both reading and writing?
A “w” B “w+” C “r+” D “a+”
298 Which of the following functions is used to read character from a file?
A getc() B putc() C fputs() D fgets()
299 Which of the following function is used to write string to a file?
A getc() B putc() C fputs() D fgets()
300 Which of the following character is used to mark the end of the string?
A \0 B /0 C \a D \n

OBJECTIVE

QUESTION NO. 2
Ch# 1,2,3,4,5,6,7
1. Differentiate between Data and Information.
2. Describe Data Capturing.
3. Describe Data Manipulation.
4. What is meant by Reproduction?
5. Define data inconsistency?
6. Define Data set.
7. List the file types from functional point of view.
8. Define program file with example.
9. What is meant by file organization?
Page 15

You might also like