Codehs if while for

Flashcard
•
Other
•
9th - 12th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

28 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What is the benefit of using the break command as in the program below?
Back
The program will break out of the loop as soon as the user enters the magic_number.
2.
FLASHCARD QUESTION
Front
Which is not a valid value for a Boolean? Options: true, false, yes, None of these are correct.
Back
None of these are correct.
3.
FLASHCARD QUESTION
Front
What is the term for the kind of loop never ends?
Back
infinite loop
4.
FLASHCARD QUESTION
Front
Which statement quits a loop? Options: break;, if(num == SENTINEL) break;, if(num == SENTINEL), while(true)
Back
break;
5.
FLASHCARD QUESTION
Front
What is code that resolves to a boolean and is used to control an if or while statement?
Back
condition
6.
FLASHCARD QUESTION
Front
If a loop exists inside the body of another loop
Back
Nested Loop
7.
FLASHCARD QUESTION
Front
Which of the following for loops would print the following numbers?
0
1
2
3
4
5
Options:
for i in range(5): print i,
for i in range(1, 5, 1):
print i,
for i in range(6): print i,
for i in range(0, 5, 1):
print i
Back
for i in range(6): print i
Create a free account and access millions of resources
Similar Resources on Wayground
23 questions
CSP Unit 6 Review

Flashcard
•
9th - 12th Grade
20 questions
CodeHS Python Unit 3 Flashcard Review

Flashcard
•
9th - 12th Grade
25 questions
MW CodeHS Basic Java Review for test

Flashcard
•
8th - 12th Grade
22 questions
Review JavaScript

Flashcard
•
11th Grade - University
28 questions
Units 1 to 6: Mock Exam Final - AP Computer Science A

Flashcard
•
9th - 12th Grade
20 questions
Art S2 Ch 9

Flashcard
•
9th - 12th Grade
22 questions
Fingerprint Flashcard

Flashcard
•
11th Grade
21 questions
Java Loops

Flashcard
•
KG
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Other
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
24 questions
Scientific method and variables review

Quiz
•
9th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
20 questions
Biomolecules

Quiz
•
9th Grade