Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

ACM Tech Quiz - 6th Jan'26

Total questions: 45

Worksheet time: 25mins

Name
Class
Date
1.

Which data structure follows FIFO Principle?

a)
Queue
b)
Stack
c)
Linked List
d)
Tree
2.

Time complexity of binary search is

a)
O(log n)
b)
O(1)
c)
O(n log n)
d)
O(n)
3.

Which is not an OOP principle?

a)

Encapsulation

b)

Compilation

c)

Polymorphism

d)

Inheritance

4.

HTML is used for:

a)

Styling

b)

Logic

c)

Structure

d)

Database

5.

Which is not an operating system?

a)

Linux

b)

Windows

c)

Oracle

d)

macOS

6.

Which protocol is used to send email?

a)

FTP

b)

SMTP

c)

HTTP

d)

DNS

7.

Which key uniquely identifies a record?

a)

Foreign

b)

Candidate

c)

Primary

d)

Composite

8.

Which is not a sorting algorithm?

a)

Merge

b)

Quick

c)

Heap

d)

Hash

9.

Git is used for:

a)
User interface design and development.
b)
Version control and collaboration on code.
c)
Database management and storage.
d)
Project management and task tracking.
10.

Which layer does IP belong to?

a)
Network layer
b)
Data link layer
c)
Application layer
d)
Transport layer
11.

Which symbol is used for pointers in C?

a)

&

b)

*

c)

#

d)

+

12.

SQL command to remove a table:

a)

CLEAR

b)

REMOVE

c)

DROP

d)

ERASE

13.

Which language is platform independent?

a)
C++
b)
Python
c)
Ruby
d)
Java
14.

What is the full form of API?

a)
Application Program Interface
b)
Application Programming Interface
c)
Application Protocol Interface
d)
Advanced Programming Interface
15.

Which traversal is used in BFS?

a)

Stack

b)

Queue

c)

Recursion

d)

Tree

16.

Which is not a relational DB constraint?

a)

NOT NULL

b)

UNIQUE

c)

DEFAULT

d)

LOOP

17.

What is HTTPS?

a)

Faster HTTP

b)

Encrypted HTTP

c)

Compressed HTTP

d)

Cached HTTP

18.

Which is not a valid IP version?

a)

IPv4

b)

IPv6

c)

IPv3

d)
IPv5
19.

Which algorithm uses divide and conquer?

a)
Merge Sort
b)
Heap Sort
c)
Binary Search
d)
Quick Sort
20.

What does DNS do?

a)

stores website content on servers.

b)

manages email routing for domains.

c)

encrypts internet traffic for security.

d)

translates domain names into IP addresses.

21.

Which are OOP languages?

a)

C

b)

Java

c)

Python

d)

C++

22.

Which are cloud models?

a)

IaaS

b)

PaaS

c)

Saas

d)

NaaS

23.

Which are graph traversal algorithms?

a)

BFS

b)

FCFS

c)

DFS

d)

Dijkstra

24.

int x=3;

printf("%d", x++ + ++x);

What is the output of the following C++ code?

a)
6
b)
10
c)
8
d)
5
25.

print(2 ** 3 ** 2)
What is the output of the following Python code?

a)
16
b)

512

c)

64

d)

256

26.

for(int i=0; i<3; i++) printf("%d", i);

Output of the following C code is:

a)
012
b)
01
c)
0123
d)
123
27.

Which data structure for recursion?

a)
Hash table
b)

stack

c)
Binary tree
d)
Linked list
28.

Which traversal prints root in between?

a)
Pre-order traversal
b)
Post-order traversal
c)
Level-order traversal
d)
In-order traversal
29.

What is size of pointer in 64-bit?

a)
4 bytes
b)
16 bytes
c)
12 bytes
d)
8 bytes
30.

Best case of quicksort is:

a)
O(n^2)
b)
O(n log n)
c)
O(n)
d)
O(log n)
31.

Which layer is responsible for end-to-end communication in the OSI model?

a)
Network layer
b)
Data link layer
c)
Application layer
d)
Transport layer
32.

Which of the following are characteristics of a deadlock?

a)

Mutual exclusion

b)

Preemption

c)

Circular wait

d)

Hold and wait

33.

Which are advantages of multithreading?

a)

Improved responsiveness

b)

Reduced context switching

c)

Better CPU utilization

d)

Easier debugging

34.

Output of the code
int a = 3, b = 4;

cout << (a & b);

is

a)

0

b)

1

c)

2

d)

4

35.

Output of the code
x = [1,2,3]

y = x

y.append(4)

print(x)

is

a)
[1, 2, 4]
b)
[1, 2, 3, 4]
c)
[1, 2, 3, 5]
d)
[2, 3, 4]
36.

int arr[] = {10,20,30};

int *p = arr;

cout << *(p+1);

What does this code print?

a)
10
b)
20
c)
30
d)

Garbage value

37.

void func(int n) {

for(int i=1; i<n; i*=2)

for(int j=0; j<n; j++)

cout << i << j;

}

What is the time complexity of this function?

a)
O(n)
b)
O(n log n)
c)
O(log n)
d)
O(n^2)
38.

Which normal form removes partial dependency?

a)
Second Normal Form (2NF)
b)
Boyce-Codd Normal Form (BCNF)
c)
Third Normal Form (3NF)
d)
First Normal Form (1NF)
39.

What is the purpose of a page table?

a)

Store instructions

b)

Map virtual to physical memory

c)

Handle interrupts

d)

Manage cache

40.

Which are valid states of a process?

a)

New

b)

Ready

c)

Running

d)

Suspended

41.

Which SQL commands are DDL?

a)

CREATE

b)

INSERT

c)

ALTER

d)

DROP

42.

What does this code print?
int a = 5;

cout << (a << 1);

a)
5
b)
10
c)

12

d)

8

43.

int arr[3] = {1,2,3};

cout << arr[3];

What does this code print?

a)

3

b)

0

c)

Garbage value

d)

error

44.

int *p;

cout << *p;

What does this code print?

a)

0

b)

Garbage value

c)

Segmentation fault

d)

Compilation error

45.

Output of the following Python code
def f(x, y=2, z):

return x + y + z

print(f(1,3,4))

is

a)
8
b)
7
c)

Error

d)
6