wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Technical quiz(Medium-Level)

Total questions: 25

Worksheet time: 8mins

Name
Class
Date
1.

What will be the output of the following Python code?

a)

[1, 2, 3]

b)

[1, 2, 3, 4]

c)

[1, 2, 4]

d)

Error

2.

Which data structure is used for implementing recursion?

a)

Queue

b)

Stack

c)

Linked List

d)

Array

3.

What is the worst-case time complexity of the Quick Sort algorithm?

a)

O(n)

b)

O(n log n)

c)

O(n²)

d)

O(log n)​

4.

In SQL, which command is used to remove all records from a table without removing the table structure?

a)

DELETE

b)

DROP

c)

TRUNCATE

d)

REMOVE

5.

Which protocol is used to send email messages from a client to a server?

a)

FTP

b)

SMTP

c)

HTTP

d)

IMAP

6.

Which of the following is a characteristic of a multithreaded process?

a)

Multiple processes with a single thread each

b)

A single process with multiple threads

c)

Multiple processes with multiple threads each

d)

A single process with a single thread​

7.

Which of the following is not a valid access modifier in Java?

a)

public

b)

private

c)

protected

d)

internal​

8.

Which data structure is used to implement LRU (Least Recently Used) cache?

a)

Stack

b)

Queue

c)

HashMap and Doubly Linked List

d)

Array

9.

Which algorithm is used to find the shortest path in a weighted graph?

a)

Depth-First Search

b)

Breadth-First Search

c)

Dijkstra's Algorithm

d)

Kruskals Algorithm

10.

Which device operates at the Data Link layer of the OSI model?​

a)

Router

b)

Switch

c)

Hub

d)

Repeater

11.

Which of the following correctly initializes a pointer in C++?

a)

int ptr = &x;

b)

int *ptr = &x;

c)

int ptr = *x;

d)

int &ptr = x;

12.

Which sorting algorithm is considered stable?

a)

Quick Sort

b)

Heap Sort

c)

Merge Sort

d)

Selection Sort

13.

Which layer of the OSI model is responsible for routing?

a)

Data Link

b)

Transport

c)

Network

d)

Session

14.

What is thrashing in operating systems?

a)

Overheating of CPU

b)

Excessive swapping of processes

c)

Hardware failure

d)

Running multiple threads

15.

Which of the following is used to implement BFS in a graph?

a)

Stack

b)

Queue

c)

Heap

d)

Recursion

16.

Which algorithm is used to detect cycles in a directed graph?

a)

DFS with recursion stack

b)

BFS

c)

Dijkstra

d)

Prim’s algorithm

17.

Which address is used for broadcasting in IPv4?

a)

255.255.255.255

b)

0.0.0.0

c)

127.0.0.1

d)

192.168.0.1

18.

Which of the following is true about virtual memory?

a)

It increases physical RAM

b)

It allows more processes than RAM can hold

c)

It speeds up execution

d)

It disables paging

19.

What is the output of:

python:

pow(2, 3, 5)

a)

8

b)

3

c)

2

d)

1

20.

How many edges does a complete graph with 6 vertices have?

a)

12

b)

15

c)

18

d)

21

21.

What is the binary representation of the decimal number 45?

a)

101101

b)

110101

c)

101011

d)

100011

22.

What is the result of 1010 ^ 1100?

a)

0110

b)

1110

c)

1010

d)

1000

23.

What is the purpose of DNS?

a)

Assigns IP addresses

b)

Translates domain names to IP addresses

c)

Routes data packets

d)

Encrypts HTTP requests

24.

What does the expression n & (n - 1) do in binary?

a)

Sets the MSB to 0

b)

Clears the least significant set bit

c)

Flips all bits

d)

Checks if a number is odd

25.

What will be the output of the following code?

a)

10

b)

11

c)

Address of a

d)

compilation error