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
In relational data base, a table is also called:
Choose an answer
Tuple
Relation
File
Schema
Previous
Skip
Next
Question # 2
The extension of the header file is:
Choose an answer
.CPP
txt
.c
.h
Previous
Skip
Next
Question # 3
In relational database, table is also called:
Choose an answer
Table
Relation
File
Schema
Previous
Skip
Next
Question # 4
The name cannot exceed characters in length
Choose an answer
64
50
56
70
Previous
Skip
Next
Question # 5
Conditional operator is an alternative of:
Choose an answer
if
if-else
Nested if
All
Previous
Skip
Next
Question # 6
An attribute is also known as a:
Choose an answer
Table
Row
Relation
Field
Previous
Skip
Next
Question # 7
Insert command is used to insert:
Choose an answer
New table
New record
View
Dependences
Previous
Skip
Next
Question # 8
Which of the following is used for making two way decision:
Choose an answer
if-else
If
Nested if
Switch
Previous
Skip
Next
Question # 9
Any array script should be:
Choose an answer
Int
Float
Double
Array
Previous
Skip
Next
Question # 10
An index can be used to :
Choose an answer
Improve the performance of the database
Document the structure of the database
Reduce data dependency for application programs
All
Previous
Skip
Next
Question # 11
A category of data or information that describes an entity is called
Choose an answer
Attribute
Data item
Record
Tuple
Previous
Skip
Next
Question # 12
How many times the instruction in the body of following loop will execute for (x = 1; x < 5; x ++)
Choose an answer
3
4
5
6
Previous
Skip
Next
Question # 13
C was developed in the year:
Choose an answer
1970
1972
1976
1995
Previous
Skip
Next
Question # 14
The data type can handle decimal places is:
Choose an answer
Long
float
char
string
Previous
Skip
Next
Question # 15
When is for loop more appropriate then while loop?
Choose an answer
The termination condition is known in advance
The number of iterations is not known in advance
The loop should be executed only once
The loop should be executed at least once
Previous
Skip
Next
Question # 16
The number of bytes used by char data type in C is:
Choose an answer
2
1
121
16
Previous
Skip
Next
Question # 17
This loop is a good choice when you know how many times you want the loop to iterate in advance of entering the loop?
Choose an answer
While
Do-while
For
Nested
Previous
Skip
Next
Question # 18
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Back