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
getch() is used to take ________ as input form user:
Choose an answer
int
char
float
all of them
Previous
Skip
Next
Question # 2
Which operator checks whether right and left operands are equal or not ?
Choose an answer
==
=
?
+-
Previous
Skip
Next
Question # 3
Which operator assigns the result of expression on right side to the variable on left side ?
Choose an answer
==
=
*
( )
Previous
Skip
Next
Question # 4
How many types of logical operators ?
Choose an answer
3
1
4
2
Previous
Skip
Next
Question # 5
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 # 6
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 # 7
scanf is a __________ in C programming language:
Choose an answer
keyboard
library
function
none of them
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 AND operator ?
Choose an answer
&&
||
+
!
Previous
Skip
Next
Question # 10
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 # 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 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
Back