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
Which of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 2
What is the term for a for a characteristic or attribute of an object that determines how the object looks and behaves?
Choose an answer
Color
Property
Size
Orientation
Previous
Skip
Next
Question # 3
A record is a ------------------- in table
Choose an answer
row
field
table
data
Previous
Skip
Next
Question # 4
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 # 5
The general form of format specifier for floating point value:
Choose an answer
%m.nf
m.n%
m%.nf
m.n%f
Previous
Skip
Next
Question # 6
Which of the following represents a collection of concepts that are used to describe the structure of a database:
Choose an answer
Data warehouse
Data model
Data structure
Data type
Previous
Skip
Next
Question # 7
Every relation should have :
Choose an answer
Primary key
Candidate key
Secondary key
Mutually exclusiveness
Previous
Skip
Next
Question # 8
a + = b is equivalent to:
Choose an answer
b + = a
a = + b
a = a + b
b = b + a
Previous
Skip
Next
Question # 9
The type of files from usage point of view include:
Choose an answer
Master file
Transaction file
Backup file
All
Previous
Skip
Next
Question # 10
What is the value of "a" after the execution of the following code?
int a 25;
for(int c=0; c<4;c++)
a=a-1;
a=1+3;
Choose an answer
23
24
25
20
Previous
Skip
Next
Question # 11
An entity related to itself in an ERD model refers to
Choose an answer
recursive relationship
one-to-many relationship
many to many relationship
on to one relationship
Previous
Skip
Next
Question # 12
Which is a possible value of flag?
Choose an answer
-
+
Space
All of these
Previous
Skip
Next
Question # 13
Which of the following data type offers the highest precisions
Choose an answer
Float
Long int
Long double
Unsigned long unit
Previous
Skip
Next
Question # 14
A two-dimensional table of data is called:
Choose an answer
Group
Set
Module
Relation
Previous
Skip
Next
Question # 15
Which is a numeric data type ?
Choose an answer
float
int
Both a and b
char
Previous
Skip
Next
Question # 16
Which file is used to store information that remains constant for a long time?
Choose an answer
Master file
Transaction file
Backup file
None
Previous
Skip
Next
Question # 17
Which of the following format specifiers is used for integer data type?
Choose an answer
%d
%s
%c
%f
Previous
Skip
Next
Question # 18
The number of characters in fixed-length field is:
Choose an answer
Constant
Variable
10
100
Previous
Skip
Next
Back