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 format specifier is used for integer data type ?
Choose an answer
%d
%i
both a and b
none of these
Previous
Skip
Next
Question # 2
Which format specifier is used for character data type ?
Choose an answer
%d
%i
%c
%f
Previous
Skip
Next
Question # 3
getch() is used to take ________ as input form user:
Choose an answer
int
char
float
all of them
Previous
Skip
Next
Question # 4
Which is identifier for compiler to identity the end of a line ?
Choose an answer
:
:
"
'
Previous
Skip
Next
Question # 5
Which operator is used to multiply two values ?
Choose an answer
+
*
%
!
Previous
Skip
Next
Question # 6
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 # 7
All of arithmetic operators, relational operators and logical operators && and || are:
Choose an answer
unary operators
binaryoperators
ternaryoperators
all of these
Previous
Skip
Next
Question # 8
Which of the following is not a type of operator ?
Choose an answer
arithmetic operator
checkoperator
relationaloperator
logicaloperator
Previous
Skip
Next
Question # 9
Which escape sequence specifies the I/O function of moving to the next tab stop horizontally ?
Choose an answer
\c
\t
\n
\r
Previous
Skip
Next
Question # 10
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
Back