Quiz on Data Structures

Quiz on Data Structures

University

12 Qs

quiz-placeholder

Similar activities

Quiz-AIML

Quiz-AIML

University

10 Qs

Binary Search Tree (Recap 1)

Binary Search Tree (Recap 1)

11th Grade - University

13 Qs

Data Structure

Data Structure

University

14 Qs

Data Structure

Data Structure

University

10 Qs

Data Structure Revision-II

Data Structure Revision-II

University

8 Qs

common data structure

common data structure

University

10 Qs

DSA-Quiz1

DSA-Quiz1

University

12 Qs

Circular array quiz

Circular array quiz

University

10 Qs

Quiz on Data Structures

Quiz on Data Structures

Assessment

Quiz

Computers

University

Medium

Created by

Muhammad Rizwan

Used 3+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the main difference between a stack and a queue?

Stack uses FIFO and Queue uses LIFO

Stack uses LIFO and Queue uses FIFO

Both use FIFO

Both use LIFO

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which traversal of a binary tree gives sorted output for Binary Search Trees?

Pre-order

Post-order

In-order

Level-order

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many children can a node in a tree have at most?

1

2

3

Infinite

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What property must a binary tree satisfy to be called a Binary Search Tree?

Each node has two children

All leaves are on the same level

Left child < parent < right child

Nodes store only even numbers

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which rotation is used to balance an AVL Tree in a Left-Right (LR) imbalance?

Single Right Rotation

Single Left Rotation

Left-Right Rotation

Right-Left Rotation

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of insertion in an AVL Tree in the worst case?

O(n)

O(log n)

O(n log n)

O(1)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a queue, from where is the element added(enqueue operation)?

Front

Rear

Middle

Any position

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?