wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

X-QUIZ 2

Total questions: 11

Worksheet time: 5mins

Name
Class
Date
1.

In Java, when we implement an interface method, it must be declared as:

a)

Private

b)

Public

c)

Protected

d)

Default

2.

How many times will X-Quiz be printed in the above program?

a)

1024

b)

0

c)

11

d)

Error

3.

What is the output of the following python code :


print 9//2

a)

6

b)

Error

c)

3

d)

4.5

4.

What is the return type of getchar() in C?

a)

char

b)

float

c)

byte

d)

int

5.

What is the output of the expression in python:


3*1**3

a)

0

b)

1

c)

3

d)

9

6.

In java what is the base class of all classes?

a)

java.lang.Object

b)

java.util.zip

c)

javax.lang.class

d)

javax.util.jar

7.

Select the odd one out :

a)

C#

b)

Pi

c)

R

d)

Ruby

8.

Predict the output of the following pseudocode?

a)

It accepts a string

b)

It reverses the string

c)

It prints the string in the same order

d)

None of these

9.

What will be the output of following C code?

a)

Compile time error

b)

2 97

c)

2 2

d)

Segmentation fault/code crash

10.

Ingenuity is another highlight of Mars 2020. Which processor is used for ingenuity?

a)

Intel Xenon

b)

NASA Custom Made chipset

c)

Snapdragon 801 SoC

d)

NVIDIA Tegra

11.

What will be the output of the following C program?

a)

24

b)

25

c)

55

d)

30