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 Chapter 2 Online Test MCQs With Answers
Question # 1
The data or information that describes an entity is called:
Choose an answer
Attribute
Data item
Record
Tuple
Previous
Skip
Next
Question # 2
The number of characters in fixed-length field is:
Choose an answer
Constant
Variable
10
100
Previous
Skip
Next
Question # 3
An attribute is also known as a:
Choose an answer
Table
Row
Relation
Field
Previous
Skip
Next
Question # 4
A table is a two-dimensional structure that consists of:
Choose an answer
x and y co-ordinates
Matrix elements
Rows and columns
Intersection of data
Previous
Skip
Next
Question # 5
Which is a loop statement?
Choose an answer
If
If-else
Switch
None of these
Previous
Skip
Next
Question # 6
Which is related to modality?
Choose an answer
Optional
Mandatory
Unidirectional
Both A & B
Previous
Skip
Next
Question # 7
Which is not a logical operator?
Choose an answer
||
!
!=
&&
Previous
Skip
Next
Question # 8
Which loop statement executes the body of loop at least once?
Choose an answer
do-white
While
For
None of these
Previous
Skip
Next
Question # 9
A table most has
Choose an answer
primary key
secondary key
composite key
sort key
Previous
Skip
Next
Question # 10
The functions that are defined by programmer are called:
Choose an answer
User-defined
Subprograms
Subroutines
Built-in functions
Previous
Skip
Next
Question # 11
Which type of variable can store numbers data ?
Choose an answer
int
float
double
all
Previous
Skip
Next
Question # 12
Which of the following is not a valid variable name ?
Choose an answer
Roll No
Roll No
Roll-No
Roll #
Previous
Skip
Next
Question # 13
A table should have :
Choose an answer
Primary key
Secondary key
Composite key
Sort key
Previous
Skip
Next
Question # 14
Int type variable use -------------------- bytes in memory
Choose an answer
2
4
6
8
Previous
Skip
Next
Question # 15
The last statement of each case in switch must be a:
Choose an answer
Default statement
If-else statement
Break statement
Else statement
Previous
Skip
Next
Question # 16
A row of relation is called
Choose an answer
attribute
entity
tuple
both a & c
Previous
Skip
Next
Question # 17
A two-dimensional table of data is called a
Choose an answer
group
set
declaration
relation
Previous
Skip
Next
Question # 18
A row of a relation is called:
Choose an answer
Attribute
Entity
Tuple
a and c
Previous
Skip
Next
Question # 19
Which escape sequence can be used to begin a new line in C-language?
Choose an answer
\a
\b
\n
\n
Previous
Skip
Next
Question # 20
The operator that needs one operand is called
Choose an answer
unary
binary
ternary
all
Previous
Skip
Next
Question # 21
Which of the following is NOT a characteristic of relation?
Choose an answer
Each row is unique
The order of columns is significant
The order of rows is insignificant
Columns are all elemental or atomic
Previous
Skip
Next
Question # 22
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
Back