Thanks to visit codestin.com
Credit goes to www.scribd.com

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

COMPUTER Solved MCQ For Part 2

The document consists of multiple-choice questions covering fundamental concepts of databases, SQL, and Microsoft Access. It addresses topics such as data types, database design, normalization, and integrity, along with specific terminology related to database management systems. Each question provides options for answers, testing knowledge on various aspects of database theory and practice.

Uploaded by

ukh9121
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)
31 views15 pages

COMPUTER Solved MCQ For Part 2

The document consists of multiple-choice questions covering fundamental concepts of databases, SQL, and Microsoft Access. It addresses topics such as data types, database design, normalization, and integrity, along with specific terminology related to database management systems. Each question provides options for answers, testing knowledge on various aspects of database theory and practice.

Uploaded by

ukh9121
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

CH # 1 DATA BASICS

1. SQL is a:
(A) unstructured language (B) Structured language (C) Object oriented language(D) Software
2.The manipulated and processed data is called:
(A) Object (B) Information (C) Knowledge (D) Data
3.The process of arranging data in a logical sequence is called:
(A) Sorting (B) Summarizing (C) Capturing (D) Classifying
4.Storage and retrieval of data is related to:
(A) Data Capturing (B) Data Manipulation (C) Managing Output (D) Analysis Result
5. A collection of raw facts and figures is called:
(A) Data (B) Information (C) Processing (D) Output
6. Arithmetic manipulation of data is known as:
(A) Summarizing (B) Classifying (C) Sorting (D) Calculations
7.The smallest meaningful unit of Data in a Database is called:
(A) Byte (B) Record (C) Character (D) Field
8. A set of related records that represents a unit of data is:
(A) File (B) Record (C) Field (D) Database
9. A collection of related data field is called:
(A) File (B) Database (C) Attributes (D) Record
10. 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
11. A set of related files created and managed by a DBMS is called:
(A) Field (B) Record C Database (D) Module
12. Which of the following may be a temporary file?
(A) Master File (B) Data File (C)Transaction File (D) Program File
13. A logical grouping of characters is:
(A) Field (B) Record (C) File (D) Database
14. A______ can store text only.
(A) Binary (B) Text File (C) Exe File (D) Object File
15. In text file data is stored in:
(A) ASCII-Code (B) Binary Code. (C) Octal Code (D) Text Code
16. Which one of the following types of files requires largest processing time?
(A) Sequential file (B) Random file (C) Indexed Sequential file (D) Direct Access file
17. Data can be recovered in case of loss by using:
(A) Master File (B) Transaction File C Backup file (D) Data File
18. A database containing all students in a class would store basic data of students in:
(A) Record (B) Field (C) Cell (D) File
19. A technique of physically arranging records of a file on secondary storage devices is called:
(A) Physical pointer (B) Retrieval program (C)File organization (D) Update program
20. Which of the following is not a file type from usage point of view?
(A) Master file (B) Transaction files (C) Backup file (D). Index sequential file
21. The extension of image file is:
(A).exl (B) .doc (C) .bmp (D) .ppt
22. Which of the following is also known as data set?
(A) record (B) field (C) file (D) module
23. A type of file that contains data is called?
(A) data file (B) Program file (C) image file (D) Query file
24. Which represents a collection of concepts that are used to describe the structure of a database?
(A) Data ware house (B) Data model (C) Data structure (D) Data type
25. A data base is an organized collection of data.
(A) Physically (B) Loosely (C) Random (D) Logically
26. Which of the following database model is also referred as inverted tree?
(A) Hierarchal (B) Network (C) Relational (D) Object
27. Which one of the following data models is more flexible?
(A) Network Model (B) Hierarchical Model (C) Relational Model (D) Object Data Model
28. Which of the following data is least flexible?
(A) Network data model (B) Hierarchical data model
(C) Relational data model (D) Object data model
29. Data inconsistency is caused by:
(A) Organized data (B) Integrated data (C) Independent data (D) Redundant data
30. Data that causes inconsistency lacks:
(A) Good data (B) Data integrity (C) Data redundancy (D) Data anomaly
31. SQL stands for:
(A) Sort Query List (B) Self Quantifying language.
(C) Structured Query Language (D) Self Quantitative Language

CH # 2 BASIC CONCEPTS AND TERMINOLOGIES OF DATABASE

32. The columns of a table correspond to:


