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 is NOT a valid identifier?
Choose an answer
return
myInt
myInteger
total3
Previous
Skip
Next
Question # 2
What happens when the result of a calculation exceeds the capacity of data type?
Choose an answer
System error
Logic error
Syntax error
Over flow
Previous
Skip
Next
Question # 3
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 # 4
The data type can handle decimal places is:
Choose an answer
Long
float
char
string
Previous
Skip
Next
Question # 5
Variable and constant names can not contain a(n):
Choose an answer
Number
Underscore
Upper case letter
Lower case letter
Previous
Skip
Next
Question # 6
Which of the following statements is NOT legal?
Choose an answer
char ch='b';;
char ch='0'
char ch=65;
char ch="cc"
Previous
Skip
Next
Question # 7
Which is a valid statement for declaring a variable?
Choose an answer
int marks;
int a,b,c;
Double salary;
All
Previous
Skip
Next
Question # 8
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 # 9
An attribute that uniquely identify each row in a relation is called
Choose an answer
Column
Foreign
Primary key
Duplicate key
Previous
Skip
Next
Question # 10
A process of assigning initial value to a variable at the time of declaration is called:
Choose an answer
Assigning
Initializing
Naming
setting
Previous
Skip
Next
Question # 11
the integer, long and short data types are known as:
Choose an answer
Integer data types
Non-integral data types
float data types
Non-numeric data types
Previous
Skip
Next
Question # 12
The exponential notation consists of:
Choose an answer
Mantissa
Exponent
Range
A and B
Previous
Skip
Next
Question # 13
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 # 14
The number of bytes used by float data type in C is:
Choose an answer
2
4
121
16
Previous
Skip
Next
Question # 15
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 # 16
The number of bytes used by int data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Back