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
Computer Science 10th Class English Medium Chapter 2 Online Test 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
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 # 3
Which operators are used to perform arithmetic operations on data ?
Choose an answer
assignmentoperator
arithmeticoperator
logicaloperator
relational operators
Previous
Skip
Next
Question # 4
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 # 5
Which operator requires three operands respectively to perform the operation ?
Choose an answer
unary
binary
ternary
all of these
Previous
Skip
Next
Question # 6
Which operators perform operation on Boolean expressions and produce a Boolean expressions as a result ?
Choose an answer
logical
assignment
arithmetic
relation
Previous
Skip
Next
Question # 7
getch() is used to take ________ as input form user:
Choose an answer
int
char
float
all of them
Previous
Skip
Next
Question # 8
Which symbol is used to represent the OR operator ?
Choose an answer
Previous
Skip
Next
Question # 9
Which of the following is used as an assignmentoperator in C language ?
Choose an answer
=
==
+
?
Previous
Skip
Next
Question # 10
Which operator checks whether right and left operands are equal or not ?
Choose an answer
==
=
?
+-
Previous
Skip
Next
Question # 11
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 # 12
Which symbol is used to represent the AND operator ?
Choose an answer
&&
||
+
!
Previous
Skip
Next
Question # 13
Which of the following is escape sequence ?
Choose an answer
\n
\t
\a
all of these
Previous
Skip
Next
Back