wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Workshop Day 2

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

To represent hierarchical relationship between elements, which data structure is suitable

a)

Priority

b)

Tree

c)

Dequeue

d)

All of the above

2.

Which data structure allows deleting data elements from front and inserting at rear

a)

Queue

b)

Stack

c)

Binary search tree

d)

Dequeue

3.

Which of the following is not a disadvantage to the usage of array

a)

Fixed size

b)

There are chances of wastage of memory space if elements inserted in an array are lesser than the allocated size

c)

Insertion based on position

d)

Accessing elements at specified positions

4.

Elements in an array are accessed

a)

randomly

b)

sequentially

c)

exponentially

d)

logarithmically

5.

How can you measure the efficiency of an the algorithm?

a)

Processor and memory

b)

Complexity and capacity

c)

Time and space

d)

Data and space

6.

How can we measure the time factor when determining the efficiency of the algorithm

a)

Counting microseconds

b)

 

Counting the number of key operations

c)

Counting the number of statements

d)

Counting the number of statements

7.

The complexity theory does not contain the following case, which is

a)

Best Case

b)

Average Case

c)

Worst Case

d)

Null Case

8.

What is the time complexity for inserting/deleting at the beginning of the array

a)

O(1)

b)

O(n)

c)

O(logn)

d)

O(nlogn)

9.

What is the worst case time complexity of inserting an element into the sorted array

a)

O(nlogn)

b)

O(1)

c)

O(n)

d)

O(logn)

10.

Which of the following statement(s) about stack data structure is/are NOT correct

a)

Linked List are used for implementing Stacks

b)

Top of the Stack always contain the new node

c)

Stack is the FIFO data structure

d)

Null link is present in the last node at the bottom of the stack