Search Header Logo

DSA Quiz 4th Semster CE

Authored by Gp BrighUp

Other

University

Used 9+ times

DSA Quiz 4th Semster CE
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity of inserting an element into a stack implemented using an array?

O(1)

O(n)

O(log n)

O(n^2)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure is used for breadth-first traversal of a graph?

Stack

Queue

Array

Linked List

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the worst-case time complexity of the quicksort algorithm?

. O(n)

O(n log n)

O(n^2)

O(log n)

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a binary search tree, which traversal gives the nodes in ascending order?

Preorder

Inorder

Postorder

Level order

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of hashing in data structures?

Sorting elements

Searching elements

Inserting elements

Deletion of elements

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which sorting algorithm has the best average-case time complexity?

Bubble Sort

Merge Sort

Insertion Sort

Selection Sort

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which data structure uses LIFO (Last In, First Out) ordering?

Queue

Stack

Linked List

Tree

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?