No student devices needed. Know more
17 questions
What is the output?
more than 7
more than 23
spam
7
What is syntax?
a catch-all for every other situation besides true.
pieces of code that direct the program to run in different ways depending on what else is happening.
a set of rules for how a language is written.
English, Chinese, or Spanish.
Pieces of code that only run "under certain conditions":
conditional statements
control flow statments
syntax
variables
This is a catch-all for every other situation besides the one where the condition is true.
then
do
else
if
Which symbol means "not equal to"?
==
<=
>=
!=
If you want to test more than one condition (chained condition), what do you use after if statement?
elif
else
ifif
else if
Data type that can only be true or false
int
string
boolean
float
Which character must be at the end of the line for if?
:
;
.
{
1. Which of the functions is called when z = 12?
sayHi()
sayHello()
sayGoodbye()
Which of the following is true about if-elif-else statements?
After using if, an elif can be added as an additional test
The bodies of multiple elif’s can run
You can use an elif without an if
Code in an else body runs if all the tests before it were True
What shape will be in front if x = 5?
r
c
s
What shape will be in front if x = 6?
r
c
s
Explore all questions with a free account