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
The data type can handle decimal places is:
Choose an answer
Long
float
char
string
Previous
Skip
Next
Question # 2
Which variable should be used to store the value "I want an A in this exam".
Choose an answer
char
int
float
character
Previous
Skip
Next
Question # 3
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Question # 4
The number of bytes used by char data type in C is:
Choose an answer
2
1
121
16
Previous
Skip
Next
Question # 5
The number of bytes used by double data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Question # 6
Variable and constant names can not contain a(n):
Choose an answer
Number
Underscore
Upper case letter
Lower case letter
Previous
Skip
Next
Question # 7
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 # 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
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
The number of digits after a decimal point is called:
Choose an answer
Significance
Precision
Range
Scope
Previous
Skip
Next
Question # 11
The number of bytes used by float data type in C is:
Choose an answer
2
4
121
16
Previous
Skip
Next
Question # 12
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 # 13
The exponential notation consists of:
Choose an answer
Mantissa
Exponent
Range
A and B
Previous
Skip
Next
Question # 14
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 # 15
Which of the following is NOT a valid identifier?
Choose an answer
return
myInt
myInteger
total3
Previous
Skip
Next
Question # 16
a+=b is equivalent to:
Choose an answer
b+=a
a=+b
a=a+b
b=b+a
Previous
Skip
Next
Back