wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Mock Batch-III

Total questions: 62

Worksheet time: 2hrs 30mins

Name
Class
Date
1.

A car moves for 2 hours at a speed of 25 km/h and another car moves for 3 hours at the same speed. Find the ratio of distances covered by the two cars.

a)

5:2

b)

2:3

c)

1:3

d)

7:3

2.

Without stoppage, a train travels at an average speed of 75 km/h and with stoppages it covers the same distance at an average speed of 60 km/h. How many minutes per hour does the train stop?

a)

10 min

b)

12 min

c)

14 min

d)

18 min

3.

Walking at ¾ of his normal speed, Abhishek is 16 minutes late in reaching his office. The usual time taken by him to cover the distance between his home and office is

a)

48 minutes

b)

60 minutes

c)

42 minutes

d)

62 minutes

4.

The speed of a train is 90 kmph. What is the distance covered by it in 10 minutes?

a)

15 km

b)

12 km

c)

10 km

d)

5 km

5.

A car covers a distance of 450m in 90 secs. What is the speed in km/hr?

a)

18

b)

20

c)

5

d)

10

6.

A person do rock climbing at an altitude of 800 m. He go up by 7 mph. and come down by 9 mph. what was his average speed

a)

7.8 mph

b)

8.2 mph

c)

10 mph

d)

12 mph

7.

A rider travels ‘m' miles in 'h' hours and 'n’ minutes. What is the speed of the bike in miles per hour?

a)

60/(60h+m)

b)

60/(60m+n)

c)

m/(60h+n)

d)

60m/(60h+n)

8.

The distance from the pavilion to me food court on me map is 3.5 cm If map is of the scale 1 cm = 10 m, what is the actual distance?

a)

25 m

b)

36 m

c)

35 m

d)

40 m

9.

A and B travel the same distance at the rate of 8 km/h and 10 km/h respectively. If A takes 30 minutes longer than B, the distance travelled by B is?

a)

6 km

b)

10 km

c)

16 km

d)

20 km

10.

Ratio between speeds of 2 trains is 5:3. If the first train runs 350 km in 2 hours, then what is the speed of the second train?

a)

100 kmph

b)

115 kmph

c)

105 kmph

d)

210 kmph

11.

The difference between the local value and face value of 7 in the numeral 657903 is

a)

0

b)

7896

c)

6993

d)

903

12.

The sum of three prime numbers is 100. If one of them exceeds another by 36, then one of the numbers is

a)

7

b)

29

c)

41

d)

67

13.

5b2 is a three-digit number with b as a missing digit. If the number is divisible by 6, the missing digit is

a)

2

b)

3

c)

6

d)

7

14.

The least number which must be subtracted from 6709 to make it exactly divisible by 9 is

a)

2

b)

3

c)

4

d)

5

15.

The largest natural number which exactly divides the product of any four consecutive natural numbers is

a)

6

b)

12

c)

24

d)

120

16.

The number 311311311311311311311 is

a)

divisible by 3 but not by 11

b)

divisible by 11 but not by3

c)

divisible by both 3 and 11

d)

neither divisible by 3 nor by 11

17.

The value of P, when 4864 x 9P2 is divisible by 12, is

a)

2

b)

5

c)

8

d)

none of these

18.

How many of the following numbers are divisible by 3 but not by 9?

2133, 2343, 3474, 4131, 5286, 5340, 6336, 7347, 8115, 9276

a)

5

b)

6

c)

7

d)

none of these

19.

The sum of three consecutive odd numbers is always divisible by:

I. 2 II. 3 III. 5 IV. 6

a)

Only I

b)

Only II

c)

Only I and II

d)

Only II and IV

20.

(51+52+53+………+100) is equal to

a)

2525

b)

2975

c)

3225

d)

3775

21.

A number when divided successively in order by 4, 5 and 6. The remainders were respectively 2, 3 and 4. The number is

a)

214

b)

476

c)

954

d)

1908

22.

A number when divided b the sum of 555 and 445 gives two times their difference as quotient and 30 as the remainder. The number is

a)

1220

b)

1250

c)

22030

d)

220030

23.

When a number is divided by 31, the remainder is 29. When the same number is divided by 16, what will be the remainder?

a)

11

b)

13

c)

15

d)

Data inadequate

24.

