Finally 1
Quiz
•
Chemistry
•
12th Grade
•
Practice Problem
•
Easy
Clifford Buckles
Used 4+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A large number of genetic codes are stored as binary values in a list. Which one of the following conditions must be true in order for a researcher to obtain the correct result when using a binary search algorithm to determine if a given genetic code is in the list?
The genetic codes must be converted from binary to decimal numbers.
The list must be sorted based on the genetic code values.
The number of genetic code values in the list must be a power of 2.
The number of genetic code values in the list must be even.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The procedure BinarySearch (numList, target) correctly implements a binary search algorithm on the list of numbers numList. The procedure returns an index where target occurs in numList, or -1 if target does not occur in numList. Which of the following conditions must be met in order for the procedure to work as intended?
Responses
The length of numList must be even.
The list numList must not contain any duplicate values.
The values in numList must be in sorted order.
The value of target must not be equal to -1.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A programmer is deciding between using a linear or binary search to find a target value in a sorted list. Which of the following is true?
Responses
In all cases, a binary search of a sorted list requires fewer comparisons than a linear search.
Generally, the advantage of using a binary search over a linear search increases as the size of the list increases.
A linear search will generally run faster than a binary search because a linear search requires fewer lines of code to implement.
Using a linear search is preferable to using a binary search if there is a chance that the target may not be found in the list.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The list listOne is a sorted list of numbers that contains 700 elements. The list listTwo is a sorted list of numbers that contains 900 elements. Let x represent the maximum number of list elements that will need to be examined when performing a binary search for a value in listOne, and let y represent the maximum number of list elements that will need to be examined when performing a binary search for a value in listTwo. Which of the following statements about x and y is true?
The value of x is approximately equal to the value of y.
The value of x is approximately 10 less than the value of y.
The value of x is approximately 13 less than the value of y.
The value of x is approximately 200 less than the value of y.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A sorted list of numbers contains 500 elements. Which of the following is closest to the maximum number of list elements that will be examined when performing a binary search for a value in the list?
10
50
250
500
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following program, which is intended to display the number of times a number target appears in a list.
Which of the following best describes the behavior of the program?
The program correctly displays the number of times target appears in the list.
The program does not work as intended when target does not appear in the list.
The program does not work as intended when target appears in the list more than once.
The program does not work as intended when target appears as the last element of the list.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
For which of the following lists can a binary search be used to search for an item in the list?
["blue", "green", "jade", "mauve", "pink"]
[5, 5, 5, 5, 6, 7, 8, 8, 8]
[10, 5, 3, 2, -4, -8, -9, -12]
I only
III only
I and III only
I, II, and III
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
Dimensional Analysis
Quiz
•
9th - 12th Grade
11 questions
OXIDES OF CARBON
Quiz
•
10th - 12th Grade
10 questions
P BLOCK ELEMENTS
Quiz
•
12th Grade
15 questions
Acids, alkalis and neutralisation
Quiz
•
12th Grade
13 questions
2.1 and 2.2 quiz
Quiz
•
7th - 12th Grade
15 questions
Solid States
Quiz
•
12th Grade
15 questions
Nitrogen and Sulphur
Quiz
•
11th - 12th Grade
10 questions
Periodic Table
Quiz
•
12th 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
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
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Chemistry
20 questions
Types of Chemical Reactions
Quiz
•
9th - 12th Grade
20 questions
Energy Transformations
Quiz
•
9th - 12th Grade
24 questions
Identifying Types of Chemical Reactions
Quiz
•
10th - 12th Grade
20 questions
Atomic Structure
Quiz
•
10th - 12th Grade
24 questions
Unit 4 Test Practice: Bonding and Properties
Quiz
•
10th - 12th Grade
21 questions
Introduction to Moles
Lesson
•
9th - 12th Grade
24 questions
ERHS Chem - Chapter 7 Chemical Reactions
Quiz
•
10th - 12th Grade
13 questions
Balanced Eqns & Cons of Mass
Quiz
•
9th - 12th Grade