(A) Table (B) Record (C)Field (D) Cell
33. The row of relation can be of _____________order.
(A) Any (B) Same (C) Sorted (D) Constant
34. The selected candidate key is called:
(A) Foreign key (B) Composite key (C)Primary key (D) Super key
35. Teachers, student and cars are example of:
(A) Relationships (B) Entities (C) Attributes (D) Identifiers
36. The category of data that describes an entity is called:
(A) Attribute (B) Data item (C) Record (D) Tuple
37. An Attribute is also known as:
(A) Relation (B) Row (C) Field (D) Tuple
38. Which is used to indicate characteristics of an object?
(A) Relationship (B) Cardinality (C) Modality (D) Attribute
39. The data or information that describes an entity is called:
(A) Attribute (B) Record (C) Tuple (D) Data Item
40. Which object is used to store the data?
(A) Query (B) Form (C) Macro D Table
41. The row of table is also called:
(A) Entity (B) Attributes (C) Cell (D) Record
42. A relation is also known as:
(A) Table (B) Tuple (C) Entity (D) Attributes
43. Which of the following is not included in the definition of entity?
(A) Person (B) Object (C)Concept (D) Action
44. The column of a table is known as:
(A) Record (B) Table (C) Field (D) Cell
45. 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
46. A relation is analogous to a:
(A) Table (B) Field (C) Record (D) Row
47. A table must have a:
(A) Primary key (B) Secondary key (C) Composite key (D) Sort key
48. Which of the following is also known as control key?
(A) Foreign key (B) Composite key (C) Primary key D. Sort key
49. Which of the following keys, does not hold uniqueness property?
(A) Foreign (B) Candidate (C) Primary (D) Secondary
50. Foreign key is found in:
(A) Parent Table (B). Dependent Table (C) Pivot Table (D) Index table
51. A table that contains the foreign key is called:
(A) parent table (B) Dependent Table (C) view (D) Index Table
52. An index may be created on:
(A) Secondary key (B) Primary key (C) Foreign key (D) All of these

53. How many primary keys can a relation have?


(A) At least once (B) Only One (C) No Limit (D) Three
54. 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
55. Which of the following can be a primary key?
(A) Last name (B) Salary (C)Customer ID (D) Region

CH # 3 DATABASE DESIGN PROCESS

56. All the hardware costs are considered during:


(A) Project planning (B) Requirement analysis (C) Feasibility study (D) Data analysis
57. Which of the following is not included is the definition of entity?
(A) person (B) object (C) concept (D) action
58. The degree of relation refers to the number of:
(A) Rows (B) Tables (C) Data (D) Columns
59. In an E-R Diagram, a rectangle represents a(n):
(A) Entity (B) Attributes (C) Relationship (D) Field
60. ____________is used to define/describe characteristics of an entity/object.
(A) Objects (B) Attributes (C) Records (D) Files
61. In an E-R diagram, a diamond represents a(n):
(A) Attributes (B) Relationship (C) Entity (D) Modality
62. In ERD model, the relationships between two entities are represented by:
(A) Rectangle (B) Oval (C) Square (D) Diamond
63. Customers, Cars are example of:
(A) Entities (B) Attributes (C) Cardinals (D) Relationship
64. Color of car is an example of:
(A) Entity (B) Attributes (C) Relation (D) Relationship
65. 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
66. Which of the following defines the nature of relationship?
(A) Modality (B) Decision tree (C) Attribute (D) None of the above
67. A set of related items in a table is called:
(A) File (B)Record (C) Query (D) Report
68. Duplicate data in multiple data files is called:
(A) Data integrity (B) Data Consistency (C) Program dependency (D) Data Redundancy
69. Which of the following is used to associate entities with one another?
(A) Entity (B) Attribute (C) Relation (D) Relationship
70. A person's name, birthday and social security number are examples of:
(A) Attributes (B) Entities (C) Relationships (D) Descriptors
71. Which of the following is a one-to-many relations?
(A) Student - Reg No (B) Mother-daughter (C) Person - Date of Birth (D) Country - Capital
72. Which of the following is not a basic data distribution strategy?
(A) Centralized (B) Partitioned (C) Replicated (D) Duplicated
73. Merging the relation is also known as:
(A)View integration (B) View entities (C) View tables (D) View relations
74. Organizing the database in computer disk storage is done in:
(A) Logical design (B) Analysis (C) Physical design (D) Conceptual design
75. Which one refers to the correctness and consistency of data?
(A) data independence (B) data integration (C) data integrity (D) data model
76. Why are validation rules used in a database?
(A) Ensure correct data is entered (B) To avoid typing errors
(C) Both A and B (D) Neither A nor B
CH # 4 DATA INTEGRITY AND NORMALIZATION

77. Referential integrity is applied on:


