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
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 # 2
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 # 3
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 # 4
Which of the following data type offers the highest precisions
Choose an answer
Float
Long int
Long double
Unsigned long unit
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
Which is a numeric data type ?
Choose an answer
float
int
Both a and b
char
Previous
Skip
Next
Question # 7
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 # 8
The logical not operator denoted by is
Choose an answer
Ternary operator
Unary operator
a=a+b
b=b+a
Previous
Skip
Next
Question # 9
The number of bytes used by long int data type in C is:
Choose an answer
2
4
12
16
Previous
Skip
Next
Question # 10
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 # 11
Another way to write the value 3452211903 is:
Choose an answer
3.452211903e09
3.45221193e-09
3.452211903
×09
3452211903e09
Previous
Skip
Next
Question # 12
Which term describes the kind of values that a variable can store?
Choose an answer
Varaible name
Datatype
Varaibletype
Varaiblesize
Previous
Skip
Next
Question # 13
The symbol '=' represents
Choose an answer
Comparison operator
Assignment operator
Equal to operator
None of these
Previous
Skip
Next
Question # 14
Which of the following is a valid character constant?
Choose an answer
a
"Hello"
'6'
=
Previous
Skip
Next
Question # 15
The number of bytes used by float data type in C is:
Choose an answer
2
4
121
16
Previous
Skip
Next
Question # 16
A memory location with some data can be changed is celled:
Choose an answer
Constant
Variable
Named constant
Address
Previous
Skip
Next
Back