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
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 # 2
Which of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 3
The symbol '=' represents
Choose an answer
Comparison operator
Assignment operator
Equal to operator
None of these
Previous
Skip
Next
Question # 4
Which of the following operators has lowest precedence
Choose an answer
!
+
=
=
Previous
Skip
Next
Question # 5
Which of the following data types is most appropriate for storing a name?
Choose an answer
float
int
char
long
Previous
Skip
Next
Question # 6
Another way to write the value 3452211903 is:
Choose an answer
3.452211903e09
3.45221193e-09
3.452211903
×09
3452211903e09
Previous
Skip
Next
Question # 7
Variable are created in:
Choose an answer
RAM
ROM
Hard Disk
USB
Previous
Skip
Next
Question # 8
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
Question # 9
The logical not operator denoted by is
Choose an answer
Ternary operator
Unary operator
a=a+b
b=b+a
Previous
Skip
Next
Question # 10
Which of the following is NOT a valid identifier?
Choose an answer
return
myInt
myInteger
total3
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
DBA Stands for
Choose an answer
Database application
Database accumulator
Database administer
Database administration
Previous
Skip
Next
Question # 13
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 # 14
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 # 15
Which of the following data type offers the highest precisions
Choose an answer
Float
Long int
Long double
Unsigned long unit
Previous
Skip
Next
Back