wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Round 2 for Preplacement Bootcamp

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.

What is the output of the following code:

a)

B C

b)

B C A

c)

A B C

d)

C B

2.

Which of the following statements is correct?

a)

Base class pointer cannot point to derived class

b)

Derived class pointer cannot point to base class

c)

Pointer to derived class cannot be created

d)

Pointer to base class cannot be created

3.

Identify this pseudocode:

a)

BubbleSort

b)

InsertionSort

c)

RadixSort

d)

QuickSort

4.

The output of the following code:

a)

3

b)

15

c)

2

d)

5

e)

Error

5.

The output of the following code:

a)

YES

b)

NO

c)

Compilation Error

d)

Runtime Error

6.

The output of the following code:

a)

Hello

b)

Hello Hello

c)

Hello Hello Hello

d)

Error

7.

The output of the following pseudocode:

a)

112358

b)

12358

c)

123581321

d)

12358132

8.

What will be the output of the following pseudocode?

Integer a, b

Set a = 15, b = 7

a = a mod (a – 3)

b = b mod (b – 3)

a = a mod 1

b = b mod 1

Print a + b

a)

15

b)

7

c)

2

d)

0

9.

Point out the error from the code:

a)

No Error

b)

char to int conversion is not possible in scanf()

c)

the second scanf() input may not be possible

d)

return 0 in this code may throw some error

10.

macOS is based on the (a)   operating system

11.

Which of the following is true about Dalvik Virtual Machine?

a)

It is an alternative to JVM

b)

It is the type of an alternate bytecode

c)

It is efficient in Horizontal scaling.

d)

More powerful than JVM

12.

Which of the following parameter is taken by the buffer.toString in the Android context?

a)

Start

b)

End

c)

Encoding

d)

All of above

13.

What is the callback in the android concept?

a)

The callback is the technique in which a method calls back the caller method.

b)

The callback is an asynchronous equivalent of a function.

c)

Both A and B

d)

None of the above

14.

Which of the concepts means determining at runtime what method to invoke?

a)

Data Hiding

b)

Dynamic Typing

c)

Dynamic Binding

d)

Dynamic loading

15.

How many types of broadcast receivers and their usage?

a)

3, for keeping the device awake.

b)

3, used for receiving SMS

c)

2, System-wide event

d)

2, minimizes the application