"Searching " in Python

Quiz
•
Computers
•
12th Grade
•
Hard
Singiza Prince
Used 2+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is Big-O-Notation
A notation used to express the size of oversized pizzas in Python
A way to describe the worst-case scenario of an algorithm's runtime or space complexity
A symbol used in Python for exponentiation operations
A special font used by Python programmers for writing code comments
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What are the types of searching in Python?
Circular and Spiral
Zigzag and Diagonal
Linear and Binary
Random and Chaotic
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
What is a "Searching" Algorithm in Python?
A method for finding lost keys in a Python dictionary
A program that searches for hidden Easter eggs in Python code
A technique for searching the internet using Python web crawlers
An algorithm for looking up information in a list or other data structure
4.
MULTIPLE SELECT QUESTION
30 sec • 2 pts
What are some real world applications of "Searching"
Sorting through a messy closet to find a missing sock
Searching for relevant information in a database or file system
Looking for relevant information on websites and social media platforms
Hunting for buried treasure using Python metal detectors
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is an advantage of binary search over linear search?
Binary search requires less memory compared to linear search.
Binary search is easier to implement
Binary search requires less memory
Linear is better
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Using binary Search , at which position/index is Bob ?
[ Alice , Felix , Jasmin , kevin , Bob ]
4
5
1
2
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If the list of items in the list is not sorted, binary search still can be used to find a specific item.
True
False
8.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
If a linear search is conducted on an unsorted array / List of integers [5, 8, 2, 10, 3, 6, 1, 9, 4, 7] and the search key is 6, what will be the output?
5
6
1
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a binary search algorithm applied to the sorted list of names ['patrick ', 'Bob', 'Charlie', 'David', 'Peter', 'Olivia'], what will be the output if the search key is "Peter"?
(Hint : Ascii Code)
0
5
4
1
6
Similar Resources on Wayground
8 questions
2.3.1(f) Binary Search

Quiz
•
12th Grade
10 questions
Data Structures & Algorithms

Quiz
•
12th Grade
11 questions
Understanding Linear Search Algorithm

Quiz
•
12th Grade
10 questions
Algorithms

Quiz
•
9th - 12th Grade
10 questions
ASK Tingkatan 3 : Algoritma

Quiz
•
12th Grade
11 questions
Understanding Binary Search Algorithm

Quiz
•
12th Grade
11 questions
Computational Thinking

Quiz
•
12th Grade
13 questions
Algorithms Quiz

Quiz
•
12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Computers
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
6 questions
Maier - AMDM - Unit 1 - Quiz 1 - Estimation

Quiz
•
12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade
21 questions
9th Grade English Diagnostic Quiz

Quiz
•
9th - 12th Grade
7 questions
Characteristics of Life

Interactive video
•
11th Grade - University