wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Algorithm Fundamentals

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the correct definition of an algorithm?

a)

A. A non-terminating set of operations

b)

B. A finite sequence of steps to solve a problem

c)


C. A hardware method of storing data

d)


D. A random process producing output

2.

Which of the following is not a performance measure of an algorithm?

a)

A. Time Complexity

b)

B. Correctness

c)

C. Space Complexity

d)

D. Aesthetic Design

3.

Linear data structures include:

a)

A. Graph and Binary Tree

b)

B. Trie and Heap

c)

C. Array and Linked List

d)

D. Sparse Matrix and AVL Tree

4.

A matrix with mostly zero elements is known as a (a)   matrix.

5.

In column-major order, element (i, j) is stored:

a)

A. Based on rows first

b)

B. Based on columns first

c)

C. Based on diagonal numbering

d)

D. Based on polynomial hashing

6.

What is the drawback of arrays

a)

A. Unpredictable indexing

b)

B. Requires contiguous memory

c)

C. Cannot store characters

d)

D. No support for iteration

7.

Non-linear data structures include:

a)

A. Array and Queue

b)

B. Graph and Tree

c)

C. String and Matrix

d)

D. Stack and Queue

8.

Which measure determines how much memory an algorithm requires?

a)

A. Time Complexity

b)

B. Correctness

c)

C. Space Complexity

d)

D. Scalability

9.

Why is correctness an important algorithm measure?

a)

A. Ensures minimum time

b)

B. Ensures minimal memory

c)

C. Ensures correct output for all valid inputs

d)

D. Ensures good visual appearance

10.

An algorithm is a (a)   , step-by-step procedure to solve a problem.