Data Structures and Algorithms Quiz

Quiz
•
Computers
•
University
•
Hard
Ajay (RCSS)
Used 4+ times
FREE Resource
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about binary search?
A) It works on both sorted and unsorted arrays
B) It requires the array to be sorted
C) It is slower than linear search for large inputs
D) It does not use recursion
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best case scenario for binary search?
A) When the target element is in the last position
B) When the target element is in the middle position
C) When the array is unsorted
D) When the target element is not found
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which search algorithm works well for small and unsorted datasets?
A) Linear Search
B) Binary Search
C) Both A and B
D) None of the above
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If an array has 1000 elements, how many elements does linear search check in the worst case?
A) 10
B) 100
C) 500
D) 1000
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which search algorithm can work efficiently on linked lists?
A) Binary Search
B) Linear Search
C) Both A and B
D) None of the above
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation is performed at the top of a stack?
A) Push
B) Pop
C) Both A and B
D) Peek
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Stacks follow which order of element access?
A) FIFO
B) LIFO
C) Random
D) Circular
Create a free account and access millions of resources
Similar Resources on Wayground
36 questions
AP CS A unit 1

Quiz
•
11th Grade - University
35 questions
UH BERPIKIR KOMPUTASIONAL 2024

Quiz
•
University
45 questions
Arrays and Linked Lists Quiz

Quiz
•
University
35 questions
end of year Quiz

Quiz
•
12th Grade - University
45 questions
TECHNICAL QUIZ

Quiz
•
University
41 questions
Ujian Informatika Kelas VIII

Quiz
•
8th Grade - University
35 questions
IT-OOPRGO21 PRELIM

Quiz
•
University
40 questions
Elements of a C# program

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University