wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Weekly Contest #1 - TechXNinjas

Total questions: 12

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following programming language does not contain pointers

a)

JAVA

b)

C++

c)

Python

d)

Swift

2.

JAVA does not support ______________ inheritance

a)

multiple

b)

multilevel

c)

hierarchical

d)

simple

3.

Select the odd one out

a)

int

b)

double

c)

float

d)

long

4.

What do we will get by printing 'd':

int d = c = b = a;

a)

10

b)

12

c)

20

d)

22

5.

Which of the following types of conversion is not in proper order?

a)

byte ---> short

b)

char ---> int

c)

double ---> long

d)

int ---> long

6.

The associativity of the assignment operator is always from:

a)

Right to Left

b)

Left to Right

c)

Right to Right

d)

Left to Left

7.

Guess the name of "&&" (choose the most accurate answer)

a)

Logical operator

b)

Logical OR operator

c)

Logical AND operator

d)

AND operator

8.

Select the odd one out w.r.t assignment operator

a)

+=

b)

==

c)

/=

d)

-==

9.

If the initial value of 'a' is 13 then what is the result of a+=17

a)

4

b)

26

c)

30

d)

46

10.

"Friend" keyword is used to access the data present inside the _________ access specifier

a)

private

b)

public

c)

protected

d)

NONE

11.

Which of the following variable names is valid

a)

||a

b)

else

c)

ab$

d)

a#

12.

Type the symbol of "Left shift bitwise operator"

(a)