wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Round 1 for Preplacement Bootcamp.

Total questions: 15

Worksheet time: 3hrs 30mins

Name
Class
Date
1.

In Data Structures. you are working on Arrays. You are given a Pseudocode that implements various operations.If you have this pseudocode in a programming language then what will be the output?

a)

56,34,27,75,49,53,16,65

b)

65,16,53,49,75,27,34,56

c)

65,16,53,75,49,27,34,56

d)

Error

2.

What is the output of the following pseudocode:

a)

0

b)

10

c)

11

d)

-1

3.

Who owns x[dot]com:

a)

Jan Koum

b)

Mark Zuckerberg

c)

Bill Gates

d)

Elon Musk

4.

What is the output of the following code:

a)

12

b)

13

c)

14

d)

15

5.

The output of the following code:

a)

1 1

b)

1 2

c)

2 1

d)

2 2

6.

What is the shortest path between 'a' to 'e' :

a)

a->f->e

b)

a->b->d->e

c)

a->c->d->e

d)

a->c->f->e

7.

What will be the output of the following pseudo-code for a=1, b=6?

(Note- &&: Logical AND - The logical AND operator (&&) returns the Boolean value true(or 1) if both operands are true and return false(or 0)otherwise

& bitwise AND - The bitwise AND operator (&) compares each bit of the first operand to the corresponding bit of the second operand. If both bits are 1, the corresponding result bit is set to 1. Otherwise, the corresponding result but is set to 0)

a)

29

b)

27

c)

30

d)

22

8.

what is the final value of i ?

a)

4

b)

3

c)

5

d)

2

9.

IMDb is owned by:

a)

Microsoft

b)

Amazon

c)

J.P. Morgan

d)

Tesla

10.

What will be the output of the following pseudocode for arr[] = 1,2,3,4,5

a)

3 3 4 9 5

b)

4 3 7 5 2

c)

3 5 7 9 5

d)

1 2 3 4 5

11.

What will be the output of the following pseudocode?

a)

3

b)

4

c)

2

d)

0

12.

"let that sink in"

is related with...

(This Question contains no points)

a)

Google

b)

Twitter

c)

Microsoft

d)

Amazon

13.

Write a query to fetch the number of employees working in the department ‘HR’.

a)

SELECT COUNT(*) FROM EmployeeInfo WHERE Department = 'HR';

b)

SELECT COUNT(*) FROM EmployeeInfo WHERE Dept = "HR"

c)

SELECT COUNT(EmpID,EmpFname,EmpLname,Department,Project,Address,DOB) FROM EmployeeInfo WHERE Dept = 'HR';

d)

SELECT COUNT() FROM EmployeeInfo WHERE Department = 'HR';

14.

What is the output of the code?

a)

299

b)

677

c)

555

d)

366

15.

Which access specifier is used when no access specifier is used with a member of class (java)?

a)

Public

b)

Private

c)

Default

d)

Protected