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 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 # 2
The symbol '=' represents
Choose an answer
Comparison operator
Assignment operator
Equal to operator
None of these
Previous
Skip
Next
Question # 3
A category of data or information that describes an entity is called
Choose an answer
Attribute
Data item
Record
Tuple
Previous
Skip
Next
Question # 4
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 # 5
Which data type is used to store numeric value with no decimal point?
Choose an answer
int
char
float
All
Previous
Skip
Next
Question # 6
An attribute that uniquely identify each row in a relation is called
Choose an answer
Column
Foreign
Primary key
Duplicate key
Previous
Skip
Next
Question # 7
The exponential notation consists of:
Choose an answer
Mantissa
Exponent
Range
A and B
Previous
Skip
Next
Question # 8
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 # 9
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 # 10
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 # 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
Which of the following is the valid character constant
Choose an answer
A
"B"
"6"
=
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
Which of the following operations has lowest precedence?
Choose an answer
!
+
=
==
Previous
Skip
Next
Question # 15
Which of the following data type is used to store string value:
Choose an answer
char
float
string
long
Previous
Skip
Next
Question # 16
The number of bytes used by double data type in C is:
Choose an answer
2
8
12
16
Previous
Skip
Next
Back