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 Online Test MCQs With Answers
Question # 1
Which loop statement executes the body of loop at least once?
Choose an answer
do-white
While
For
None of these
Previous
Skip
Next
Question # 2
The machine language instructions are written in ______
Choose an answer
Keyboard
Binary code
C
None of them
Previous
Skip
Next
Question # 3
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 # 4
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 # 5
A collection of raw facts and figures is called:
Choose an answer
Data
Information
Operation
Processing
Previous
Skip
Next
Question # 6
Which of the following key does not hold uniqueness property ?
Choose an answer
candidate key
foreign key
primary key
Secondary key
Previous
Skip
Next
Question # 7
The format specifier %u is used for:
Choose an answer
Integer
Unsigned short
Unsigned float
Unsigned long int
Previous
Skip
Next
Question # 8
Which programming structure makes a comparison?
Choose an answer
Relation
Decision
Sequence
Repetition
Previous
Skip
Next
Question # 9
The function used to show the output on screen is
Choose an answer
Printf()
Scanf()
Sqrt()
Main()
Previous
Skip
Next
Question # 10
When does the code block following while (x<100) execute?
Choose an answer
When x is less then one hundred
When x is greater then one hundred
When x is equal to one hundred
None
Previous
Skip
Next
Question # 11
The conditional part of if statement consists of expression
Choose an answer
arithmetic
logical expression
relational
both b and c
Previous
Skip
Next
Question # 12
getch() stands for:
Choose an answer
Go character
Get character
Give character
All
Previous
Skip
Next
Question # 13
What is the value of "a" after execution the following code segment:
int a=2;
int b=0;
while(b<5)
{ a=a*2;
b=b+1;
}
a=a+1;
Choose an answer
64
65
66
67
Previous
Skip
Next
Question # 14
The operator that needs one operand is called
Choose an answer
unary
binary
ternary
all
Previous
Skip
Next
Question # 15
Two or more attributes with different name but same meaning create a problem:
Choose an answer
Homonyms
Synonyms
Aliases
Alternate attributes
Previous
Skip
Next
Question # 16
break keyword is used in
Choose an answer
If statement
If-use
Else-if
None of the above
Previous
Skip
Next
Question # 17
Which of the following is a decision making statement
Choose an answer
break
getch ( )
if
all
Previous
Skip
Next
Question # 18
Getch stands for:
Choose an answer
Go character
Give character
Get character
All of these
Previous
Skip
Next
Back