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 library file include in header section of program, when using getch() function ?
Choose an answer
conio.h
stdio.h
math.h
string.h
Previous
Skip
Next
Question # 2
getch() is used to take ________ as input form user:
Choose an answer
int
char
float
all of them
Previous
Skip
Next
Question # 3
Which of the following is called escape character which is associated with each escape sequence to notify about escape ?
Choose an answer
back slash (\)
/
?
:
Previous
Skip
Next
Question # 4
Format specifier is always preceded by:
Choose an answer
%
=
^
$
Previous
Skip
Next
Question # 5
Which operator assigns the result of expression on right side to the variable on left side ?
Choose an answer
==
=
*
( )
Previous
Skip
Next
Question # 6
Which operator is used to subtract the value on right side from the value on left side ?
Choose an answer
+
-
*
%
Previous
Skip
Next
Question # 7
The operator % is used to calculate __________:
Choose an answer
percentage
remainder
factorial
square
Previous
Skip
Next
Question # 8
Which operator accepts Boolean expression and returns true if at least one of the operands is true ?
Choose an answer
Previous
Skip
Next
Question # 9
Which symbol is used to represent the NOT operator ?
Choose an answer
Previous
Skip
Next
Question # 10
Which operator is used to divide the value on left side by the value on right side ?
Choose an answer
\
/
+
-
Previous
Skip
Next
Question # 11
Which operator is used to assign a value to a variable ?
Choose an answer
Assignmentoperator
arithmeticoperator
logicaloperator
all of these
Previous
Skip
Next
Question # 12
Which operator returns remainder ?
Choose an answer
modulusoperators
binaryoperators
ternaryoperators
all of these
Previous
Skip
Next
Back