67% found this document useful (3 votes)
15K views15 pages

12th Computer Sc. Solved MCQs

The document is a quiz on computer and database concepts with 47 multiple choice questions. It covers topics like C language fundamentals, file input/output, data types, functions, SQL, database concepts like entities, attributes, relationships, normalization, and MS Access objects like tables, queries, forms and reports. The questions test knowledge of basic programming constructs, database terminology and features of MS Access.
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
67% found this document useful (3 votes)
15K views15 pages

12th Computer Sc. Solved MCQs

The document is a quiz on computer and database concepts with 47 multiple choice questions. It covers topics like C language fundamentals, file input/output, data types, functions, SQL, database concepts like entities, attributes, relationships, normalization, and MS Access objects like tables, queries, forms and reports. The questions test knowledge of basic programming constructs, database terminology and features of MS Access.
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

wwww.zahidenotes.

com SMART TEST SERIES


www.notespk.com
[email protected]

Subject Name: Computer 12


I) Tick the Correct Option: (All questions / options - 250 / 0 ) 0 Marks
1) What will be the output of the following point f("%f",5.5555);
a) 5.555 b) 5.55 c) 5.56 d) 5.00
Correct Answer
5.55
2) An ampersand (&) before the name of a variable denotes:
a) Actual value b) Variable nae c) Address d) Data type
Correct Answer
Address
3) To perform File I/O operations, we must use _____________ header file.
a) <ifstream> b) <ofstream> c) <fstream> d) Any of these
Correct Answer
<fstream>
4) The printf is a _____ function:
a) Built in b) User define c) Local d) All of these
Correct Answer
Built in
5) Which is used to associate entities with one another?
a) Entity b) Attribute c) Identifier d) Relationship
Correct Answer
Relationship
6) Which mode is used to open a file in read/write mode:
a) w b) w+ c) r+ d) a+
Correct Answer
w+
7) Which format specifier is used for integer data typee?
a) %d b) %c c) %s d) %f
Correct Answer
%d
8) C language programs are divided into unit called:
a) Section b) Syntax c) Function d) Sub form
Correct Answer
Function
9) The ampersand used in scanf() function is called:
a) Address indicator b) Cell address c) Control d) Program
Correct Answer
Address indicator
10) A relation is also known as:

a) Table b) Tuple c) Relation d) Attribute


