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

HAPPY DSA

Quiz
•
Information Technology (IT)
•
University
•
Hard
PAVITHRA G
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
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(logn)
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(logn)
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 logn)
B) O(logn)
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
Similar Resources on Quizizz
20 questions
DATA STRUCTUIR Quiz1 (AIML)

Quiz
•
University
20 questions
DSA (QUIZ 6) Hashing, Graphs, Advanced Graph Algorithms, and DP

Quiz
•
University
15 questions
DSA (QUIZ 3) - Recursion

Quiz
•
University
15 questions
Challenging Algorithms and Sorting Concepts

Quiz
•
University
20 questions
ALPRO 05/12-2024

Quiz
•
University
15 questions
Understanding Loops in C Programming

Quiz
•
1st Grade - University
20 questions
DSA (QUIZ 5) Priority Queue and Sorting Algorithms Quiz

Quiz
•
University
15 questions
DSA (QUIZ 7) -Greedy Algorithms and Complexity Analysis

Quiz
•
University
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade