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
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 # 2
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 # 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
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 # 5
A memory location with some data that cannot be changed is called:
Choose an answer
Constant
Variable
Keyword
Address
Previous
Skip
Next
Question # 6
Which of the following are required to declare a variable?
Choose an answer
keyword
Variable name
Data type
Both b and c
Previous
Skip
Next
Question # 7
Another way to write the value 3452211903 is:
Choose an answer
3.452211903e09
3.45221193e-09
3.452211903
×09
3452211903e09
Previous
Skip
Next
Question # 8
The number of bytes used by double data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Question # 9
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 # 10
An integer variable can store the value:
Choose an answer
-1.1
"123"
32898
5.5
Previous
Skip
Next
Question # 11
The logical not operator denoted by is
Choose an answer
Ternary operator
Unary operator
a=a+b
b=b+a
Previous
Skip
Next
Question # 12
Which of the following statement is correct?
Choose an answer
float num1;num2;
int day,night;
int continue=5.0;
string black='white';
Previous
Skip
Next
Question # 13
Which of the following is a valid character constant?
Choose an answer
a
"Hello"
'6'
=
Previous
Skip
Next
Question # 14
DBA Stands for
Choose an answer
Database application
Database accumulator
Database administer
Database administration
Previous
Skip
Next
Question # 15
The symbol '=' represents
Choose an answer
Comparison operator
Assignment operator
Equal to operator
None of these
Previous
Skip
Next
Question # 16
Which of the following is the valid character constant
Choose an answer
A
"B"
"6"
=
Previous
Skip
Next
Back