
4_Arrays — Linear Search
Authored by Pratima SEEWOONAUTH
Computers
10th - 11th Grade
Used 62+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is true about searching an array?
Linear search is the only method used to search an array.
The built-in search() function can be used to search an array.
The built-in find() function can be used to search an array.
There are no specific built-in functions to search for an array.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which loop is used to move through the array elements in a linear search?
"for" loop
"while" loop
"repeat until" loop
"do" loop
3.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
To search an element in a given array, linear search will proceed step by step in a ____________ order, starting from the first element in the given array.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In every search iteration, the target value is compared with the current value of the array by using the following operator:
=
==
<>
>=
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following piece of code (assume that the code is indented properly):
num = arr.array('i', [1, 3, 5, 7, 9])
for i in range(len(num)):
if num[i] == 5:
print(i)
2
3
5
returns an error
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
What is a program slides(6:16)
Quiz
•
8th - 12th Grade
10 questions
𝐂𝐡𝐚𝐩𝐭𝐞𝐫 𝟐—The Blueprints for Modern Computers
Quiz
•
10th Grade
10 questions
Java: repetition control structure for & while
Quiz
•
10th - 12th Grade
10 questions
Lesson 1 Introduction to Database System
Quiz
•
10th Grade
10 questions
Review
Quiz
•
9th - 12th Grade
10 questions
python quiz
Quiz
•
6th Grade - Professio...
10 questions
Scratch
Quiz
•
KG - Professional Dev...
10 questions
Network Security
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade