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 operator has the highest precedence among the following ?
Choose an answer
/
!
>
<
Previous
Skip
Next
Question # 2
Which format specifier is used for float data type ?
Choose an answer
%d
%i
%f
%c
Previous
Skip
Next
Question # 3
In C language which operator is used to check for equality of two expression ?
Choose an answer
==
=
?
+-
Previous
Skip
Next
Question # 4
Which operator accepts Boolean expression and returns true if at least one of the operands is true ?
Choose an answer
Previous
Skip
Next
Question # 5
Which operator negates or reverses the value of Boolean expression ?
Choose an answer
Previous
Skip
Next
Question # 6
Which operator performs division of left operand by the right operand and returns the remainder value after division ?
Choose an answer
+
%
*
.
Previous
Skip
Next
Question # 7
Which operator makes it true, if it is false and false if it true ?
Choose an answer
Previous
Skip
Next
Question # 8
printf is to used print _________ type of data:
Choose an answer
int
float
char
all of them
Previous
Skip
Next
Question # 9
Which operators are applied over one operand only ?
Choose an answer
unary
binary
ternary
all of these
Previous
Skip
Next
Question # 10
Which operator is used to assign a value to a variable ?
Choose an answer
Assignmentoperator
arithmeticoperator
logicaloperator
all of these
Previous
Skip
Next
Question # 11
Which symbol is used to represent the AND operator ?
Choose an answer
&&
||
+
!
Previous
Skip
Next
Question # 12
Which symbol is used to represent the OR operator ?
Choose an answer
Previous
Skip
Next
Question # 13
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