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
Computer Science Ics Part 2 Chapter 9 Online Test MCQs With Answers
Question # 1
Which is a numeric data type ?
Choose an answer
float
int
Both a and b
char
Previous
Skip
Next
Question # 2
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 # 3
a+=b is equivalent to
Choose an answer
a+=b
a=+b
a=a+b
b=b+a
Previous
Skip
Next
Question # 4
Which of the following operators has lowest precedence
Choose an answer
!
+
=
=
Previous
Skip
Next
Question # 5
The logical not operator denoted by is
Choose an answer
Ternary operator
Unary operator
a=a+b
b=b+a
Previous
Skip
Next
Question # 6
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 # 7
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 # 8
DBA Stands for
Choose an answer
Database application
Database accumulator
Database administer
Database administration
Previous
Skip
Next
Question # 9
An integer variable can store the value:
Choose an answer
-1.1
"123"
32898
5.5
Previous
Skip
Next
Question # 10
Which is NOT a valid statement to initialize a variable?
Choose an answer
int n=100;
long,population=15000;
char n []="hello World";
cons int N=100;
Previous
Skip
Next
Question # 11
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Question # 12
Which of the following data type is used to store string value:
Choose an answer
char
float
string
long
Previous
Skip
Next
Question # 13
Which is a valid statement for initializing of a variable?
Choose an answer
int n=100;
int x=50, y=75;
char grade='a'
All of these
Previous
Skip
Next
Question # 14
Which of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 15
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 # 16
Which of the following is used to separate each variable while declaring more than one variable on the same line?
Choose an answer
Commas
Colons
Pipes
Semicolons
Previous
Skip
Next
Back