Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Tech quiz (first round)

Total questions: 20

Worksheet time: 7mins

Name
Class
Date
1.

Q1. Which data structure is most suitable for implementing recursion?

a)

A) Queue

b)

B) Array

c)

C) Stack

d)

D) Linked List

2.

Q2. What is the worst-case time complexity to search an element in a balanced binary search tree?

a)

A) O(n)

b)

B) O(log n)

c)

C) O(1)

d)

D) O(n log n)

3.

Q3. A priority queue can be efficiently implemented using:

a)

A) Circular queue

b)

B) Binary heap

c)

C) Hash table

d)

D) Linked list

4.

Q4. In an AVL tree, what is the maximum difference between the heights of the left and right subtrees of any node?

a)

A) 2

b)

B) 1

c)

C) log n

d)

D) n

5.

Q5. Which traversal of a binary search tree gives the nodes in sorted order?

a)

A) Pre-order

b)

B) Post-order

c)

C) In-order

d)

D) Level-order

6.

Q6. Which scheduling algorithm may cause starvation?

a)

A) Round Robin

b)

B) FCFS

c)

C) Priority Scheduling

d)

D) Shortest Remaining Time First

7.

Q7. The critical section problem is used to:

a)

A) Protect shared resources from race conditions

b)

B) Optimize memory allocation

c)

C) Schedule processes

d)

D) Manage deadlocks

8.

Q8. In paging, the logical address is divided into:

a)

A) Frame number and offset

b)

B) Page number and offset

c)

C) Segment number and page number

d)

D) Page table and TLB

9.

Q9. Which of the following is NOT a valid page replacement algorithm?

a)

A) LRU

b)

B) FIFO

c)

C) SSTF

d)

D) Optimal

10.

Q10. Thrashing occurs when:

a)

A) Processes are CPU-bound

b)

B) High page-fault rate causes constant swapping

c)

C) Deadlock happens

d)

D) Cache memory is full

11.

Q11. Which of the following is not a characteristic of ?

a)

A) Sequential instruction execution

b)

B) Shared data and instruction memory

c)

C) Parallel pipelines for all operations

d)

D) Stored program concept

12.

Q12. Amdahl’s Law is used to predict:

a)

A) Maximum speedup achievable by parallelizing part of a task

b)

B) Cache replacement performance

c)

C) Compiler optimization efficiency

d)

D) Operating system scheduling

13.

Q13. The number of bits needed to represent 256 unique values is:

a)

A) 7

b)

B) 8

c)

C) 9

d)

D) 16

14.

Q14. Which of the following is not true about ?

a)

A) Uses simple instructions

b)

B) Uses fixed instruction size

c)

C) Requires more general-purpose registers

d)

D) Uses microcoded complex instructions

15.

Q15. In Boolean algebra, the dual of (A + 0) is:

a)

A) A ⋅ 1

b)

B) A + 1

c)

C) A ⋅ 0

d)

D) 0

16.

Q16. Which keyword is used to prevent inheritance of a class in Java?

a)

A) static

b)

B) final

c)

C) abstract

d)

D) private

17.

Q17. Which of the following is not a Java primitive data type?

a)

A) int

b)

B) float

c)

C) String

d)

D) boolean

18.

Q18. Which of these blocks will always execute whether an exception is thrown or not?

a)

A) catch

b)

B) try

c)

C) finally

d)

D) throw

19.

Q19. What is the output of this code?

java

int x = 5;

System.out.println(x++ + ++x);

a)

A) 11

b)

B) 12

c)

C) 10

d)

D) 13

20.

Q20. Which of the following is true about Java memory management?

a)

A) It uses explicit delete() like 

b)

B) It uses automatic garbage collection

c)

C) Programmer must manually free objects

d)

D) It has no heap memory