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 of the following are valid variable names?
Choose an answer
Long
Integer
Notlongenough
Both B and C
Previous
Skip
Next
Question # 2
The exponential notation consists of:
Choose an answer
Mantissa
Exponent
Range
A and B
Previous
Skip
Next
Question # 3
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 # 4
Which statement is true about data types?
Choose an answer
Data type has no memory requirements
Each data type has different memory requirements
Each data type has same memory requirements
None of the above
Previous
Skip
Next
Question # 5
a+=b is equivalent to
Choose an answer
a+=b
a=+b
a=a+b
b=b+a
Previous
Skip
Next
Question # 6
The number of bytes used by double data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Question # 7
The number of bytes used by int data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Question # 8
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 # 9
a+=b is equivalent to:
Choose an answer
b+=a
a=+b
a=a+b
b=b+a
Previous
Skip
Next
Question # 10
The number of bytes used by long int data type in C is:
Choose an answer
2
4
12
16
Previous
Skip
Next
Question # 11
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 # 12
Variables are created in
Choose an answer
Ram
Rom
Hard disk
Cache
Previous
Skip
Next
Question # 13
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 # 14
The number of bytes used by char data type in C is:
Choose an answer
2
1
121
16
Previous
Skip
Next
Question # 15
Which of the following operators has lowest precedence
Choose an answer
!
+
=
=
Previous
Skip
Next
Question # 16
The float, long float and double data types are known as:
Choose an answer
Integer data
character data
Integral data
Real data
Previous
Skip
Next
Back