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 operators are used to perform arithmetic operations on data ?
Choose an answer
assignmentoperator
arithmeticoperator
logicaloperator
relational operators
Previous
Skip
Next
Question # 2
getch() is used to take ________ as input form user:
Choose an answer
int
char
float
all of them
Previous
Skip
Next
Question # 3
Which is used to display data in specific format ?
Choose an answer
read
data
specifiers
format specifiers
Previous
Skip
Next
Question # 4
scanf is a __________ in C programming language:
Choose an answer
keyboard
library
function
none of them
Previous
Skip
Next
Question # 5
The name, computer suggests that _________ is the most important aspect of computers:
Choose an answer
computation
working
location
math
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
In escape sequence first character is always __________ and the second character varies according to the functionality that we want to achieve:
Choose an answer
back slash (\)
/
?
:
Previous
Skip
Next
Question # 8
Which format specifier is used for character data type ?
Choose an answer
%d
%i
%c
%f
Previous
Skip
Next
Question # 9
Which escape sequence is used to print the output on multiple lines ?
Choose an answer
\c
\t
\n
\r
Previous
Skip
Next
Question # 10
Which is unary operator ?
Choose an answer
Previous
Skip
Next
Question # 11
Which operator is used to assign a value to a variable ?
Choose an answer
Assignmentoperator
arithmeticoperator
logicaloperator
all of these
Previous
Skip
Next
Question # 12
Which function used to read a character from user ?
Choose an answer
printf
getch()
count
string
Previous
Skip
Next
Question # 13
Which of the following is escape sequence ?
Choose an answer
\n
\t
\a
all of these
Previous
Skip
Next
Question # 14
Which operator is used to divide the value on left side by the value on right side ?
Choose an answer
\
/
+
-
Previous
Skip
Next
Question # 15
Which operator checks whether right and left operands are equal or not ?
Choose an answer
==
=
?
+-
Previous
Skip
Next
Question # 16
Which of the following forces printf() to change its normal behavior ?
Choose an answer
escape sequence
escape
sequence
esc
Previous
Skip
Next
Question # 17
Which format specifier is used for float data type ?
Choose an answer
%d
%i
%f
%c
Previous
Skip
Next
Back