(A) Foreign key (B) Composite key (C) Primary key (D) Sort key
78. A referential integrity constraint is a rule that maintains consistency among the:
(A) Columns of two tables (B) Two columns of same table
(C) Rows of two table (D) Attribute of two tables
79. A primary key value cannot be null is what kind of integrity?
(A) Referential integrity (B) Entity integrity (C) Data integrity (D) Security integrity
80. In relational database, a table is also called:
(A) Tuple (B) Relation (C) File (D) Schema
81. Every relation must have ___________key.
(A) Candidate (B) Foreign (C)Primary (D) All of these
82. A relation that contains minimal redundancy and allows easy use called:
(A) Clean (B) Simple (C) Complex (D) Well-structured
83. A row of relation is called:
(A) Attribute (B) Entity (C) Tuple (D) Relation
84. Data inconsistency is caused by:
(A) Organized data (B) Integrated data (C) Independent data (D) Redundant data
85.Multiple copies of the same data is referred to as:
(A) data integrity (B) data inconsistency (C) data redundancy (D) data isolation
86. Transitive dependency is removed in:
(A) 1st Normal Form (B) 2nd Normal Form (C) 3rd Normal Form (D) 4th Normal Form
87. The Goal of Normalization is to:
(A) Increase (B) Increase Inconsistency Redundancy
(C) Get Stable (D) Increasing Anomalies Data Structure
88. Which of the following is correct association?
(A) file = column (B) record = row (C) field = row (D) record = table
89. Two or more attributes having different names but same meaning are called:
(A) Homonyms (B) Aliases (C) Synonyms (D) Alternate Attributes
90. In 2NF, which form of dependency is removed?
(A) Functional (B) Partial (C) Associative (D) Transitive
91. In 3NF, which form of dependency is removed?
(A) Functional (B) Non-Functional (C) Associative D) Transitive
92. Different Attributes in two different tables having same name are referred to as:
(A) Synonym B) Homonym (C) Acronym (D) Mutually exclusive

CH # 5 INTRODUCTION TO MICROSOFT ACCESS

93. MS Access saves the database with the extension:


(A) .mod (B) .msdb (C) .ppt (D) .mdb
94. Which of the following is not a database object?
(A) Table (B) Query (C) Form (D) MS-Word
95. The example of popular DBMS is:
(A) MS-Word (B) MS-Access (C) MS-Excel (D) MS-Power Point
96. In MS-Access, table contains:
(A) Fields (B) Record (C) Character (D) All
96. SQL is used for:
(A) Data definition (B) Data manipulation (C) Data definition and manipulation (D) Data creation
97. It makes very simple to create a database:
(A) Sample database (B) Wizard (C) Common standard (D) Easier programming
98. Find and replace command is found in:
(A) Edit menu (B) File menu (C) Tool (D) View menu
99. _____________is used to retrieve data from one or more tables.
(A) Macro (B) Table (C) Query (D) Form

100. Views are also called:


(A) Complex tables (B) Simple tables (C) virtual tables (D) Actual tables
101. A report may be based on:
(A) Table (B) Relationship (C) Form (D) Attribute
102. A record is a complete set of_ _field.
(A) Distinct (B) Designed (C) Related (D) Non-related
103. Which of the following object of database is used to retrieve data from database?
(A) Queries (B) Forms (C) Reports (D) Tables
104. Which object is the output of a database application?
(A) Form (B) Query (C) Table (D) Report
105. A database consists of various components called:
(A) Tools (B) Properties (C) Entities (D) Objects
106. Which objects is used to store data in database?
(A) Macro (B) Table (C) Form (D) Report
107. The output of the query is in the form of:
(A) Table (B) Form (C) Report (D) Query

CH # 6 TABLE AND QUERY

108. A request for information from a database in database terminology is called:


