DSA Quiz 4th Semster CE

DSA Quiz 4th Semster CE

University

40 Qs

quiz-placeholder

Similar activities

MODULE-1-DATA STRUCTURES

MODULE-1-DATA STRUCTURES

University

35 Qs

Programming

Programming

12th Grade - Professional Development

35 Qs

Data Structures Quiz

Data Structures Quiz

University

37 Qs

Data Structures

Data Structures

University

45 Qs

Exam 3 review - Cog Psych (FA22)

Exam 3 review - Cog Psych (FA22)

12th Grade - University

40 Qs

Ainsley - OrgChem lec (Overview to Intro)

Ainsley - OrgChem lec (Overview to Intro)

University

35 Qs

Tsukunomey

Tsukunomey

University

45 Qs

TECHNICAL QUIZ

TECHNICAL QUIZ

University

45 Qs

DSA Quiz 4th Semster CE

DSA Quiz 4th Semster CE

Assessment

Quiz

Other

University

Hard

Created by

Gp BrighUp

Used 9+ times

FREE Resource

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

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?