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
Escape sequences are used in printf function inside the:
Choose an answer
"and"
'and'
:and:
,and;
Previous
Skip
Next
Question # 2
Which operator has the highest precedence among the following ?
Choose an answer
/
!
>
<
Previous
Skip
Next
Question # 3
Which operator makes it true, if it is false and false if it true ?
Choose an answer
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
What is true about C language ?
Choose an answer
C is not a case sensitive language
keywords can be used as variable names
All logical operators are binary
none of them
Previous
Skip
Next
Question # 6
The operator % is used to calculate __________:
Choose an answer
percentage
remainder
factorial
square
Previous
Skip
Next
Question # 7
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 # 8
Which function is generally used to hold the execution of program because the program does not continue further until the user types a key ?
Choose an answer
read
getch()
input
printf
Previous
Skip
Next
Question # 9
Which operator is used to assign a value to a variable ?
Choose an answer
Assignmentoperator
arithmeticoperator
logicaloperator
all of these
Previous
Skip
Next
Question # 10
Which operator is used to multiply two values ?
Choose an answer
+
*
%
!
Previous
Skip
Next
Question # 11
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 # 12
In C language _______ is used as statement terminator:
Choose an answer
;
:
,
"
Previous
Skip
Next
Back