(A) Report (B) Letter (C) Table (D) Query
109. How many types of relationship?
(A) 5 (B) 4 (C) 3 (D) 2
110. The smallest meaningful unit of data in a database is called:
(A) Byte (B) Record (C) Character (D) Field
111. Which of the following is degree of a table?
(A) Total number of rows (B) Total number of columns
(C) Total number of cells (D) Total number of foreign keys
112. In a relational database, a single piece of information is called.
(A) Table (B) Record (C) Entity (D) Attribute
113. Every table must have a:
(A) Foreign key (B) Composite key (C) Primary key (D) Sort key
114. Each separate piece of information stored in a record is called:
(A) Form (B) Field (C) Table (D) Relation
115. Which data type is default type in Access?
(A) Memo (B) Number (C) Text (D) Auto number
116. Table views are available in Microsoft Access.
(A) 1 (B) 2 (C) 3 (D) 4
117. What is the default field size of a text data-type in MS-Access?
(A) 2 (B) 5 (C) 20 (D) 50
118. The data in table is entered in:
(A) Design view (B) Data sheet view (C) Normal view (D) Layout views
119. Which of the following view is used to modify data in_____:
(A) Layout view (B) Design view (C) Datasheet view (D) Divot view
120. Which view is used to add, edit or delete record from table?
(A) Record View (B) Datasheet View (C) Design View (D) Edit View
121. A virtual table that is constructed from other tables is called:
(A) Tuple (B) Table (C) view (D) report
122. Which key is used to move field to field in table window in datasheet view?
(A) Tab (B) Esc (C) Enter (D) Spacebar
123. Insert command is used to insert:
(A) A new record (B) A new column (C) A view (D) A new table
124. Create Command is used to create:
A) Tables (B) View (C) Report (D) Query
125. Which field type can be indexed?
(A) Memo (B) Number (C) Hyperlink (D) DLE
126. To find four-character names that starts with H, the criteria are specified as?
(A) H*a (B) H?4 (C) H??? (D) H##
127. ____________is used to retrieve data from one or more tables.
(A) Macro (B) Table (C)Query (D) Form
128. 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*”
129. The maximum length of text type field in MS-Access is:
(A) 50 characters (B) 250 characters (C) 155 characters (D) 255 characters
130. Which data type can be used to define a field that consists of only numbers to be used in
calculations?
(A) Text (B)Number (C) Memo (D) Date & Time
131. A request to get information from Database is called:
(A) Report (B) Query (C) Table (D) Field
132. Which of the following Menu is used to switch between tables views?
(A) Edit (B) File (C) Tools (D) View
133. The maximum number of tables in a database are:
(A) 01 (B) 02 (C) 03 (D) Many
134. Which data type can be used to define a field that contains data content such as chart, picture
or graphic object?
(A) Hyperlink (B) Memo (C) OLE Object (D) Auto Number
135. Which symbol indicates that you are editing a record?
(A) Pencil (B) Black arrow (C) Key (D) Asterisk
136. To find a name that start with S, the criteria are written as:
(A) $#? (B) $# (C)? $ (D) s*
137. The graphically query tool is known as:
(A) Query grid (B) Design grid (C) Query form (D) View form
138. How many query views are available in MS-Access?
(A) 2 (B) 3 (C) 4 (D) 5
139. Which wildcard replaces one character only?
(A) * (B) ? (C) : (D) !

CH # 7 MICROSOFT ACCESS FORMS AND REPORTS

140. ___________auto form displays one record at a time.


(A) Columnar (B) Tabular (C) Datasheet (D) None
141. The forms are designed to:
(A) Data capturing (B) Data Manipulation (C) Managing output result (D) All of these
142. How many form layouts are available in MS-Access?
(A) 2 (B) 3 (C) 4 (D) 5
143. Forms and is known as:
(A) Properties (B) Methods (C) Events (D) Objects
144. Which form property will put text in the title bar of the form?
(A) Title (B) Caption (C) Border text (D) Header
145. A form is an object of:
(A) Table (B) Database (C) Query (D) Report
146. Which of the following is the building block of the GUI?
(A) Form (B) Text boxes (C) Methods (D) Command Buttons
147. A form that contains a sub form is called:
(A) Form (B) Main Form (C) Report (D) Child Form
148. A form within another form is called:
(A) sub form (B) main form (C) multi form (D) form
149. A sub form can be created by using:
(A) The form wizard (B) Drag and drop method (C) Sub form wizard (D) All of these
150. A report may be based on:
(A) Table (B) Relationship (C) Form (D) Attributes

151. How many reports layout are?


(A) 2 (B) 3 (C) 4 (D) 5
152. Which of the following is used to retrieve data from database and represent it to the user in a
formatted way?
(A) Form (B) Query (C) Table (D) Report
153. 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

CH # 8 GETTING STARTED WITH C

154. C-Language was developed in:


