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
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 # 2
C is strongly typed language, it means that:
Choose an answer
Every program must be compiled before execution
Every variable must be declared before it is being used
The variable declaration also defines the variable
Sufficient data types are available to manipulate each type of data
Previous
Skip
Next
Question # 3
Another way to write the value 3452211903 is:
Choose an answer
3.452211903e09
3.45221193e-09
3.452211903
×09
3452211903e09
Previous
Skip
Next
Question # 4
Which of the following operators has lowest precedence
Choose an answer
!
+
=
=
Previous
Skip
Next
Question # 5
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
Question # 6
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 # 7
Which of the following is NOT a valid identifier?
Choose an answer
return
myInt
myInteger
total3
Previous
Skip
Next
Question # 8
Which is a numeric data type ?
Choose an answer
float
int
Both a and b
char
Previous
Skip
Next
Question # 9
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 # 10
Which data type is used to store numeric value with no decimal point?
Choose an answer
int
char
float
All
Previous
Skip
Next
Question # 11
A memory location with some data that cannot be changed is called:
Choose an answer
Constant
Variable
Keyword
Address
Previous
Skip
Next
Question # 12
A primary key that consists of more than one attribute is called a
Choose an answer
Foreign key
Composite key
Multi-valued key
Global key
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
Variable are created in:
Choose an answer
RAM
ROM
Hard Disk
USB
Previous
Skip
Next
Question # 15
Which of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 16
DBA Stands for
Choose an answer
Database application
Database accumulator
Database administer
Database administration
Previous
Skip
Next
Back