wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

quiz competition

Total questions: 15

Worksheet time: 3mins

Name
Class
Date
1.

I can hold data in a sorted way and help you search fast. I am not a linear structure.
What am I?

a)
Binary Search Tree
b)
Hash Table
c)
Array
d)
Linked List
2.

I always find the shortest path with the help of a heuristic.
Who am I?

a)
Dijkstra's algorithm
b)
Breadth-First Search
c)
A* algorithm
d)
Greedy Best-First Search
3.

What is the time complexity of accessing an element in an array by index?

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

Which data structure uses FIFO (First In First Out) principle?

a)
Stack
b)
Linked List
c)
Array
d)
Queue
5.

What is the role of the Operating System?

a)
To run applications without hardware support
b)
To manage user passwords
c)
To provide internet connectivity
d)
The role of the Operating System is to manage hardware and software resources and provide a user interface.
6.

There are 3 processes A, B, and C with burst times of 5 ms, 10 ms, and 15 ms, respectively.
Using FCFS Scheduling, what will be the waiting time for process C?

a)
10 ms
b)
15 ms
c)
5 ms
d)
20 ms
7.

What is the main goal of Contrastive Learning in AI?

a)
To learn effective representations by contrasting similar and dissimilar data points.
b)
To enhance the speed of data processing.
c)
To eliminate the need for labeled data entirely.
d)
To create a single representation for all data points.
8.

What is the 2's complement of the binary number 1010?

a)
0110
b)
0111
c)
1100
d)
1001
9.

Which of the following is considered the birth year of Artificial Intelligence as a field?

a)
1945
b)
1965
c)
1956
d)
1972
10.

What type of AI is designed to perform a specific task (like face recognition) but cannot do anything outside its designed function?

a)
Narrow AI (Weak AI)
b)
General AI
c)
Superintelligent AI
d)
Self-aware AI
11.

What is the correct sequence of process states in a typical OS?

a)
Ready, New, Waiting, Running, Terminated
b)
New, Ready, Running, Waiting, Terminated
c)
New, Running, Ready, Waiting, Terminated
d)
Running, Waiting, New, Terminated, Ready
12.

You roll a fair die 3 times. What is the probability that the sum is exactly 10?

a)
0.200
b)
0.125
c)
0.075
d)
0.300
13.

What’s wrong with this code?

print "Hello, World!"

a)
print 'Hello, World!' is valid in Java.
b)

print('Hello, World!') is correct for Python 3.

c)
Use print("Hello, World!") for Python 3.
d)
Use echo 'Hello, World!' for PHP.
14.

What happens when you run this code?

arr = [1, 2, 3]

print(arr[3])

a)
The code prints 'Index 3 is out of range'.
b)
The code runs without any errors.
c)
An IndexError is raised.
d)
The code prints '3'.
15.

Who is celebrated on Indian National Engineers’ Day?

a)
Mahatma Gandhi
b)
Sir Mokshagundam Visvesvaraya
c)
Dr. A.P.J. Abdul Kalam
d)
C.V. Raman