(A) 1962. (B) 1969 (C) 1970 (D) 1972
155. The extension of C source program is:
(A) .h (B).C (C) .obj (D) .exe
156.The process of converting source code into object code is known as:
(A) Compiling (B) Executing (C) Linking (D) Saving
157. C statement ends with:
(A) Period (B) Comma C) Colon (D) Semi colon
158. C-Language programs are divided into units called:
(A) Section (B) Functions (C) Syntax (D) Debug
159 .exe file is produced by the:
(A) linker (B) loader. (C) compiler (D) interpreter
160.The statements written by programmer are called:
(A) Source Code (B) Object Code (C) Syntax (D) Debugging
161. Which of the following key is used to save a file?
(A) F2 (B) F3 (C) F5 (D) F9
162. Which of the following is used to denote preprocessor directives?
(A) % (B) $ (C)# (D) @
163. Header file in C contains:
(A) Compiler Commands (B) Library Functions (C) Header (D) Operators
164. Which header file contains information about standard input/output functions?
(A) stdio.h (B) conio.h (C) string.h (D) math.h
165. The name of header file is written between:
(A) [ ] (B) ( ) (C) < > (D) { >
166. Void occupies how many bytes in memory:
(A) Zero (B) One (C) Two (D) Four
167. A program syntax error is detected by:
(A) Linker (B) Compiler (C) Loader (D) Debugger
168. The lowest level of programming language is:
(A) Java (B) Assembly Language (C) Pascal (D) C++
169. Which of the following is not a low-level language?
(A) BASIC (B) Machine (C) Assembly (D) None of these
170. Which of the following language requires no translator to execute the program?
(A) C (B) C++ C) Machine Language (D) Assembly Language
171. An IDE consists of:
(A) Text editor (B) Compiler (C) Debugger (D) All of these
172. B was developed in the year:
(A) 1969-70 (B) 1965-75 (C) 1972-88 20. (D) 1989-1994
173. Which of the following key is used to load a program in memory to run/or t execute?
(A) Alt+F9 (B) Ctrl+F9 (C) Ctrl+S (D) Alt+F5
174. Void occupies how many bytes in memory?
(A) Zero (B) One (C) Two (D) Four
175. Which of the following is used to denote preprocessor directives?
(A) % (B) $ (C)# (D) @
176. Preprocessor directives are commands for:
(A) Microprocessor (B) Language processor (C) C preprocessor (D) Loader
177. Header file in C contains:
(A) Compiler Commands (B) Library Functions (C) Header (D) Operators
178. Which header file contains information about standard input/output functions?
(A) stdio.h (B) conio.h (C) string.h (D) math.h
179. The extention of header file is:
(A) .C (B) .txt (C) .h (D .f
180. A program syntax error is detected by:
(A) Linker (B Compiler (C) Loader (D) Debugger
181. The process of identifying and removing errors in the program is called;
(A) Debugging (B) Processing (C) Executing (D) Linking
182. Which error occur when the program directs the computer to perform an illegal operation?
(A)Runtime error (B) Logical error (C) Syntax error (D) Conceptual error
183. Division by zero (e.g., 5/0) is an example of:
(A) Compiler error (B)Run time error (C) Syntax error (D) Logical error
184. Which of the following is not a low-level language?
(A) BASIC (B) Machine (C) Assembly (D) None of these
185. Which of the following language requires no translator to execute the program?
(A) C (B) C++ (C)Machine Language (D) Assembly Language
186. The lowest level of programming language is:
(A) Java (B) Assembly Language (C) Pascal (D) C++
187. In assembly language, long machine language instructions are replaced with English like
words called:
(A) Statements (B) Mnemonics (C) Directives (D) Instructions
188. C is a:
(A) High Level Language (B) Low Level Language (C) Assembly Language (D) Machine
189. The number of bytes an un-signed integer data type consumes is:
(A) 1 (B) 2 (C) 4 (D) 8

CH # 9 ELEMENTS OF C

190. An identifier whose value can be changed during the execution of the program is called:
(A) Token (B) String (C) Constant (D) Variable
191. Variables are created in:
(A) RAM (B) ROM (C) Hard Disk (D) USB
192. Total number of keywords in C is:
(A) 30 (B) 32 (C) 34 (D) 36
193. A memory location with some data that can be changed is called as:
(A) Constant (B) Variable (C) Address (D) Named constant
194. Memory is allocated to a local variable at the time of its.
(A) Declaration (B) Relational operator (C) Conditional operator(D) Arithmetic operator
195. Another name for Keyword is:
(A) Reserved Word (B) Special Word (C) Comments (D) Identifier
196. A variable name cannot begin with:
(A) Underscore (B) Upper case (C) Number (D) Lower case
197. In C, the maximum length of variable name is:
(A) 25 characters (B) 255 characters (C) 31 characters (D) 55 characters
198. Variable and constant name cannot contain a(n):
(A) Letter (B) Underscore (C) Period (D) Number
199. Which is a valid character constant?
(A) A (B) "Hello" (C) '6' (D) =
200. Which of the following is a valid character constant?
(A) a (B) '@' (C) "C" (D) =
201. Which term describes the kind of values that a variable can store?
(A) Data type (B) Variable name (C) Variable type (D) Variable size
202. int is a_________ in C.
(A) Special word (B) Keyword (C) Cut word (D) First word
203. The number of bytes used by int data type in C is:
(A) 8 (B) 6 (C) 4 (D) 2
204. Which is a numeric data type:
(A) Floating point. (B) Integer (C) Both A and B (D) None of these
205. Number of bytes used by long double data type is:
(A) 4 (B) 8 (C) 10 (D) 12
206. The data type which is used to store numeric value with no decimal point?
(A) char (B)int (C) float (D) double
207. Which is numeric data type with decimal point?
(A) float (B) int (C) Char (D) long
208. The number of digits after a decimal point is called:
(A) Significance (B) Range (C) Precision (D) Scope
209. How many bytes the float data type takes in memory?
(A) 2 (B)3 (C)4 (D) 8
210. _______operators are used to make compound condition.
(A) Arithmetic (B) Logical (D) Relational (C) Bitwise
211. How many bytes are occupied by the statement float a;
(A) 1 Byte (B) 4 (C) 8 (D) 16
212. Which of the following is equivalent to (P >= q)?
(A) P<q (B) !(P<q) (C) P>q (D) !P<q
213. Which of the following is a valid character constant?
(A) "b" (B) a (C) 'b' (D) =
214. Which operator has lowest precedence?
(A) ! (B) +H (C) = (D) ==
215. Which data type is the most appropriate for storing a name?
(A) Float (B) Int (C) Char (D) Long
216. The result of C expression 9/4 * 2 will be equal to:
(A) 4.5 (B) 4.0 (C) 5 (D) 4
217. The logical NOT operator denoted by ! is a:
(A) Ternary operator (B) Unary operator (C) Binary operator (D) Bitwise operator
218. The only binary operator in the following is:
(A) ? (B) ++ (C) M (D) +
219. a += b is equivalent to:
(A) b+= a (B) a = + b (C) a= a + b (D) b = b + a
220. The value of C expression 5/9*2 are:
(A) 0.27 (B) 1.11 (C) 0 (D) 2
221. This means to increase a value by one:
(A) Modulus (B) Increment(++) (C) Decrement(--) (D) None of these
222. The Modulus Operator is used for:
(A) Exponent (B) Multiply (C) Division (D). Remainder
223. Find the output of the following expression 10* (24/(5–2))+13:
(A) 80 (B) 90 (C) 93 (D) 96
224. The expression 0% 4 has a value equal to:
(A) 4 (B)1 (C) 2 (D) 0
225. The expression 3% 5 has a value equal to:
(A) 5 (B) 3 (C) 2 (D) 1
226. The expression p - = q is equivalent to:
(A) p=9-p (B) p=q-1 (C) p=p-a (D) q=p-q
227. Relational operators allow you to______ values.
(A) Compare (B) Add (C) Multiply (D) Divide
228. When a relational expression is false, it has the value:
(A) Zero (B) One (C) Less than Zero (D) Two
229. Which of the following is not logical operator?
(A) && (B) || (C) ! (D) +
230. The symbols that perform operations on data are called:
(A) Syntax (B) Operand (C) Operators (D) Operation Code
231. All of the following are logical operators expect:
(A) NOT (B) AND (C) OR (D) =
232. The value of logical operator OR will be 1 if:
(A) A = 0 , B=1 (B) A = 1 , B = 0 (C) A=I , B=1 (D) All of these
233.Logical operators are:
(A) AND (B) OR (C) NOT (D) All
234. The Operators to compare operands and decide if the relation is true or false:
(A) Arithmetic Operators (B) Logical Operators
(C) Relational Operators (D) Syntax Operators
235. A = A+B is equivalent to:
(A) A = A +B (B) A+=B (C) B= +A (D) B+ = A
236. The symbol "=" represents:
(A) Comparison (B) Assignment (C) Equal to (D) Logical
237. Which of the following statement is true for A=25 and B = 35
(A) A+B (B) A>=B (C) A! =B (D) A==B
238. 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
239. The left side of an assignment statement holds:
(A) Variable (B) Constant (C) Expression (D) Digit
240. Which of the following data type offers the highest precision?
(A) float (B) double (C) long double (D)int .
241. Select an operator with the highest precedence?
(A) ! (B) + (C) = (D) ==
242. A type of operator that works with one operand is called:
(A) Binary operator (B) Unary operator (C) Ternary operator (D) Relational operator
243. An expression that uses a relational operator is known as:
(A) Operational (B) Sequential (C) Serial (D) Relational
244. An expression consists of:
(A) Operators (B) Operands (C) Both A&B (D) None

CH # 10 INPUT AND OUTPUT

245. stdio stands for:


(A) Standard Input output (B) Simple input output
(C) String Input output (D) Start Input output
246. Which programming structure executes program statements in order?
(A) Relation (B) Decision (C) Sequence (D) Repetition
247. The function that is used to display output on screen is called:
(A) Scanf (B) Pow (C) Display (D)Printf
248. Printf() is a:
(A) Keyword (B) Built in function (C) Local function (D) User defined function
249. How many variables can be used in one printf function?
(A) One (B) Two (C) Ten (D) Many
250. Format specifier starts with symbol:
(A) % (B) $ (C) # (D) @
251. The format specifier %u is used for:
(A) Integer (B) Unsigned short (C) Unsigned float (D) Unsigned long int
252. The format specifier % f is used for:
(A) Character (B) Integer (C) Double (D) Float
253. The format specifier % c is used for:
(A) A Integers (B) float (C) double (D) character
254. The escape sequence used to more cursor one-character back is:
A \b (B) \t (C) In (D) \r
255. Which of the following format specifier is used for string?
(A) %f (B) %d (C) %c (D) % s

256. What will be the value of x after executing the following code?
for(x=1; x<=7; x++) ;
printf("%d",x);
(A) 5 (B) 7 (C) 8 (D) 1
257. Which of the following things are determined by format specifier?
(A) Data Type (B) Format of the value (C) Field Width (D) All of these
258. Which of the following format specifier is used for integer data type?
(A) %d (B) %c (C) %s (D) % f
259. The & symbol in scanf function indicate variable's:
(A) address (B) value (C) format (D) data type
260. In statement scanf("%c",& km); Km is a (n):
(A) Integer variable (B) Character variable
(C) Float variable (D) String variable
261. Which character signifies the beginning of an escape sequence?
(A) { (B) // (C) * (D)\
262. Which escape sequence moves the cursor at the beginning of current line?
(A) \a (B) \b (C) \n (D) \r
263. Escape sequence \\ is used to print:
(A) New line (B) Backslash (C) Space (D) Tab
264. general form of format specifier for floating point value is:
(A) % m.nf (B) m.n% (C) m%.nf (D) m.n%
265. The escape sequence for carriage return is:
(A) \a (B) \c (C) \r (D) \f
266. The escape sequence for tab is:
(A) ! (B) \b (C) \n (D) \t
267. An ampersand (&) before the name of the variable name, denotes:
(A) Actual value (B) variable name (C) Address (D) Data type
268. getch() stands for:
(A) go character (B) get character (C) give character (D) ALL
269. The format specifier %d is used for:
(A) unsigned short (B) Integer (C) unsigned float (D) unsigned long int
270. The escape sequence for backslash is:
(A) \ (B) \b (C) \\ (D) \t
271. Which escape sequence is used to begin new line?
(A) \a (B) \b (C) \m (D) \n
272. Which of the following is not a valid escape code?
(A) \t B) \v (C) \y (D) \f
273. The function getch() is defined in:
(A) Stdio.h (B) Conio.h (C) String.h (D) Math.h
274. The ASCII code for escape key:
(A) 27 (B) 28 (C) 29 (D) 30
275. the scanf is a --------- in C programming language.
(A) Keyword (B) Library (C) Function (D) None
CH # 11 DECISION CONSTRUCTS

276. Which programming structure executes program statements in order.


(A)Relation (B) Decision (C) Sequence (D) Repetition
277. Which programming structure makes a comparison?
(A)Relation (B) Decision (C) Sequence (D) Repetition
278. Another term for computer making a decision is:
(A)Sequential (B) Selection (C) Repetition (D) Iteration
279. In If-statement, true is represented by:
(A) 0 (B) 1 (C) 2 (D) 3
280. If a relational expression is true, it has a value.
(A) 0 (B) 1 (C) -1 (D) None of these

281. An expression that uses a relational operator is called:


(A) operational (B) sequential (C) serial (D) relational
282. What is the simplest selection structure?
(A) if (B) switch (C) if-else (D) Nested - if
283. In If-statement, false represented by:
(A) 0 (B) 1 (C) 2 (D) 3
284. Which of the given is used for making two-way decision?
(A) if (B) if-else (C) nested if (D) Switch
285. Which keyword is not used in switch statement?
(A) default (B) if (C) case (D) switch
286. Which of the following are valid case statements in a switch?
(A) case l: (B) case x<4 (C) case 'ab': (D) case 1.5;
287. Switch statement is an alternative of:
(A) if (B) if-else (C) Nested - if (D) Nested - if-else
288. The last statement of each case block in switch structure must be:
(A) default (B) if-else (C) break (D) else
289. The case block in switch () structure ends with:
(A) End Select (B) Break (C) End Case (D) Case Else
290. The conditional operator is used as alternate to:
(A) if (B) if-else (C) if-else if (D) switch
291. A type of operator that works with one operand is called:
(A) Binary operator (B) Unary operator (C) Ternary operator (D) Relational
292. Graphical representation of a program is called:
(A) Logic chart (B) Binary chart (C) Flow chart (D) E-R chart
293. Term for conditional operator is:
(A) ternary operator (B) binary (C) byte (D) iteration
294. Conditional operator takes:
(A) One operand (B) Two operand (C) Three operand (D) Four operand
295. Which operator is called ternary operator?
(A) If (B) ++ (C)? (D) ()

CH # 12 LOOP CONSTRUCTS

296. How many types of loop structures are present?


(A) 1 (B)2 (C) 3 (D) 4.
297. This means to increase a value by one:
(A) Modulus (B) Increment (C) Decrement (D) None of these
298. One execution of a loop is known as a(n):
(A) Test (B) Iteration (C) Duration (D) Integer
299. A loop that never ends is called:
(A) Infinite loop (B) Running loop (C) Nested loop (D) Continuous loop
300. A loop counter can be defined as:
(A) The final value of a loop (B) The variable that contains loop iteration
(C) The initial value of a loop (D) The stop value of a loop
301. One iteration of loop is known as:
(A) Iteration (B) Duration (C) Cycle (D) Repetition
302. Which of the following loop is called counter loop?
(A) For (B) While (C) Do-while (D) None of these
303. In while loop, the loop control variable is always initialized?
(A) outside the program (B) inside the loop body
(C) after loop ends (D) outside the body of loop
304. While loop is also called:
(A) Conditional loop (B) Do-while loop (C) For loop (D) All of these
305. loop structure always executes at least once.
(A) Nested (B) FOR (C) While (D) Do while

306. In which loop the condition comes after the body of the loop?
(A) For () (B) While() (C) Do - while (D) Nested for
307. Which of the following loop is available in C?
(A) While - wend (B) For - next (C) Sequence (D) Do - while
308. Semicolon is placed at the end of condition in:
(A) Switch (B) For loop (C) While loop (D) Do - while loop
309. This statement causes a loop to terminate early:
(A) Exit (B) Terminate (C) Break (D) All of these
310. The Do - while loop structure always ends with:
(A) Comma (B) Semi colon (C) Colon (D) Brace
311. Which statement is used to move the control to the start of the loop body?
(A) Continue (B) Break (C) Switch (D) Next
312. _________iterates at least once even if condition is false.
(A) While loop (B) Do - while loop (C) For loop (D) All of these
313. In for statement, the expression is executed only once:
(A) Validation (B) Initialization (C) Test (D) Condition
314. Which is an example of multiple branches from single expression?
(A) If statement (B) Switch statement (C) While loop (D) For loop
315. What is the final value of x after executing the code for (int x = 0; x<10; x++)?
(A) 8 (B) 09 (C) 10 (D) 11
316. 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
317. This statement may be used to stop a loop current iteration and begin next one:
(A) Increment (B) Decrement (C) Break (D) Continue
318. Which one is the loop structure?
(A) if (B) if-else (C) switch (D) for
319. This is a good choice when you know how many times you want to loop to iterate in advance
of entering the loop:
(A) While (B) For (C) Do-While (D) Nested
320. A loop within a loop is called:
(A) Complex (B) Nested (C) Infinite (D) For

CH # 13 FUNCTIONS IN C

321. The printf is a:


(A) Built in function (B) user defined function (C) Keyword (D) None of these
322. Another name of built in function is:
(A) Library function (B) user defined function (C) Arithmetic function(D) All of these
323. Formal arguments are also called:
(A) Actual arguments (B) Dummy arguments
(C) Original arguments (D) Referenced arguments
324. A type of function that is written by the programmer is known as:
(A) User-defined (B) subprograms
(C) subroutines (D) built-in function
325. A built-in function.
(A) cannot be redefined (B) can be redefined
(C) cannot return value (D) should be redefined
326. In C Language, first line of the function definition is known as:
(A) function header (B) function body (C) arguments (D) parameters
327. Formal declaration is also known as:
(A) definition (B) Header (C) prototype (D) parameters
328. Functions that are the part of the language are called:
(A) main functions (B) Built in Function
(C) user defined (D) All of these
329. The first line of user defined function is:
(A) Argument (B) Header (C) Prototype (D) Calling
330. Multiple arguments passed to a function are separated by:
(A) Period (B) Colon (C) Comma (D) Semicolon
331. the keyword used to specify the value returned by a function is:
(A) return (B) break (C) continue (D) static
332. A function that does not return any thing has return type:
(A) Nothing (B) float (C) Void (D) Null
333. A function can return __________ value.
(A) 1 (B) 2 (C) 3 (D) 4
334. The name of actual and formal parameters:
(A) Must be same (B) May or may not be same
(C) Must be different (D) Must be in lower case
335. Which provides information about the function to the compiler:
(A) function header (B) function body
(C) function call (D) function prototype
336. Function prototype for built-in functions are specified in:
(A) Source File (B) Header File (C) Object File (D) Image File
337. The statement that activates a function is known as:
(A) Function design (B) Function definition (C) Function call (D) Function
Output
338. Local variables are also called:
(A) Automatic variable (B) Static variable (C) Register variable (D) Run time
variable
339. Memory allocated to a local variable at the time of its:
(A) Declaration (B) Destruction (C) Definition (D) First reference
340. The scope of variable refers to its:
(A) Length (B) name (C) Accessibility (D) Data type
341. Global variables are created in:
(A) RAM (B) ROM (C) Hard disk (D) Cache
342. The parameters in function declaration:
(A) actual parameters (B) formal parameters (C) returned parameters(D) call parameters
343. The process of sending argument to a function is called:
(A) sending (B) filtering (C) delivering (D) passing
344. Formal arguments are also called:
(A) actual arguments (B) Dummy arguments
(C) Original arguments (D) Referenced Arguments
345. What is the variable that is used by function to receive an argument:
(A) Expression (B) Parameter (C) Constant (D) Function

You might also like