G10 CS Linear Search

Quiz
•
Computers
•
12th Grade
•
Medium

Fritz Bansag
Used 7+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In which of the following cases, linear search algorithm is used?
To search an element in ORDERED list
To search an element in a list of few elements.
Well suited for almost type of list
To search in an unordered list consisting of few elements
None of the choices
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the worst case scenario of search array students?
(a) All searches take the same time
(b) Item = Henry
(c) Item = Annabelle
(d) B or C
(e) None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the best case scenario of search array students?
(a) item = Andrew
(b) Item = George
(c) Item = Annabelle
(d) All searched take the same time
(e) None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A linear search takes 2 inputs: one is a ordered list and another one is unsorted list. Which of the two will be sorted faster?
Sorted List
Unsorted List
Depends on the item of the position in the list
Not applicable
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Under which of the following conditions is a linear search complete?
(a) Item is found
(b) Item is not present in the list
(c) a or b
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is the code inside while loop (position = position + 1) executed if item = ‘G’?
1
2
3
4
8
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How many times is the code inside while loop (position = position + 1) executed if item = ‘K’?
5
6
7
4
8
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
CSP - Vocab Quiz JAN2023

Quiz
•
9th - 12th Grade
10 questions
Mr Bulsara

Quiz
•
12th Grade
15 questions
AP CSP Algorithms & Programming (College Board Style)

Quiz
•
9th - 12th Grade
15 questions
01 Searching Algorithms

Quiz
•
9th - 12th Grade
15 questions
Algorithms

Quiz
•
3rd - 12th Grade
15 questions
Paper 2 Revision

Quiz
•
10th Grade - University
10 questions
Sorting and searching algorithms

Quiz
•
12th Grade
11 questions
42. Algorithm - Binary Search Quiz

Quiz
•
9th - 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