Correct Answer
Table
11) In 3NF, which form of dependency is removed?
a) Functional b) Non-Functional c) Associative d) Transitive
Correct Answer
Transitive
12) SQL stands for:
a) Structure Query Language b) Sort Query Language c) Self Query Language d) Seek Query Language
Correct Answer
Structure Query Language
13) The output of a query in the form of a:
a) Table b) form c) Report d) Macro
Correct Answer
Table
14) Customers, cars and parts are examples of:
a) Entity b) Attribute c) Cardnals d) Relationship
Correct Answer
Entity
15) Which of the following are object in MS Access database?
a) Table, Forms, Queries and Reports b) Database, Datasheet and Form views c) Folders and Tools d) All of above
Correct Answer
Table, Forms, Queries and Reports
16) The person who is responsible for the design. implementation. operating, management and maintenance of database:
a) Database Administrator b) Data Administrator c) The user d) System analyst
Correct Answer
Database Administrator
17) 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 these
Correct Answer
One-to-one
18) Comments are used to increase the _____ of the program:
a) Visibility b) Beauty c) Readability d) Complexity
Correct Answer
Readability
19) Which of the following statement assigns a value tomany variables:
a) Compound assignment statement b) L value c) R value d) Input statement
Correct Answer
Compound assignment statement
20) A file is stored in:
a) RAM b) Hard Disk c) ROM d) Cache
Correct Answer
Hard Disk
21) Different attributes in two different tables having same name are reffered to as:
a) Synonym b) Homonym c) Acronym d) Mutually exclusive
Correct Answer
Homonym
22) Which is shortcut key to execute a program:
a) F9 b) Alt + F9 c) F5 d) Ctrl + F9
Correct Answer
Ctrl + F9
23) Relational operators allows you to ______ numbers:
a) Add b) Compare c) Divide d) Multiply
Correct Answer
Compare
24) To create an output stream, we must declare the stream to be of class ___________ .
a) ofstream b) ifstream c) iostream d) None of these
Correct Answer
ofstream
25) A loop within another loop is called:
a) Finite b) Infinite loop c) Nested loop d) Outer loop
Correct Answer
Nested loop
26) A function does not return any thing has return type:
a) Nothing b) Float c) Void d) Null
Correct Answer
Void
27) How many are basic layouts of forms in Microsoft Access?
a) 2 b) 4 c) 3 d) 5
Correct Answer
4
28) In a table, each column represents a:
a) Record b) Field c) Dataset d) All of above
Correct Answer
Field
29) The conditional operator is an alternative of:
a) if b) if else c) nested if d) None of these
Correct Answer
if else
30) Two or many attributes having different names but same meaning are:
a) Homonyms b) Aliases c) Synonyms d) None of these
Correct Answer
Synonyms
31) The escape sequence for back slash is:
a) \ b) \b c) \\ d) \t
Correct Answer
\\
32) The columns of of a table correspond to:
a) Table b) Record c) Field d) Cell
Correct Answer
Field
33) A relation is analogous to a:
a) File b) Field c) Record d) Row
Correct Answer
File
34) The last statement is use to move case block in switch() structure must be:
a) Default b) if-else c) Break d) else
Correct Answer
Default
35) A database is an organized collection of ______related data:
a) Logically b) Physically c) Loosely d) Badly
Correct Answer
Logically
36) To find a four character name taht starts with H, criteria is specified as:
a) H * 4 b) H ? 4 c) H ????? d) H ####
Correct Answer
H ?????
37) Function prototype for built-in functions are specified in:
a) Source file b) Header file c) Object file d) Image file
Correct Answer
Header file
38) Two Dimensional table of data is called:
a) Group b) Set c) Declaration d) Relation
Correct Answer
Relation
39) Which of the following object is used to retrieve data from database and present in in a formatted way?
a) Report b) Form c) Table d) Query
Correct Answer
Form
40) An attribute is also known as:
a) Table b) Relation c) Row d) Field
Correct Answer
Field
41) Which of the following is not used to seek a file pointer?
a) ios::cur b) ios::set c) ios::end d) ios::beg
Correct Answer
ios::set
42) How many are the layout of report:
a) 2 b) 3 c) 4 d) 5
Correct Answer
3
43) The actual data of database is stored in:
a) Tables b) Queries c) Forms d) Reports
Correct Answer
Tables
44) The body of loop comes before the test condition in:
a) do-while b) while c) for d) All of above
Correct Answer
for
45) Which of the following is most popular and powerful DBMS?
a) MS-word b) MS-Access c) MS-Excel d) MS-Power Point
Correct Answer
MS-Access
46) Anaother term used for a conditional operator is:
a) Unary b) Binary c) Ternary d) Interaction
Correct Answer
Ternary
47) Which of the following is an example of database:
a) Phonebook b) Library catalog c) Student records d) All of above
Correct Answer
All of above
48) An expression that uses a relational operator is known as:
a) Operational b) Sequential c) Serial d) Relational
Correct Answer
Relational
49) Function prototype for built in function are specified in:
a) Source files b) Header files c) Object files d) Image files
Correct Answer
Header files
50) The output of the compiler is called:
a) Source code b) Object code c) Linked code d) Program
Correct Answer
Object code
51) Variable that holds a large group of similar type of data is called:
a) Array b) Scalar value c) Constant d) Multiple
Correct Answer
Array
52) Microsoft Access save the database with the extension:
a) .mdb b) .msdb c) .madb d) None of these
Correct Answer
.mdb
53) The ASCII code for escape key is:
a) 27 b) 28 c) 29 d) 30
Correct Answer
27
54) A string constant is written in:
a) Single quotation marks b) Double quotation mark c) Parenthesis d) Curly braces
Correct Answer
Double quotation mark
55) A relation must have a key:
a) Sort key b) Foreign key c) Composite key d) Primary key
Correct Answer
Primary key
56) A built in function:
a) Can not be redefined b) Can be redefined c) Can not return a value d) Should be redefined
Correct Answer
Can be redefined
57) Which of the following is not a database object?
a) Table b) Query c) Report d) MS Word
Correct Answer
MS Word
58) Which is not included in the definition of entity:
a) Person b) Object c) Concept d) Action
Correct Answer
Concept
59) Each set of related items in a table is called:
a) Table b) Record c) Field d) Query
Correct Answer
Record
60) The loop which never end is called:
a) Running loop b) Infinite loop c) Nested loop d) Continuous loop
Correct Answer
Infinite loop
61) Variable and constant names cannot contain:
a) Modulus b) Increment c) Decrement d) All of above
Correct Answer
Increment
62) To find four character name that starts with H, the criteria is specified as:
a) H * 4 b) H ? 4 c) H ??? d) H # # #
Correct Answer
H ???
63) Which is needed to add, edit or delete records from a table?
a) Record view b) Datasheet view c) Design view d) Edit view
Correct Answer
Datasheet view
64) Which of the following function is used to input data in C-programs:
a) scanf b) printf c) get d) sqrt
Correct Answer
scanf
65) A relation that contains minimal redundancy and allows easy use is called:
a) Clean b) Simple c) Complex d) Well structure
Correct Answer
Well structure
66) Which loop structure executes the of the loop at least once?
a) while b) do-while c) for() d) switch()
Correct Answer
do-while
67) A database containing all students in class would store basic data of students is:
a) Record b) Field c) Cell d) File
Correct Answer
File
68) _____ is not a valid escape code:
a) \t b) \r c) \y d) \f
Correct Answer
\y
69) The format specified used for character type data type:
a) %c b) %d c) %e d) %f
Correct Answer
%c
70) The process of sending argument to a function is called:
a) Sending b) Filtering c) Delivering d) Passing
Correct Answer
Passing
71) The symbol that perform operation on data is called:
a) Syntax b) Operators c) Function d) Debug
Correct Answer
Operators
72) A variable declared inside the function is called:
a) Local b) Global c) Actual d) Formal
Correct Answer
Local
73) A database may contain:
a) Only one table b) At most two tables c) At most three tables d) None of these
Correct Answer
None of these
74) How many primary key can a table have?
a) One b) Two c) Between 1 and 5 d) No limit
Correct Answer
One
75) Which of the following is not arithmetic operators except:
a) + b) - c) % d) >
Correct Answer
>
76) Which of the following is equivalent to (p>=q):
a) p<q b) !(p<q) c) p>q d) !p<q
Correct Answer
!p<q
77) Which operator in C is called Ternary Operator:
a) If b) ++ c) ? d) $
Correct Answer
?
78) A logical grouping of characters is a:
a) File b) Record c) Field d) All of above
Correct Answer
Field
79) How many types of relationship?
a) 2 b) 3 c) 4 d) 5
Correct Answer
3
80) All of the following are logical operators except:
a) OR b) AND c) < d) NOT
Correct Answer
<
81) A sub form can created by using:
a) Drag and drop method b) The form wizard c) Sub form wizard d) All of above
Correct Answer
All of above
82) Data that causes inconsistency lacks is:
a) Good data b) Data integrity c) Data redundancy d) Data anomaly
Correct Answer
Data integrity
83) Whcih escape sequence can used to begin a new line in C:
a) /a b) /b c) \n d) /m
Correct Answer
\n
84) The format specifier %U is used for:
a) Integer b) Unsigned short c) Unsigned float d) unsigned long int
Correct Answer
Unsigned short
85) Which statement is used to move the control to the start of loop body:
a) Continue b) Break c) Switch d) None of these
Correct Answer
Continue
86) Computer programs are also known as:
a) Software b) Procedure c) Hardware d) Algorithm
Correct Answer
Software
87) Relational operator allows us to _____ numbers:
a) Compare b) Add c) Multiple d) Divide
Correct Answer
Compare
88) A collection of raw facts and figures is called:
a) Files b) Data c) Processing d) Information
Correct Answer
Data
89) A function is called by its:
a) Return type b) Name c) Body d) Both a & b
Correct Answer
Name
90) 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
Correct Answer
One-to-one
91) An index may be created on:
a) Secondary key b) Foreign key c) Primary key d) All of above
Correct Answer
All of above
92) The expression 10 % 3 has a value equal to:
a) 1 b) 8 c) 3 d) 5
Correct Answer
1
93) A collection of data consists of name, address and email of a person is called:
a) Byte b) Record c) Character d) Field
Correct Answer
Record
94) The smallest meaningful unit of data in a database is called:
a) Byte b) Record c) Character d) Field
Correct Answer
Field
95) DBMS stands for:
a) Database Mangement System b) Database Model System c) Distant base Model System d) Digital bus Model System
Correct Answer
Database Mangement System
96) Conditional operator takes:
a) Three operands b) Two operands c) One operand d) Many operands
Correct Answer
Three operands
97) Which of the following may be temporary file:
a) Data warehouse b) Transaction file c) Data structure d) Data type
Correct Answer
Transaction file
98) Refrential integrity is applied on:
a) Primary key b) Foreign key c) Secondary key d) Candidate key
Correct Answer
Foreign key
99) Which function is used to read character from a file?
a) getc() b) putc() c) fputs() d) fgets()
Correct Answer
getc()
100) The functions used for input and output are stored in header file:
a) conio.h b) math.h c) stdio.h d) output.h
Correct Answer
stdio.h
101) Which of the following are valid case in switch:
a) Case 1: b) Case x<4 c) case 'ab' d) Case 1.5
Correct Answer
Case 1:
102) The rogrammer usually enter into computer using:
a) Compiler b) Debugger c) Text editor d) Linker
Correct Answer
Text editor
103) In Access, the structure of a table is created in _______ view:
a) Design view b) Database view c) Bothe a & b d) None of these
Correct Answer
Design view
104) A database consists of various components called:
a) Tools b) Properties c) Entities d) Objects
Correct Answer
Objects
105) Insert command is used to insert:
a) A new table b) A new record c) A view d) Dependencies
Correct Answer
A new record
106) Which of the following refers to the correctness and consistency of data?
a) Data independence b) Data integration c) Data integrity d) Data model
Correct Answer
Data integrity
107) Which of the following program requires no translator to execute the program:
a) C b) C+ c) Maching langauge d) Assembly languagge
Correct Answer
Maching langauge
108) Ingredient of data modeling which defines the nature of the relationship among entities:
a) Modality b) Cadinality c) Object d) Both a & b
Correct Answer
Both a & b
109) A record is a complete set of ______ field:
a) Distinict b) Related c) Designed d) All of above
Correct Answer
Related
110) Which of the given is not a relationship:
a) One to one b) One to many c) Many to one d) All
Correct Answer
All
111) Conditional operator is an alternate of:
a) if b) if-else c) nested if-else d) conditional operator
Correct Answer
if-else
112) The scope of variable refers to its:
a) Length b) Name c) Accessibility d) Data type
Correct Answer
Accessibility
113) In a relational database, a single piece of information is called:
a) Table b) Record c) Entity d) Attribute
Correct Answer
Attribute
114) The case block in switch() structure ends with:
a) End select b) End case c) Break d) Case else
Correct Answer
Break
115) A programming language used for mathematical and engineering applications was:
a) FORTRAN b) BASIC c) Assembly d) COBOL
Correct Answer
FORTRAN
116) Which is a numeric data type?
a) Floating point b) Integer c) Both a & b d) None of these
Correct Answer
Both a & b
117) In for loop, this expression is executed obly once:
a) Test b) Validation c) Initialization d) None of these
Correct Answer
Initialization
118) Which is used for two way decision:
a) Switch b) if-else c) if d) Nested if else
Correct Answer
if-else
119) In relational database, a table is called:
a) Tuple b) Relation c) File d) Schema
Correct Answer
Relation
120) Database development process involves mapping of conceptual data model into:
a) Object oriented data b) Network data model c) Implementation d) Hierarchical model
Correct Answer
Implementation
121) Which of the following is the correct association?
a) File=Column b) Record=Row c) Field=Row d) Record=Table
Correct Answer
Record=Row
122) An if inside another if is:
a) A branch b) Nested if c) A relational d) A conditional operator
Correct Answer
Nested if
123) Another name of Row is:
a) Field b) Column c) Tuple d) Attribute
Correct Answer
Tuple
124) A primary key that consists of more than one attribute is called:
a) Foreign key b) Composite key c) Multi-value key d) Compound key
Correct Answer
Composite key
125) The output of a query is in the form of a:
a) Table b) Form c) Report d) Macro
Correct Answer
Table
126) A relationship between patient and bed is:
a) One to one b) One to many c) Many to many d) Many to one
Correct Answer
One to one
127) A type of function written by the programmer is known as:
a) User defined b) Subprogram c) Subroutine d) Built in function
Correct Answer
User defined
128) The printed or screen display of data or information in the database is called:
a) Entity b) Report c) Query d) Screen
Correct Answer
Report
129) Which of the following function is used to write character to a file:
a) putc() b) fputc() c) fget() d) get()
Correct Answer
putc()
130) The translated program into machine code is called:
a) Source program b) Object program c) System program d) Application program
Correct Answer
Object program
131) This means to increase to value by one:
a) Modulus b) Increment c) Decrement d) All of above
Correct Answer
Increment
132) A report that provide a column for each field of the records in under the column header is known as:
a) Tabular Report b) Columnar Report c) Database Report d) Justified Report
Correct Answer
Tabular Report
133) Variables are created in:
a) RAM b) ROM c) Hard Disk d) Cache
Correct Answer
RAM
134) In which loop the condition comes after the body of loop:
a) while loop b) do-while loop c) for loop d) Both b & c
Correct Answer
do-while loop
135) ______ is an object that extracts specific information from database?
a) Table b) Form c) Report d) Macro
Correct Answer
Table
136) The statement causes a loop to terminate early:
a) Break b) Delete c) Exit d) Terminate
Correct Answer
Break
137) Which data type is the default type?
a) Memo b) Number c) Text d) Auto number
Correct Answer
Text
138) Writing a program in C language is ________ than:
a) Less time consuming b) More time consuming c) Less simple d) Both A & C
Correct Answer
Less time consuming
139) Which of the following is component of MS-Access application windows?
a) Title bar b) Tool bar c) Sroll bar d) All of above
Correct Answer
All of above
140) Which one is logical data type in MS-Access:
a) Auto number b) True/False c) OLE Object d) Yes/No
Correct Answer
Yes/No
141) Another term for conditional operator is:
a) Binary b) Ternary c) Byte d) Iteration
Correct Answer
Ternary
142) Organizing the database in computer disk storage is done in:
a) Logical design b) Physical design c) Analysis d) Implementation
Correct Answer
Physical design
143) On successful closing a file, the close() returns:
a) Null b) 0 (Zero) c) 1 (one) d) File pointer
Correct Answer
0 (Zero)
144) Which of the following things are determined by format specifier:
a) Data type b) Field Width c) Format of the value d) All of above
Correct Answer
All of above
145) Which loop structure always executes at least once:
a) do while b) for c) while d) None of these
Correct Answer
do while
146) _______ are file handling functions:
a) fprint() b) fscanf() c) Both a & b d) None of these
Correct Answer
fprint()
147) The column of a table corresponds to:
a) Table b) Record c) Field d) Cell
Correct Answer
Field
148) The number of bytes used by double data type in C is:
a) 2 b) 8 c) 12 d) 16
Correct Answer
8
149) Local variables are also called:
a) Automatic b) Normal c) Global d) None of these
Correct Answer
Automatic
150) A form within another form is as known as:
a) Main form b) Special form c) Dialog box d) Sub form
Correct Answer
Sub form
151) All information's about one person or item is held in:
a) Field b) File c) Record d) Database
Correct Answer
Record
152) Which of the following represent the wizard of DBMS?
a) Database Wizard b) Table Wizard c) Form Wizard d) All of above
Correct Answer
All of above
153) The columns of a table corresponds to:
a) Table b) Record c) Field d) Cell
Correct Answer
Field
154) The conditional operator is an alternative of:
a) if b) if-else c) nested if d) switch()
Correct Answer
if-else
155) A loop within a loop is called:
a) Complex b) Simple c) Nested d) Infinite
Correct Answer
Nested
156) To find a seven character name that start with j, the criteria is specified as:
a) j * 4 b) j ? 7 c) j * 7 d) j???????
Correct Answer
j???????
157) Which of the following loop is called counter loop:
a) for b) while c) do-while d) if
Correct Answer
for
158) A set of rule that must be followed to developed a program is called:
a) Syntax b) Preprocessor c) Bug d) Debug
Correct Answer
Syntax
159) The process of sending an argument to a function is called:
a) Sending b) Filtering c) Delivering d) Passing
Correct Answer
Passing
160) A record in a database is the information refferring to a:
a) Person b) Product c) Event d) All of above
Correct Answer
All of above
161) Which function is used to input data in C-language:
a) scanf() b) printf() c) sqrt() d) pow()
Correct Answer
scanf()
162) A two dimensional table of data is called a:
a) Group b) Set c) Declaration d) Relation
Correct Answer
Relation
163) Streams that will be performing both input and output operations must be declared as class _________ .
a) iostream b) fstream c) stdstream d) Stdiostream
Correct Answer
fstream
164) The scope of a variable refers to its:
a) Length b) Name c) Accessibility d) Data type
Correct Answer
Accessibility
165) How many table views are available in Microsoft Access?
a) 4 b) 3 c) 2 d) 1
Correct Answer
4
166) Which of the following is not suitable for input mask?
a) Tools b) Property c) Entities d) Objects
Correct Answer
Objects
167) The logical representation of an organization data is called a(n):
a) DBMS b) E-R model c) DBA d) None of these
Correct Answer
E-R model
168) The process of arranging data in a logical sequence is called:
a) Summarizing b) Sorting c) Classifying d) Data capturing
Correct Answer
Sorting
169) The modulus operator is used for:
a) Exponentiation b) Multiplication c) Integer remainder d) Division
Correct Answer
Integer remainder
170) A category of data or information that describes an entity is called a:
a) Attribute b) Field c) Record d) Entity
Correct Answer
Attribute
171) Whcih is the native language of computer:
a) C language b) Pascal c) DOS d) Machine language
Correct Answer
Machine language
172) A row of relation is called a:
a) Attribute b) Entity c) Tuple d) Both a & b
Correct Answer
Tuple
173) Memory is allocated to a local variale at the time of its:
a) Declaration b) Destruction c) Definition d) First reference
Correct Answer
Definition
174) Which of the following format specifier is used for character data type:
a) %s b) %c c) %f d) %d
Correct Answer
%c
175) Every C-statement ends with a:
a) Period b) Comma c) Semicolon d) Colon
Correct Answer
Semicolon
176) Which of the following is not a data distribution strategy?
a) Centralized b) Partitioned c) Hybrid d) Duplicated
Correct Answer
Hybrid
177) The diomand symbol indicates:
a) Progress b) Input c) Output d) Condition
Correct Answer
Condition
178) Which is loop statement:
a) if b) if-else c) switch d) None of these
Correct Answer
None of these
179) Which statement is used to move the control to the start of the loop body:
a) Continue b) Break c) Exit d) Switch()
Correct Answer
Continue
180) Format specifier for char data type is:
a) %s b) %c c) %d d) %f
Correct Answer
%c
181) Which of the following buttons of find and replace dialog box is click to start the search process?
a) Find b) Find Next c) Search d) Next
Correct Answer
Find Next
182) This statement cause a loop to terminate early:
a) Exit b) Terminate c) Break d) All of above
Correct Answer
Break
183) In text file, data is stored in:
a) ASCII-Code b) Binary code c) Octal code d) Text code
Correct Answer
ASCII-Code
184) _________ is return type of is_open() function.
a) int b) bool c) float d) char *
Correct Answer
bool
185) MS-Access database consists of various components called:
a) Controls b) Objects c) Tools d) Entities
Correct Answer
Objects
186) Which auto form displays one record at a time?
a) Tabular b) Columnar c) Datasheet d) Justified
Correct Answer
Columnar
187) The case block ends with:
a) End select b) End case c) Case else d) Break
Correct Answer
Break
188) Each separate pieece of information stored in a record is called a:
a) Form b) Field c) Table d) Cell
Correct Answer
Field
189) An IDE typically consists of:
a) Text editor b) Compiler c) Debugger d) All of above
Correct Answer
All of above
190) Which of the following is correct association?
a) File=Column b) Record=Row c) Field Row d) Record=Table
Correct Answer
Record=Row
191) Which of the following represents the preprocessor directive?
a) void main (void) b) { } c) #include<stdio.h> d) Include<std.h>
Correct Answer
#include<stdio.h>
192) In an E-R diagram, a rectangle presents a(n):
a) Identifier b) Entity c) Relationship d) Attribute
Correct Answer
Entity
193) The process of writing a program into programming language is called:
a) Compiling b) Debugging c) Coding d) Flow chart
Correct Answer
Coding
194) Which of the following is valid variable name:
a) 2S b) 2-S c) S2 d) S*2
Correct Answer
S2
195) In If statement false is represented by:
a) 0 b) 1 c) 2 d) 3
Correct Answer
0
196) Which field type can be indexed:
a) Memo b) Hyperlink c) OLE d) Number
Correct Answer
Number
197) Which of the given is equivalent to (p >= q)?:
a) p<q b) !(p < q) c) p > q d) !p < q
Correct Answer
!(p < q)
198) Which of the following data model is more flexible:
a) Network data model b) Data hierarchical model c) Data relational model d) Object data model
Correct Answer
Object data model
199) In 2NF, which form of dependency is removed?
a) Functional b) Partial c) Associative d) Transitive
Correct Answer
Partial
200) Global variables are created in:
a) RAM b) ROM c) Hard Disk d) Cache
Correct Answer
RAM
201) Create command is used to create:
a) Tabe b) Report c) Query d) Form
Correct Answer
Tabe
202) Which of the following operators work with one oprerand:
a) Logical b) Unary c) Binary d) Ternary
Correct Answer
Unary
203) What is Z to A order called?
a) Ascending b) Descending c) Condescending d) Alphabetical
Correct Answer
Descending
204) The function used to display output on the screen is called:
a) printf b) scanf() c) getch() d) gets()
Correct Answer
printf
205) A row table is divided into columns called:
a) Records b) Fields c) Entities d) None of these
Correct Answer
Fields
206) A variable declared outside any function is called:
a) Global variable b) Local variable c) Automatic variable d) Static variable
Correct Answer
Global variable
207) A report may be based on a:
a) Table b) Query c) Both a & b d) None of these
Correct Answer
Both a & b
208) Format specifier is started with symbol:
a) ? b) % c) & d) @
Correct Answer
%
209) In "If" Statement False is represented by:
a) 0 b) 1 c) 2 d) 3
Correct Answer
0
210) Which of the following is not a valid identifier:
a) return b) myint c) myInt d) total3
Correct Answer
return
211) Which is an example of multiple branches from single expression:
a) If statement b) Switch c) While loop d) for-loop
Correct Answer
Switch
212) Which is loop statement:
a) if b) if-else c) switch d) for
Correct Answer
for
213) Which programming structure makes a comparison:
a) Relation b) Decision c) Repetition d) Iteration
Correct Answer
Relation
214) An MS Access table contain:
a) Record but not fields b) Fields but no records c) Both records and fields d) None of these
Correct Answer
Both records and fields
215) How many types of relationship?
a) 2 b) 3 c) 5 d) 4
Correct Answer
5
216) One execution of a loop is known as a(n):
a) Cycle b) Duration c) Iteration d) Test
Correct Answer
Iteration
217) How many types of loop structure are available in C-language:
a) One b) Two c) Three d) Four
Correct Answer
Three
218) Which of the follwoing is related to modality:
a) Optional b) Many c) One d) One-to-many
Correct Answer
Optional
219) A char type data occupy:
a) 2 byte b) 1 byte c) 3 byte d) 4 byte
Correct Answer
1 byte
220) In a relational database, a single piece of information is called:
a) Field b) Record c) Entity d) Attribute
Correct Answer
Attribute
221) A graphical query tool is known as:
a) Query Grid b) Design Grid c) Query Form d) Design Form
Correct Answer
Design Grid
222) Which statement is used to exit from loop body:
a) continue b) clrscr c) switch d) break
Correct Answer
break
223) The data in a tables is entered in:
a) Design view b) Normal view c) Data sheet view d) Layout view
Correct Answer
Data sheet view
224) The fundamental concept of relational database is:
a) Query b) Table c) Form d) Report
Correct Answer
Table
225) In a for statement, this expression is executed oly once:
a) Test b) Validation c) Initialization d) None of these
Correct Answer
Initialization
226) The format specifier %u is used for:
a) Integer b) Unsigned short c) Unsigned float d) Unsigned long
Correct Answer
Unsigned short
227) An entity related to itself in an ERD Model refers to:
a) Recursive relationship b) One to many relationship c) Many to many relationship d) One to one relationship
Correct Answer
Recursive relationship
228) Which key does not hold uniqueness property?
a) Candidate key b) Foreign key c) Primary key d) Secondary key
Correct Answer
Secondary key
229) What
is the final value of X after executing the following code:
for(int x=0; x<10;x++)
a) 10 b) 9 c) 1 d) 0
Correct Answer
9
230) void occupies how many bytes in memory?
a) Zero b) One c) Two d) Four
Correct Answer
Zero
231) The key for data retrieval purpose is:
a) Sort key b) Secondary key c) Primary key d) Control key
Correct Answer
Primary key
232) The goal of normalization is to:
a) Get stable data b) Increase Number of relation c) Increase redundancy d) None of these
Correct Answer
Get stable data
233) The rule that a second from a table cannot be deleted if its associated record exitin a related table is called _____ rule?
a) Referential integrity b) Entity Relationship c) Normalization d) All of above
Correct Answer
Referential integrity
234) The attribute on the left hand of the arrow in a functional dependency is:
a) Candidate key b) Determinate c) Foreign key d) Primary key
Correct Answer
Primary key
235) Why are validation rules used in a database:
a) Ensure correct data is entered b) One to many relationship c) Both a & b d) Neither a or b
Correct Answer
Both a & b
236) a+ = b is equivalent to:
a) b+ = a b) a = +b c) a = a+b d) b = b+a
Correct Answer
a = a+b
237) What is the default field size of a text data type field?
a) 2 b) 5 c) 20 d) 50
Correct Answer
50
238) How many variables can be used in print() function?
a) One b) Two c) Three d) Many
Correct Answer
Many
239) Which expression in "for" loop structure is executed only once:
a) Initialization b) Condition c) Increment/Decrement d) body of the loop
Correct Answer
Initialization
240) Semicolon is placed at the end of condition in:
a) for loop b) while loop c) do-while loop d) nested loop
Correct Answer
do-while loop
241) What will be output of: (6>7) ? printf(ABC): printf("XYZ");
a) ABC b) XYZ c) ABSXYZ d) XYZABC
Correct Answer
XYZ
242) Which of the following key is used to save a file:
a) F2 b) F3 c) F5 d) F9
Correct Answer
F2
243) The symbol of conditional operator is:
a) ! b) : c) ? d) *
Correct Answer
?
244) While() loop is called:
a) Conditional loop b) Counter loop c) Attribute d) Wend loop
Correct Answer
Conditional loop
245) The wildcard _____ Sal [e i] ma?
a) Saleema b) Salima c) Both a & b d) None of these
Correct Answer
Salima
246) The data can be recovered in case of loss by using:
a) Master file b) Backup file c) Transaction file d) Data file
Correct Answer
Backup file
247) In relation database, a table is called:
a) Tuple b) Relation c) File d) Schema
Correct Answer
Relation
248) Which one is logical operator:
a) == b) != c) <> d) !
Correct Answer
!
249) The function getch() is defined in:
a) stdio.h b) conio.h c) string.h d) math.h
Correct Answer
conio.h
250) Another term for computer making a decision is:
a) Squential b) Selection c) Repetition d) Iteration
Correct Answer
Selection

More Notes:
2nd year Notes pdf
2nd year guess papers
2nd year datesheet

You might also like