Quiz #8: Looping

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

1/4

flashcard set

Earn XP

Description and Tags

CS 001: Module 8

Last updated 3:07 AM on 5/15/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

5 Terms

1
New cards

Three steps must occur in every loop

–Initialize the loop control variable

–Compare the variable to some value

–Alter the variable that controls the loop (T/F)

True

2
New cards

Nested loops maintain two individual loop control variables (T/F)

True

3
New cards

Common mistakes made by programmers

–Neglecting to initialize the loop control variable

–Neglecting to alter the loop control variable

–Using the wrong comparison with the loop control variable

–Including statements inside the loop that belong outside the loop (T/F)

True

4
New cards

A for loop is used when the number of iterations is known. (T/F)

True

5
New cards

In a do-while loop, the loop body executes at least one time because the loop control variable is not tested until after the first iteration. (T/F)

True

Explore top notes

Explore top flashcards

flashcards
Antidiabetic Drugs
52
Updated 1221d ago
0.0(0)
flashcards
Test 1
123
Updated 1157d ago
0.0(0)
flashcards
ANAPHY
104
Updated 258d ago
0.0(0)
flashcards
religion final
35
Updated 1035d ago
0.0(0)
flashcards
EXAM 1- REIDY
32
Updated 364d ago
0.0(0)
flashcards
Module 6.1
50
Updated 664d ago
0.0(0)
flashcards
AP Human Geography Unit 4.1-4.4
28
Updated 818d ago
0.0(0)
flashcards
Antidiabetic Drugs
52
Updated 1221d ago
0.0(0)
flashcards
Test 1
123
Updated 1157d ago
0.0(0)
flashcards
ANAPHY
104
Updated 258d ago
0.0(0)
flashcards
religion final
35
Updated 1035d ago
0.0(0)
flashcards
EXAM 1- REIDY
32
Updated 364d ago
0.0(0)
flashcards
Module 6.1
50
Updated 664d ago
0.0(0)
flashcards
AP Human Geography Unit 4.1-4.4
28
Updated 818d ago
0.0(0)