
DSA + System Design 8

Quiz
•
Computers
•
Professional Development
•
Medium
Puneet Kansal
Used 1+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In which of the following scenarios is a linear search preferable?
When the list is sorted.
When the list is unsorted or small.
When there is a need for constant time complexity.
When searching in a balanced binary tree.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following statements is true about linear search?
Linear search can only be used with arrays
Linear search is more space efficient than binary search
Linear search can be used on both sorted and unsorted lists
Linear search requires the list to be unsorted
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If you have a list of 100 elements, how many minimum comparisons will linear search make to find largest element?
1
10
50
100
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Linear search can be applied to which of the following data types?
Arrays
Linked lists
Strings
All of the above
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the time complexity of binary search in the worst-case scenario?
O(n)
O(log n)
O(n log n)
O(1)
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In which type of list can binary search be applied?
Unsorted list
Sorted list
Linked list
All of the above
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
If you have a list of 1024 elements, how many comparisons will binary search make in the worst-case scenario?
10
100
512
1024
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
DBMS

Quiz
•
Professional Development
14 questions
AES: Coding Fundamentals Lessons 1 and 2

Quiz
•
7th Grade - Professio...
10 questions
SENZ AIOT SAVANTS - JV & JS

Quiz
•
Professional Development
10 questions
Mid2 Lab Internal PPS

Quiz
•
Professional Development
10 questions
IT ENGLISH: Research Project Topics - Algorithms

Quiz
•
Professional Development
10 questions
IT ENGLISH: Technical Terminology - Abstraction

Quiz
•
Professional Development
10 questions
MCQ of Computer

Quiz
•
Professional Development
10 questions
DECI - Week 5 - round

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development