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
10th Class Computer Science Unit 2 Programming In C English Medium KPK Boards Online Mcqs MCQs With Answers
Question # 1
Which operator is used to multiply two values ?
Choose an answer
+
*
%
!
Previous
Skip
Next
Question # 2
Let the following part of code, what will be the value of variable an after execution:
int a = 4;
float b= 2.2;
a = a * b;
Choose an answer
8.8
8
8.2
8.0
Previous
Skip
Next
Question # 3
How many types of logical operators ?
Choose an answer
3
1
4
2
Previous
Skip
Next
Question # 4
The operator % is used to calculate __________:
Choose an answer
percentage
remainder
factorial
square
Previous
Skip
Next
Question # 5
Escape sequences consists of ________ characters:
Choose an answer
two
three
four
five
Previous
Skip
Next
Question # 6
Which symbol is used to represent the NOT operator ?
Choose an answer
Previous
Skip
Next
Question # 7
Which is unary operator ?
Choose an answer
Previous
Skip
Next
Question # 8
Which function used to read a character from user ?
Choose an answer
printf
getch()
count
string
Previous
Skip
Next
Question # 9
Which operators are used to perform arithmetic operations on data ?
Choose an answer
assignmentoperator
arithmeticoperator
logicaloperator
relational operators
Previous
Skip
Next
Question # 10
Which operator returns remainder ?
Choose an answer
modulusoperators
binaryoperators
ternaryoperators
all of these
Previous
Skip
Next
Question # 11
Which of the following is a valid line of code ?
Choose an answer
int = 20;
grade = 'A';
line = this is a line,
none of these
Previous
Skip
Next
Question # 12
Which operator is used to divide the value on left side by the value on right side ?
Choose an answer
\
/
+
-
Previous
Skip
Next
Back