Computer Sc. 12th FB Solved MCQs - Nauman Sadaf
Computer Sc. 12th FB Solved MCQs - Nauman Sadaf
Objective Type
تس
1. Encircle the Correct Option. وجاب ےک رگد دارئہ اگلںیئ۔ در .1
1) Which mode opens only an existing file for both reading and writing ?
a) "w" b) "w+" c) "r+" d) "a+"
3) Which of the following is used to retrieve data from one or more tables of database and to present it to the user in a
formatted way?
a) Report b) Form c) Query d) Table
10) Which one of the following is used to associate entities with each other ?
a) Attributes b) Entities c) Relationship d) Cardinals / Identifier
11) Following type of report spreads the information for a single record over many rows .
a) Columnar b) Justified c) Data sheet d) Tabular
15) printf () is a .
a) Built-in function b) User-defined function c) Local function d) Keyword
20) Which of the following type of variables are destroyed when the program is terminated .
a) Register variables b) Automatic variables c) Local variables d) Global variables
21) Which of the following data type offers the highest precision ?
a) Float b) Long int c) Long double d) Unsigned long int
23) Which term describes the kind of values that a variable can store ?
a) Data type b) Variable name c) Variable type d) Variable size
24) Following object is used to display data as well as to change data of a database .
a) Form b) Report c) Both A & B d) None of these
25) Following is the default field size of Text data type in MS - Access .
a) 100 b) 50 c) 255 d) 150
28) If fptr = fopen ("afile.txt" , "r" ) statement is used to open a file then what would be the necessary condition ?
a) The file must already b) The file must contain c) The file should be data d) The type of file must be
exist valid student data file only read only
30) Following key consists of two or more than two attributes of a table .
a) Composite key b) Foreign key c) Primary key d) Sort key
31) Which of the following represents a collection of concepts that are used to describe the structure of a database ?
a) Data warehouse b) Data model c) Data structure d) Data type
34) The field width will automatically _______ if the specified space is not sufficient to accommodate the value .
a) Adjusted b) Shrink c) Expanded d) None of these
35) Which of the following type of file require largest processing time ?
a) Sequential file b) Random file c) Direct access file d) Indexed sequential file
37) The relationship between countries and their capitals is an example of _______ relationship .
a) One-to-one b) One-to-many c) Many-to-many d) None of them
38) In a group of nested loops , which loop is executed the most number of times ?
a) The outermost loop b) All loops at the same c) The innermost loop d) Cannot be determined
number of times
39) In the Relation , following is insignificant .
a) Name of relation b) Number of records c) Order of rows d) Size of relation
47) What happens when the result of a calculation exceeds the capacity of data type ?
a) System error b) Logic error c) Syntax error d) Overflow
51) Which of the following header files is most commonly used in C program ?
a) math.h b) stdio.h c) conio.h d) stdlib.h
54) 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* "
55) Following two objects cannot have the same name in a database .
a) Tables b) Rows c) Database d) Records
60) C is a .
a) High level language b) Assembly language c) Low level langauage d) Machine language
64) Following type of field is used to store the URL address of any website .
a) Text b) Hyper Link c) OLE object d) Memo
71) Which of the following data type offers the highest precision ?
a) Float b) Long int c) Long double d) Unsigned long int
75) A process of assigning initial value to a variable at the time of declaration is called .
a) Assigning b) Initializing c) Naming d) Executing
79) The while loop body with multiple statements ends with .
a) Right brace } b) Right bracket ] c) Comma d) Semicolon
94) The rule that a record from a table cannot be deleted if its associated record exits in a related table is called rule .
a) Referential integrity b) Normalization c) Entity ____ relationship d) All of them
99) In ERD model , the relationships between two entities are represented by .
a) Rectangle b) Oval c) Square d) Diamond
109) The following buttons to find and Replace dialog is clicked to start the search process ?
a) Find b) Find next c) Search d) Next
123) Following perform tasks that may need to be repeated many times.
a) Condition b) Module c) Program d) Function
124) Following menu in MS - Access contains commands that can be used to switch between table views .
a) File b) View c) Edit d) Tool
131) Following allows to query and records faster while using MS - Access .
a) Key b) Primary key c) Index d) All of these
134) The following database object which actually stores data is called .
a) Table b) Form c) Query d) Report
136) The following data model creates parent - child relationship between data elements and enables each child to have just
one parent .
a) Network model b) Relational model c) Hierarchical model d) Data model
141) A person who is responsible for the organization of entire data of an organization is called .
a) DBA b) DA c) Administrator d) System administrator
143) How many digits are printed to the right of the decimal point in real number ?
a) 15 b) 3 c) 6 d) 5
153) To properly exit the MS Access application , Click on File Menu and choose .
a) Close b) Exit c) Return d) Open
155) Following view is used to add , edit and delete records form the table .
a) Design View b) Record view c) Datasheet View d) Edit View
162) The programmer usually enter source code or program into a computer using .
a) Compiler b) Text editor c) Debugger d) Linker
165) Following term of a function describes the number and type of its arguments and the return type of the function .
a) Size b) Name c) Header d) Type
166) For following data type , user does not require to enter data for that field .
a) Number b) Auto Number c) Automatic Number d) Memo
167) Which of the database models has the general shape of an organizational chart ?
a) Network model b) Relational model c) Hierarchical model d) Data type
177) Which of the following character is used to mark the end of the string ?
a) \0 b) /0 c) \a d) \n
180) As in Design view , you can move from field to field in the Table window in Datasheet view using ________ button.
a) Tab b) Esc c) Enter d) Spacebar
185) If x = 2 and y = 3 , what will be the output of the expression ? x>y? x + y : x*y;
a) 6 b) 5 c) 12 d) 10
195) Which of the following language requires no translator to execute the program .
a) C b) Machine language c) C++ d) Assembly language
200) To close the switch board automatically following command can be associated with button
a) Close b) Exit c) Quit d) Un - load
208) What is the name for a word that has a specific meaning in C language ?
a) Keywords b) Commands c) Operands d) Operators
211) Which of the following object of database is used to retrieve data from database ?
a) Queries b) Forms c) Reports d) Tables
214) 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
225) The variables that are declared outside all blocks are called .
a) General variables b) Global variables c) Local variables d) Global data items
226) ____ structure are used to control the flow of execution in a program .
a) Data b) Program c) Input d) Control
233) In hybrid distribution which kind of fragments are stored at only one site .
a) Critical fragments b) Critical and Non-critical c) Non-critical fragments d) Only large fragments
fragments
234) In if-statement , true is represented by .
a) 1 b) 2 c) 3
235) How find four name that starts with H , the criteria is specified as ?
a) H * a b) H ? 4 c) H ???? d) H # #
236) Database development process involve mapping of conceptual data model into.
a) Object oriented data b) Network data model c) Implementation model d) Hierarchical data model
model
237) In File handing sequence of bytes is called .
a) Text stream b) File stream c) Binary steam d) Character stream
242) a + = b is equivalent to
a) b + = a b) a = a - b c) a = a + b d) b = b + a
244) Which of the following looks for the prototypes of functions used in a program ?
a) Linker b) Loader c) Compiler d) Parser
245) a + = b is equivalent to .
a) b + = a b) a = + b c) a = a + b d) b = b + a
250) 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
252) Following controls the value of record and sets it in a specific format .
a) Field Validation Rules b) Input Mak c) Caption d) Indexes
255) Which input function will not print the entered character on the screen ?
a) scanf () b) getch () c) getche () d) getchar ()
262) A memory location with some data that can be changed is called .
a) Constant b) Named constant c) Address d) Variable
263) Which of the following does not contain machine language code ?
a) Source code b) Object code c) Library code d) Binary code
264) Following serves as a bridge between end users and database administrator .
a) Data administrator b) Application programmer c) System analyst d) None of these
265) The for loop contains three expressions , initialization , condition and .
a) Character b) Float c) Increment / decrement d) All of these
266) To find all names start with M , from table the criteria is .
a) Like " M? " b) Like "M-" c) Like "M#" d) Like "M*"
268) The ____ loop will execute at least once even the condition is false .
a) While b) Do - while c) For d) All of these
281) The predefined functions that are part of C language are called .
a) User defined b) Subprograms c) Subroutines d) Built- in functions
282) The function used for input and out put is stored in .
a) Stdio.h b) Conio.h c) Math.h d) Tan.h
286) Which of the following keys does not hold uniqueness property ?
a) Candidate key b) Foreign key c) Primary key d) Secondary key
287) A type of function is written by the programmer is known as .
a) User - defined b) Subprograms c) Subroutines d) Built - in - function
296) Which one of the following translates source code to object code as a whole ?
a) Interpreter b) Compiler c) Assembler d) Linker
300) ____ structure is used when programmer does not know in advance the number of repetition of loop ?
a) do-while b) for c) while d) Both A & C
301) The forms are the __________ end of our database in Microsoft Access .
a) Back end b) Front end c) Both A & B d) None of these
302) The number of bytes used by " float " data type in C is .
a) 2 b) 4 c) 6 d) 8
315) When the result of the computation of two very small numbers is too small to be represented , this phenomenon is called
.
a) Arithmetic overflows b) Truncation c) Arithmetic underflow d) Round off
316) Which of the following character is used to mark the end of the string?
a) \0 b) /0 c) \a d) \n
328) Which key is used to move field to field in table window in datasheet view?
a) Tab b) Esc c) Enter d) Spacebar
329) Following type of query displays a dialog box a get information form user ?
a) Select b) Append c) Parameter d) Crosstab
330) C is a .
a) High Level Language b) Assembly Language c) Low Level Language d) Machine Language
335) In order to move the property sheet window around screen , the following bar can be dragged .
a) Title Bar b) Scroll Bar c) Menu Bar d) Status Bar
339) A person who is responsible for the security and maintenance of database is called .
a) DBA b) DA c) User d) System administrator
341) The ________ gives you the most existing database that you have used recently .
a) Black box b) White Box c) Check Box d) None of these
347) A report provides a column for each field of the records in rows under the column header is known as .
a) Tabular b) Columnar c) Datasheet d) Justified
348) Database development process involve mapping of conceptual data model into .
a) Object oriented data b) Implementation model c) Network data model d) User Model
model
349) SQL is used for .
a) Data definition b) Data definition and c) Data manipulation d) Searching records
manipulation
350) In a table each row represents .
a) Record b) Field c) Form d) Data set
359) In the following activity , the possible inputs for the database are obtained .
a) Project planning b) Requirements analysis c) Feasibility study d) Data analysis
361) A well defined set of instructions or statements given to the computer is called .
a) Hardware b) Software c) Bug d) Error
368) In which loop the condition comes after the body of the loop?
a) For ( ) b) Do - while ( ) c) While ( ) d) Nested for ( )
369) Which of the following mode open only an existing file for both reading and writing.
a) "w" b) "w+" c) "r+" d) "a+"
370) Following helps the database system to run smooth and fast .
a) Computer b) Software c) Table d) Index
372) Following is a control structure that causes a statement or group of statement to repeat .
a) Decision statement b) Loop c) Sequential d) Logical
373) Following is a statement that extracts specific information from the database .
a) Table b) Query c) Report d) Form
375) _________ is the interface between the user and the database .
a) Data b) Degree c) IDE d) Desktop
381) In C program , the number of columns that are printed are specified in .
a) Format specifier b) Formatting intergers c) Field with specifier d) Both A & B
395) A set of rules that must be followed to write or develop a program is called.
a) Syntax b) Preprocessor c) Bug d) Symbol
402) A variable whose value controls the number of iterations is known as _____
a) Variable b) Loop Variable c) Control Variable d) Loop Control Variable
403) The rule in which a record form a table cannot be deleted if its associated record exists in a related table is called .
a) Referential Integrity b) Normalization c) Entity - Relationship d) Entity Integrity
406) A function
a) May return more than b) Cannot return any value c) May return only one d) May return two values
one values value
407) Debug is the process of .
a) Creating bugs in b) Identifying and c) Identifying Errors d) Removing Errors
program removing errors
417) Different attributes in two different tables having same name are referred to as .
a) Synonym b) Homonym c) Acronym d) Mutually exclusive
433) The program that translates and executes one line of source code at a time is called .
a) Compiler b) Translator c) Interpreter d) Assemble
438) Which of the following function is used to read character from a file ?
a) getc ( ) b) putc ( ) c) fputs ( ) d) fgets ( )
441) Which mode opens only an existing file for both reading and writing?
a) "W" b) "W+" c) "r+" d) "a+"
448) To create a database without wizard , while opening MS Access a dialog box is displayed . Click on.
a) File New Database b) Insert Blank Database c) Blank Access Database d) All of these
454) Following in the while loop statement controls the loop iteration .
a) Colon b) Semicolon c) Condition d) { }
457) When the result of the computation of two very small numbers is too small to be represented , this phenomenon is called
.
a) Arithmetic overflows b) Truncation c) Arithmetic underflow d) Round off
464) A function that does not return any thing has return type .
a) Nothing b) Float c) Void d) Null
465) Which of the following data model is more flexible ?
a) Network data model b) Relational data model c) Hierarchical data model d) Object data model
466) Which of the following data type is used to store " String " ?
a) Char b) Float c) String d) Double
467) Which of the following looks for the prototype of functions , when a function is called .
a) Linker b) Loader c) Compiler d) Parser
474) Which of the following format specifier is used for float data type ?
a) %e b) %d c) %f d) %s
476) Following control object is used to display a list of items on the forms .
a) Text Box b) List Box c) Combo Box d) Both B & C
480) 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 ####
484) In the following activity , the cost factors are taken into consideration .
a) Project planning b) Requirements analysis c) Feasibility study d) Data analysis
488) If a = 5 and b = 10 , what the output of the following expression ? a>b? a*b: a+b;
a) 5 b) 150 c) 100 d) 15
502) Mistakes that cause a running program to produce incorrect results is called .
a) Syntax error b) Logical error c) Program error d) Runtime error
504) In following normal form , any repeating group from the table is removed .
a) 1 NF b) 2 NF c) 3 NF d) 4 NF
507) Which of the following function is used to read character from a file?
a) getc ( ) b) putc ( ) c) fputs ( ) d) fgets ( )