wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

operators in java

Total questions: 13

Worksheet time: 8mins

Name
Class
Date
1.

Which are the types of operators seen? Select as many you think

a)

bitwise operator

b)

subtraction operator

c)

equality operator

d)

arithmetic operator

2.

the values on which operations are performed are called operator. true or false?

a)

true

b)

false

3.

what is modulo operation used for ?

a)

performs division

b)

performs division and gives no remainder

c)

performs division and gives remainder

d)

does not perform division

4.

arithmetic operators return a value. True or false?

a)

true

b)

false

5.

select as many unary arithmetic operators as you see

a)

==

b)

--

c)

||

d)

!

6.

prefix= use and change

a)

true

b)

false

7.

a=11,b=22

solve= a +b + a++ + b++ + ++a + ++b

a)

103

b)

164

c)

87

d)

94

8.

binary arithmetic operators require two values

a)

true

b)

false

9.

which description of these relational operators are incorrect?

a)

==(equal to)

b)

<(less than)

c)

>=(greater than)

d)

!=(less than equal to)

10.

conditional operators does not return a value

a)

true

b)

false

11.

which data types work on bitwise operators?

a)

byte

b)

double

c)

char

d)

int

12.

Concatenation(+)operator is used for joining two strings

a)

true

b)

false

13.

which type of operator it is? i + =5

a)

addition assignment operator

b)

conditional operator

c)

arithmetic operator

d)

equality operator