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
Format specifier starts with the symbol
Choose an answer
#
%
*
all
Previous
Skip
Next
Question # 2
A computer program written in a high-level language is called
Choose an answer
object code
re locateable code
source code
none of them
Previous
Skip
Next
Question # 3
Which of the following key is used to save a file?
Choose an answer
F2
F3
F5
F9
Previous
Skip
Next
Question # 4
Which of the following format specifiers is used for float data type?
Choose an answer
%s
%c
%d
%f
Previous
Skip
Next
Question # 5
The format specifier for output are:
Choose an answer
%d for int and %f for float
%c for char
%s for string
All
Previous
Skip
Next
Question # 6
-------------------- defines the nature of the relationship
Choose an answer
cardinality
entities
modality
none of these
Previous
Skip
Next
Question # 7
A record in a database is the information refers to:
Choose an answer
Person
Product
Event
All
Previous
Skip
Next
Question # 8
Every field in a table has:
Choose an answer
Field name and data type
field name and a field number
Field number and a data type
Field name, field number, and data type
Previous
Skip
Next
Question # 9
How many primary keys can a table have
Choose an answer
One
At least one but not more than two
Between 1-5
No limit
Previous
Skip
Next
Question # 10
The entity integrity rule states that:
Choose an answer
No primary key attribute can be null
Each entity must have a primary key
Primary key must have only one attribute
None
Previous
Skip
Next
Question # 11
One execution of a loop is known as a(n):
Choose an answer
Cycle
Duration
Iteration
Test
Previous
Skip
Next
Question # 12
Conditional operator is an alternative of:
Choose an answer
if
if-else
Nested if
All
Previous
Skip
Next
Question # 13
Assembly language is usually used for ______ writing
Choose an answer
System software
Application program
Firmware
A and C
Previous
Skip
Next
Question # 14
Which data type can be used to define a field that consists on only numbers to be used in calculations?
Choose an answer
Text
Memo
Number
Date/Time
Previous
Skip
Next
Question # 15
The loop which never ends is called:
Choose an answer
Infinite loop
Running loop
Continuous loop
Nested loop
Previous
Skip
Next
Question # 16
SQL stands for:
Choose an answer
Sort Query Language
Self Query language
Seek Query language
Structured Query Language
Previous
Skip
Next
Question # 17
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Question # 18
A virtual table that is constructed form other tables is called:
Choose an answer
Table
View
Relation
Tuple
Previous
Skip
Next
Back