HAPPY DSA

HAPPY DSA

University

20 Qs

quiz-placeholder

Similar activities

Session 08: Array

Session 08: Array

University

16 Qs

Evaluasi PAA  Kelas C

Evaluasi PAA Kelas C

University

20 Qs

Algoritma dan Pemograman

Algoritma dan Pemograman

University

20 Qs

Introduction to C# Programming

Introduction to C# Programming

10th Grade - University

20 Qs

DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

University

20 Qs

DSA (QUIZ 7) -Greedy Algorithms and Complexity Analysis

DSA (QUIZ 7) -Greedy Algorithms and Complexity Analysis

University

15 Qs

Data Structure Quiz

Data Structure Quiz

University

21 Qs

DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

University

20 Qs

HAPPY DSA

HAPPY DSA

Assessment

Quiz

Information Technology (IT)

University

Hard

Created by

PAVITHRA G

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following data structures is used in the implementation of a recursive function?

A) Queue


B) Stack

C) Linked List

D) Tree

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following is the time complexity of accessing an element in an array of size n?




A) O(1)

B) O(n)

C) O(log⁡n)

D) O(n^2)

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following algorithms is used for sorting an array in place?

D) Heap Sort

C) Bubble Sort

B) Quick Sort

A) Merge Sort

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the space complexity of a recursive function that uses a stack for its execution?

B) O(n)

A) O(1)

D) O(n^2)

C) O(log⁡n)

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following data structures allows for the implementation of a LIFO (Last In First Out) principle?

B) Stack

D) Linked List

A) Queue

C) Array

6.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What is the average time complexity of a binary search algorithm on a sorted array?

A) O(n)

D) O(1)

C) O(n log⁡n)

B) O(log⁡n)

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Which of the following data structures is best suited for implementing a priority queue?

B) Stack

A) Array

D) Linked List

C) Heap

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?