More Classes
5th Class
6th Class
7th Class
8th Class
9th Class
10th Class
11th Class
12th Class
NAT I
NAT II
CSS
IQ
General Knowledge
MDCAT
ECAT
GAT General
GAT Subject
Other Links
Go to Home
Online Tests
ICS Part 2 Computer Science Online Test MCQs With Answers
Question # 1
A row of a relation is called:
Choose an answer
Attribute
Entity
Tuple
a and c
Previous
Skip
Next
Question # 2
Which is true about a variable?
Choose an answer
The name and data value can both change
The name can change, but the data value cannot
The name cannot change, but the data value can
The name and the data value both cannot changed
Previous
Skip
Next
Question # 3
Which of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 4
Which is the correct sequence of steps for creating and executing C program?
Choose an answer
Editing
→ saving
→ compiling
→ linking
→ Executing
Compiling
→
Editing
→ saving
→ Executing
→ linking
Editing
→ Executing
→ Compiling
→ Linking
Linking
→
Executing
→ saving
→ Editing
→ compiling
Previous
Skip
Next
Question # 5
The keyword used to come out of the body of loop is
Choose an answer
Exit
Continue
Break
Ebd
Previous
Skip
Next
Question # 6
Field properties are shown in :
Choose an answer
Design view
Datasheet view
A and B
None
Previous
Skip
Next
Question # 7
A constraint that no primary key should contain nulls is known as:
Choose an answer
Normalization
Dependence
Entity integrity
SQL query
Previous
Skip
Next
Question # 8
Which of the following are properties of relations?
Choose an answer
Each attribute has a unique name
No two rows in a relation are identical
There are no multivalued attributes in a relation
All of the above
Previous
Skip
Next
Question # 9
Format specifier starts with the symbol
Choose an answer
#
%
*
all
Previous
Skip
Next
Question # 10
The type of files from usage point of view include:
Choose an answer
Master file
Transaction file
Backup file
All
Previous
Skip
Next
Question # 11
Which one displays the result of a query?
Choose an answer
File
Field
Access
Reports
Previous
Skip
Next
Question # 12
The operators to compare operands and decide if the relation is true or false are:
Choose an answer
Arithmetic operators
Logical operators
Syntax operators
Relational operators
Previous
Skip
Next
Question # 13
Which object is used to retrieve data from database and present in formatted way?
Choose an answer
Report
Form
Table
Query
Previous
Skip
Next
Question # 14
When does the code block following while (x<100) execute?
Choose an answer
When x is less then one hundred
When x is greater then one hundred
When x is equal to one hundred
None
Previous
Skip
Next
Question # 15
How many times is the test expression of a switch statement evaluated?
Choose an answer
0
1
2
Once for each case
Previous
Skip
Next
Question # 16
A rule that states each foreign key value must match a primary key value in the other relation is called:
Choose an answer
Referential integrity constraints
Key match rule
Entity key group rule
Foreign/ primary match rule
Previous
Skip
Next
Question # 17
Which of the following is NOT included in the definition of an entity?
Choose an answer
Person
Object
Concept
Action
Previous
Skip
Next
Question # 18
Who developed C?
Choose an answer
Von-Meumann
Al-Khuwarizmi
Charles Babbage
Dennis Ritchie
Previous
Skip
Next
Back