stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Code Combat 2nd Quiz Flashcards | StudBud
Explore
/
Code Combat 2nd Quiz
Code Combat 2nd Quiz
8 terms
·
StudBud Administration
·
240 plays
Imported from external platform
Flashcards
8 cards
F
Practice quiz
P
Host live
L
Questions
8
Answers
1
What is syntax?
When your program stops running because of an error.
The step-by-step instructions a computer follows to complete a task.
When you find a mistake and fix it.
The rules about spelling, punctuation, indentation, etc... in coding
2
What does a while true loop mean?
the loop will repeat two times
the loop will repeat forever
the loop will repeat one time
3
What will this code do?
the hero will move right and then move up, and repeat infinitely
the hero will move right and then move up only if conditions are true
the hero will move right and then move up one time
4
How can you add a comment in Python?
//
*
\\
#
5
What is a while loop?
Causes an action to repeat one time
a set of actions repeat while certain conditions are true
a way to represent text in your code using " "
Used to store information in your code
6
What will this code do?
The hero will close the door and then move right
Hero will attack the door 10 times and then move right
The hero will attack door and then move right
As long as door is closed, hero will attack the door repeatedly, then move
7
An infinite loop will repeat forever
False
True
8
A control structure lets you change the programs flow
False
True