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 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 # 2
Another way to write the value 3452211903 is:
Choose an answer
3.452211903e09
3.45221193e-09
3.452211903
×09
3452211903e09
Previous
Skip
Next
Question # 3
The number of bytes used by float data type in C is:
Choose an answer
2
4
121
16
Previous
Skip
Next
Question # 4
A memory location with some data can be changed is celled:
Choose an answer
Constant
Variable
Named constant
Address
Previous
Skip
Next
Question # 5
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 # 6
Which of the following data type is used to store string value:
Choose an answer
char
float
string
long
Previous
Skip
Next
Question # 7
The number of bytes used by long int data type in C is:
Choose an answer
2
4
12
16
Previous
Skip
Next
Question # 8
Which is NOT a rule for naming variables?
Choose an answer
Use a descriptive name for the value
Start the name of variable with a letter
Use nothing but letters, digits, or the underscore character
All the above
Previous
Skip
Next
Question # 9
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 # 10
Which is a numeric data type ?
Choose an answer
float
int
Both a and b
char
Previous
Skip
Next
Question # 11
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 # 12
Which of the following is the valid character constant
Choose an answer
A
"B"
"6"
=
Previous
Skip
Next
Question # 13
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 # 14
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 # 15
Variable are created in:
Choose an answer
RAM
ROM
Hard Disk
USB
Previous
Skip
Next
Back