what is the time complexity of binary search in sorted array

Flashcardzle

Flashcard
•
Other
•
University
•
Hard
Quizizz Content
FREE Resource
Student preview

25 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Back
O(logn)
2.
FLASHCARD QUESTION
Front
Which of the following is a volatile memory? Hard Disk, ROM, RAM, SSD
Back
RAM
3.
FLASHCARD QUESTION
Front
Which data structure uses the LIFO (Last In, First Out) principle? Options: Queue, Stack, Array, Linked List
Back
Stack
4.
FLASHCARD QUESTION
Front
A train 300 meters long is running at a speed of 90 km/hr. How long will it take to cross a pole?
Back
12s
5.
FLASHCARD QUESTION
Front
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main() {
int x = 5;
cout << x++ * ++x;
return 0;
}
Back
30
6.
FLASHCARD QUESTION
Front
A shopkeeper sells an article at a 20% profit. If the cost price is ₹500, what is the selling price?
Back
₹600
7.
FLASHCARD QUESTION
Front
Which sorting algorithm has the worst-case time complexity of O(n^2) ?
Back
Bubble Sort
Create a free account and access millions of resources
Similar Resources on Quizizz
23 questions
Beginning C Programming

Flashcard
•
University
18 questions
Fundamentals of data Structures & Linked list

Flashcard
•
University
18 questions
Basic C++ Programming Questions

Flashcard
•
University
25 questions
Debugging Round 1

Flashcard
•
University
20 questions
Ethical Hacking

Flashcard
•
University
21 questions
Java Loops

Flashcard
•
KG
20 questions
Sets Review

Flashcard
•
12th Grade - University
15 questions
C++ Programming wk 13

Flashcard
•
Professional Development
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