
BJC U5L1d2 Traversing a List
Presentation
•
Computers
•
10th Grade - University
•
Hard
TSEE LEE
Used 13+ times
FREE Resource
3 Slides • 16 Questions
1
Open Ended
Think, don't talk. Answer doesn't have to be long.
2
You'll answer on the next slide
3
Fill in the Blanks
Type answer...
4
Which works, which doesn't? You'll answer on the next slide.
5
Multiple Choice
Don't discuss yet!
Which of those procedures work as expected for any lists?
A
B
Both
Neither
6
Multiple Choice
When will "Error. Invalid entry." be displayed?
When a>b is true
When a>b is false
Always
Never
7
Multiple Choice
Write it out!
What is the displayed on the stage?
[-1, 0, 1, 4]
[-1, 2, 4, 5]
[-1, 1, 3, 4]
None of the above
8
numList: [-1, 0, 1, 2, 3, 4, 5]
delete item 2: [-1, 1, 2, 3, 4, 5]
del item 3: [-1, 1, 3, 4, 5]
del item 5: [-1, 1, 3, 4]
Trace the code
Think, don't say:
How do we fix this?
Moral of the story?
9
Multiple Choice
A computer model is ...
a premier computer entered by a manufacturer in a competition
can simulate what might happen in a situation
requires a hypothesis
a simulation
10
Multiple Choice
A simulation is ...
a model
a hypothesis
when you exercise a model using values for input parameters
an algorithm with a hypothesis
11
Multiple Choice
A hypothesis is ...
a type of an algorithm
the solution to a model
tentative explanation to be tested by further investigation
the results of a simulation
12
Multiple Choice
A binary search ...
is faster than a linear search
works less efficiently with an unsorted list
accesses all the items in a list
requires a sorted list
13
Multiple Choice
Assume code works as intended (uses list library in Snap). What will be the value of list3 after this script is executed?
1 1 2 2 3 3 4 4
1 2 3 4
4 4 3 3 2 2 1 1
4 3 2 1
14
Multiple Choice
The "flip a coin" procedure demonstrates ...
hypothesis
linear search
binary search
abstraction
15
Multiple Choice
The instruction "change (head_count) by (flip a coin()) can be replaced by which of the following and still produce the same result?
set (head_count) to (head_count + flip a coin)
set (head_count) to (flip a coin())
set (head_count) to (head_count + 1)
set (head_count) to (1)
16
Multiple Choice
What is x?
numbers[x] <-- 3
(left arrow)
an element of the list
may be any primitive data type supported by the programming language
must be a whole number
is set to 3
17
Multiple Choice
A binary search is the fastest when ...
You only need to search the list a single time
The list in question is very short
You perform lots of searches for different values, with no duplicates in the list
You perform lots of searches for different values, some of which repeat in the list
18
Multiple Choice
A non-traditional data source used when monitoring a disease spread is ...
the # of people infected by disease as reported by doctors
the # of prescriptions for disease reported by pharmacists
the # of zombies reported in the area
the # of people googling the disease in a given area
19
Multiple Choice
Should you end English sentences in a preposition like "with" or "to"?
EX: Which table is "dept_name" a field in?
Yes
No
Avoid in formal writing because it's technically grammatically wrong
Avoid in formal writing to avoid offending people who don't know grammar
Think, don't talk. Answer doesn't have to be long.
Show answer
Auto Play
Slide 1 / 19
OPEN ENDED
Similar Resources on Wayground
13 questions
Senderos 2 Lección 1 Verbos similares a GUSTAR
Presentation
•
10th - 12th Grade
15 questions
TSIA Prep - Probability
Presentation
•
10th - 12th Grade
13 questions
Wish/If only
Presentation
•
11th Grade - University
12 questions
80 ans JC
Presentation
•
KG
15 questions
Python
Presentation
•
10th - 12th Grade
11 questions
La libertad 2. El existencialismo
Presentation
•
KG
14 questions
Distance and Displacement
Presentation
•
10th - 12th Grade
15 questions
Intro to Waves Lesson
Presentation
•
10th - 12th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade