my code exam study

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:29 PM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

14 Terms

1
New cards

Expected user

Someone interested in birds, such as a student or bird watcher.

2
New cards

Program purpose

To help users find birds by primary color and view their names, colors, and images.

3
New cards

Design meets user needs

The dropdown lets users quickly choose a color and see matching birds.

4
New cards

First iteration statement

for (var i = 0; i < birdNames.length; i++)

5
New cards

Loop execution count

Once for every item in birdNames. If there are 100 birds, it runs 100 times.

6
New cards

Infinite loop cause

Removing i++ or changing the loop so i never increases.

7
New cards

Why infinite loop happens

The condition i < birdNames.length would stay true forever.

8
New cards

Runtime error

An error that happens while the program is running.

9
New cards

Runtime error example

Changing "birdImage" to a nonexistent element ID like "wrongImageID".

10
New cards

Why that causes runtime error

The program tries to update a screen element that does not exist.

11
New cards

List used to count colors

birdColors or filteredColors.

12
New cards

isEqual purpose

Returns true if two values are equal; otherwise returns false.

13
New cards

Counting algorithm

Set count to 0, loop through the list, use isEqual, and add 1 when it returns true.

14
New cards

Exam strategy

Read all questions first and answer the ones you know best first.