wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ROUND 1

Total questions: 20

Worksheet time: 20mins

Name
Class
Date
1.

What is the output of this statement "printf("%d", (a++))"?

a)

The value of (a + 1)

b)

The current value of a

c)

Error

d)

Garbage

2.

What does this declaration mean?

int x : 4 ;

a)

X is a four-digit integer

b)

X cannot be greater than a four-digit integer.

c)

X is a four-bit

integer.

d)

None of these

3.

In the C language, the constant is defined _______.

a)

Before main

b)

After main

c)

Anywhere, but starting on a new line.

d)

None of the these.

4.

Which of the following option leads to the portability and security of Java?

a)

Bytecode is executed by JVM

b)

The applet makes the Java code secure and portable

c)

Use of exception handling

d)

Dynamic binding between objects

5.

_____ is used to find and fix bugs in the Java programs.

a)

JVM

b)

JRE

c)

JDK

d)

JDB

6.

In which process, a local variable has the same name as one of the instance variables?

a)

Serialization

b)

Variable Shadowing

c)

Abstraction

d)

Multi-threading

7.

Which of the following is true about the anonymous inner class?

a)

It has only methods

b)

Objects can't be created

c)

It has a fixed class name

d)

It has no class name

8.

Which of the following declarations is invalid in C language?

a)

char *str = "javatpoint is the best platform for learn";

b)

char str[] = "javatpoint is the best platform for learn";

c)

char str[20] = "javatpoint is the best platform for learn";

d)

char[] str = "javatpoint is the best platform for learn";

9.

Which of the following statements is correct for variable names in Python language?

a)

All variable names must begin with an underscore.

b)

Unlimited length

c)

The variable name length is a maximum of 2.

d)

All of the above

10.

Which of the following is not a keyword in Python language?

a)

val

b)

raise

c)

try

d)

with

11.

At what rate percent per annum will a sum of money double in 8 years.

a)

12.5%

b)

13.5%

c)

11.5%

d)

14.5%

12.

The sum of ages of 5 children born at the intervals of 3 years each is 50 years. What is the age of the youngest child?

a)

4 years

b)

8 years

c)

10 years

d)

None of these

13.

Find the number, when 15 is subtracted from 7 times the number, the result is 10 more than twice of the number.

a)

5

b)

15

c)

7.5

d)

4

14.

An aeroplane covers a certain distance at a speed of 240 kmph in 5 hours. To cover the same distance in 1 2/3 hours, it must travel at a speed of?

a)

300kmph

b)

360kmph

c)

600kmph

d)

720kmph

15.

Pointing to a photograph of a boy Suresh said, "He is the son of the only son of my mother." How is Suresh related to that boy?

a)

Brother

b)

Uncle

c)

Cousin

d)

Father

16.

Golu started from his house towards North. After covering a distance of 8 km. he turned towards left and covered a distance of 6 km. What is the shortest distance now from his house?

a)

10 km

b)

16 km

c)

14 km

d)

2 km

17.

I am an odd number. Take away one letter and I become even. What number am I?

(a)  

18.

Fill in the question mark

a)

15

b)

30

c)

25

d)

10

19.

Poles : Magnet :: ? : Battery

a)

Cells

b)

Power

c)

Terminals

d)

Energy

20.

13, 35, 57, 79, 911, ?

a)

1110

b)

1112

c)

1113

d)

1315