A number when divided by 6 leaves a remainder 3. When the square of the same number is divided by 6, the remainder is

a)

0

b)

1

c)

2

d)

3

25.

Find the missing number in the series given below:

120, _, 60, 20, 5, 1

a)

60

b)

120

c)

100

d)

80

26.

Find the next number in the series given below:

4, 14, 38, 82, 152,_

a)

176

b)

188

c)

220

d)

254

27.

Find the next letter in the series given below:

B,I,OT,X,A,C,_

a)

E

b)

F

c)

D

d)

G

28.

Find the next letter in the series given below:

CIRCULAR, IRCULA, RCUL, _

a)

CU

b)

UC

c)

RU

d)

UL

29.

Find the next letter in the series given below:

PL, QN, RP, SR

a)

TS

b)

TT

c)

US

d)

UT

30.

In the following question, find out the alternative which will replace the question mark:

8: 32:: 14: ?

a)

72

b)

88

c)

86

d)

98

31.

Identify the last node in the post-order traversal of this binary tree.

a)

8

b)

1

c)

9

d)

5

32.

If we use sequential representation of binary tree, a node at position i will have its left child at ______________

a)

i/2

b)

i+1

c)

2*i

d)

2*i*2

33.

If the root of a BST has 16 as the key, then the key element 31 should be inserted in the _____________

a)

right sub-tree of root

b)

left sub-tree of root

c)

either left sub-tree of right sub-tree of the root

34.

The MAX-HEAPIFY function will swap the parent node with the ________ child node on a mismatch.

a)

larger

b)

smaller

c)

left

d)

right

35.

The running time of MAX-HEAPIFY function is

a)

O(n)

b)

O{n^2)

c)

O(logn)

d)

O(nlogn)

36.

If the in-order and post-order traversals of a binary tree are given as 2, 3, 4, 5, 6, 7, 8, 9 and 3, 2, 5, 7, 6, 9, 8, 4 respectively, identify the root.

a)

4

b)

5

c)

9

d)

8

37.

Which SQL keyword is used to retrieve only unique values from a column?

a)

DISTINCT

b)

UNIQUE

c)

LIMIT

d)

GROUP BY

38.

What does the INNER JOIN operation return?

a)

a) All rows from the left table

b)

All rows from the right table

c)

Rows that have matching values in both tables

d)

Non-matching rows from both tables

39.

Given the following SQL query, what will be the result of the subquery?

SELECT * FROM employees WHERE salary > (SELECT AVG(salary) FROM employees);

a)

All employees with salaries less than the average

b)

All employees with salaries greater than the average

c)

An error

40.

Which command is used to remove all rows from a table but keep the structure intact?

a)

DELETE

b)

DROP

c)

TRUNCATE

d)

REMOVE

41.

Which of the following SQL clauses is used to specify the conditions under which a group is included in the result set of a GROUP BY statement?

(a)  

42.

What is the effect of using RANK() in a SQL query as opposed to ROW_NUMBER()?

a)

RANK() skips ranks when there are ties, while ROW_NUMBER() does not.

b)

ROW_NUMBER() skips ranks when there are ties, while RANK() does not.

c)

Both RANK() and ROW_NUMBER() produce identical results.

d)

RANK() and ROW_NUMBER() can be used interchangeably without any difference.

43.

Which of the following SQL queries would return duplicate rows in its result set?

a)

SELECT * FROM products;

b)

SELECT DISTINCT * FROM products;

c)

SELECT product_id, COUNT(*)

FROM products

GROUP BY product_id;

d)

SELECT * FROM products GROUP BY product_id;

44.

Which query returns the total sales amount for each product but includes only products where the total sales exceed $1000?

a)

SELECT product_id, COUNT(amount)

FROM sales

GROUP BY product_id

HAVING COUNT(amount) > 1000;

b)

SELECT product_id, SUM(amount)

FROM sales

WHERE SUM(amount) > 1000

GROUP BY product_id;

c)

SELECT product_id, SUM(amount)

FROM sales

GROUP BY product_id

HAVING SUM(amount) > 1000;

d)

SELECT product_id, SUM(amount)

FROM sales

GROUP BY product_id

WHERE SUM(amount) > 1000;

45.

What is the purpose of a window function in SQL?

a)

To perform row-level operations.

b)

To apply aggregate functions over a specified range of rows.

