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 9 Online Test MCQs With Answers
Question # 1
Which of the following data types is most appropriate for storing a name?
Choose an answer
float
int
char
long
Previous
Skip
Next
Question # 2
Relational operators are used to
Choose an answer
Establish a relationship among variables
Compare two values
Construct compound condition
Performs arithmetic operators
Previous
Skip
Next
Question # 3
A category of data or information that describes an entity is called
Choose an answer
Attribute
Data item
Record
Tuple
Previous
Skip
Next
Question # 4
Which of the following statement is correct?
Choose an answer
float num1;num2;
int day,night;
int continue=5.0;
string black='white';
Previous
Skip
Next
Question # 5
The exponential notation consists of:
Choose an answer
Mantissa
Exponent
Range
A and B
Previous
Skip
Next
Question # 6
A candidate key is
Choose an answer
Primary key
The primary key selected to be the key of relation
A group attribute that can be the primary key
All of them
Previous
Skip
Next
Question # 7
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Question # 8
Which of the following is NOT a valid identifier?
Choose an answer
return
myInt
myInteger
total3
Previous
Skip
Next
Question # 9
The data type can handle decimal places is:
Choose an answer
Long
float
char
string
Previous
Skip
Next
Question # 10
The number of bytes used by long int data type in C is:
Choose an answer
2
4
12
16
Previous
Skip
Next
Question # 11
Which of the following is not a good primary key
Choose an answer
Social security number
Order number
Zip code
STD ID number
Previous
Skip
Next
Question # 12
An integer variable can store the value:
Choose an answer
-1.1
"123"
32898
5.5
Previous
Skip
Next
Question # 13
Variable and constant names can not contain a(n):
Choose an answer
Number
Underscore
Upper case letter
Lower case letter
Previous
Skip
Next
Question # 14
Which of the following is a valid character constant?
Choose an answer
a
"Hello"
'6'
=
Previous
Skip
Next
Question # 15
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
Back