1/13
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
Expected user
Someone interested in birds, such as a student or bird watcher.
Program purpose
To help users find birds by primary color and view their names, colors, and images.
Design meets user needs
The dropdown lets users quickly choose a color and see matching birds.
First iteration statement
for (var i = 0; i < birdNames.length; i++)
Loop execution count
Once for every item in birdNames. If there are 100 birds, it runs 100 times.
Infinite loop cause
Removing i++ or changing the loop so i never increases.
Why infinite loop happens
The condition i < birdNames.length would stay true forever.
Runtime error
An error that happens while the program is running.
Runtime error example
Changing "birdImage" to a nonexistent element ID like "wrongImageID".
Why that causes runtime error
The program tries to update a screen element that does not exist.
List used to count colors
birdColors or filteredColors.
isEqual purpose
Returns true if two values are equal; otherwise returns false.
Counting algorithm
Set count to 0, loop through the list, use isEqual, and add 1 when it returns true.
Exam strategy
Read all questions first and answer the ones you know best first.