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 of the following is not a type of operator ?
Choose an answer
arithmetic operator
checkoperator
relationaloperator
logicaloperator
Previous
Skip
Next
Question # 3
The operator % is used to calculate __________:
Choose an answer
percentage
remainder
factorial
square
Previous
Skip
Next
Question # 4
Which of the following tells about which operations should be performed first ?
Choose an answer
precedence
rule
sequence
random
Previous
Skip
Next
Question # 5
Which of the following is used as an assignmentoperator in C language ?
Choose an answer
=
==
+
?
Previous
Skip
Next
Question # 6
Escape sequences consists of ________ characters:
Choose an answer
two
three
four
five
Previous
Skip
Next
Question # 7
Which is a combination of backslash (\) and a code character to control printing of data on the screen ?
Choose an answer
escape sequence
format specified
character
printing
Previous
Skip
Next
Question # 8
Which is a built-in function in C programming language to show output on screen?
Choose an answer
printf()
scanf()
input
print
Previous
Skip
Next
Question # 9
Which operator makes it true, if it is false and false if it true ?
Choose an answer
Previous
Skip
Next
Question # 10
Which symbol is used to represent the AND operator ?
Choose an answer
&&
||
+
!
Previous
Skip
Next
Question # 11
Which operator is used to multiply two values ?
Choose an answer
+
*
%
!
Previous
Skip
Next
Question # 12
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
Back