Skip to content
free
K
1
2
practice
Home
Math
English
Science
Social Studies
Contact
Language
English
Español
Sign In
/
High School Electives
/
Computer Science
/
Linear Search
Grade Level
Computer Science
HSCS.157 Linear Search
0%
Skill Level
🔴 Hard
00:00
Progress to Next Level
25% to Medium
Easy
Medium
Hard
Mastery
100%
A function returns the number of comparisons it made when it finds the target. For values [11, 13, 17, 19] and target 19, which trace is correct?
A
Compare 11, 13, 17, and 19; return 4.
B
Compare 11, 13, 17, and 19; return index 3.
C
Compare 11, 13, and 17; return -1.
D
Compare 19 only; return 1.
Submit Answer