c)

To calculate the number of rows in a table.

d)

To delete rows in a partitioned query.

46.

Which SQL query will return the second-highest salary from the employees table?

a)

SELECT MAX(salary)

FROM employees

WHERE salary < (SELECT MAX(salary) FROM employees);

b)

SELECT MAX(salary)

FROM employees

ORDER BY salary DESC

LIMIT 1, 1;

c)

SELECT salary

FROM employees

ORDER BY salary DESC

LIMIT 1 OFFSET 1;

d)

SELECT salary

FROM employees

WHERE salary < MAX(salary);

47.

Which SQL statement is used to remove duplicate records from a result set?

a)

SELECT DISTINCT

b)

SELECT UNIQUE

c)

SELECT ALL

d)

SELECT GROUP BY

48.

What is the result of using the COUNT() function in a SQL query?

a)

It returns the total number of rows in a table.

b)

It returns the number of distinct values in a column.

c)

It returns the sum of a numeric column.

d)

It returns the average of a numeric column.

49.

Which SQL statement is used to update existing records in a table?

a)

UPDATE

b)

MODIFY

c)

SET

d)

CHANGE

50.

Which SQL function is used to calculate the average value of a numeric column?

a)

SUM()

b)

AVG()

c)

COUNT()

d)

MEDIAN()

51.

What is the purpose of the GROUP BY clause in SQL?

a)

To filter records based on a condition

b)

To aggregate data across multiple rows

c)

To sort the result set

d)

To join two tables

52.

Which SQL statement is used to create a new table in a database?

a)

CREATE TABLE

b)

NEW TABLE

c)

ADD TABLE

d)

INSERT TABLE

53.

What is the function of the ORDER BY clause in SQL?

a)

To filter records based on a condition

b)

To sort the result set in a specified order

c)

To group records with similar values

d)

To limit the number of records returned

54.

Which SQL statement is used to remove a table from a database?

a)

DELETE TABLE

b)

DROP TABLE

c)

REMOVE TABLE

d)

ALTER TABLE

55.

What does the COALESCE() function do in SQL?

a)

It returns the first non-null value in a list of arguments.

b)

It counts the number of non-null values in a column.

c)

It concatenates two or more strings.

d)

It converts a value to a specified data type.

56.

What is the purpose of the JOIN operation in SQL?

a)

To combine rows from two or more tables based on a related column.

b)

To filter records based on a specific condition.

c)

To create a new table from existing tables.

d)

To delete records from a table.

57.

In dynamic programming, the technique of storing the previously calculated values is called ___________

a)

Saving value property

b)

Storing value property

c)

Memorization

d)

Mapping

58.

Consider the two strings “”(empty string) and “abcd”. What is the edit distance between the two strings?

a)

0

b)

3

c)

4

d)

None of the above

59.

What are 2 things required in order to successfully use the dynamic programming technique?

a)

Optimal sub structure and overlapping sub problems

b)

A problem that can’t be sub divided and is complex

c)

Non overlapping sub problems and intervals

d)

Recursion and a problem that is complex

60.

Dynamic Programming is often used for (choose all that apply):

a)

Optimization problems that involve making a choice that leave one or more subproblems to be solved.

b)

Problems previously solved using divide and conquer that have over lapping subproblems

c)

Non polynomial solution problems

d)

Subproblems where resources are shared

61.

First Recurring Character in a String Problem Statement: Given a string, identify the first character that appears more than once. If no character appears more than once, return -1.

Input:

● The first line contains a string of lowercase alphabets.

Output:

● Output the first recurring character or -1 if no such character exists.

Sample

Test Cases:

Test Case 1:

● Input: abca

● Output: a

● Explanation: The first recurring character is a.

Test Case 2:

● Input: abcdef

● Output: -1

4 lines
62.

Clone a Stack Without Extra Space Problem Statement: Given a stack, clone the stack without using extra space. You should implement this without using any other data structures such as arrays or lists.

Input:

● The input consists of a stack of integers.

Output:

● Output the cloned stack. Sample Test Cases:

Test Case 1:

● Input:

5 4 3 2 1

● Output: 5 4 3 2 1

● Explanation: The stack is cloned, so the output is the same as the input.

Test Case 2:

● Input: 7 6 5

● Output: 7 6 5

4 lines