No student devices needed. Know more
20 questions
x is equal to 15; y is equal to 15
x is equal to 5; y is equal to 10
x is equal to 15; y is equal to 10
x is equal to "x + 5"; y is equal to "x"
x is equal to 10, 15; y is equal to 5, 10
All done.
Inside the If.
Inside the if.
All done.
Inside the else.
All done.
Inside the if.
Inside the else.
All done.
3
6
10
18
It will be different each time you run it
makes a and b equal to each other
this code doesn't do anything
rearranges the variables a, b, and tmp.
swaps the values of a and b
This program causes an error
y + z + " and " + x
sentence
BoysHello Girls
Hello Boys and Girls
Hello Girls and Boys
Inside first if
Inside second if
Inside first if
Inside second if
Nothing will be printed
It will be different each time
5
10
55
Nothing is printed
this script would cause an error
9
21
81
nothing is printed
this script would cause an error
Returns the largest of three numbers
Set all three inputs to a temporary value
Return the smallest of the three numbers
Randomly returns on of the three numbers
This code will cause an error
Under 40
And under 21
And contains a 3
Under 40
And contains a 3
Under 40
And under 21
And contains a 3
The word is too short!
The word is too long!
The word is just right!
The word is still too short
The word is just right!
The word is still too short
apple
apple
apple
orange
orange
orange
apple
orange
apple
orange
apple
orange
apple
orange
Nothing will be printed
It will be different each time you run it
0
1
5
10
"here" will displayed over and over until the code is stopped manually
in func1
in func2
func1
func2
in func1
in func2
in func1
DISPLAY in func1
DISPLAY in func2
Nothing is printed
in func3
in func3
in func1
in func3
in func1
in func3
in func3 will be displayed over and over until the code is stopped manually
in func3
in func1
func3
func1
x is equal to 8; y is equal to 8; z is equal to 12
x is equal to 8; y is equal to 4; z is equal to 84
x is equal to 8; y is equal to 8; z is equal to 16
x is equal to 8; y is equal to 8; z is equal to "x + y"
x is equal to 8; y is equal to 4, 8; z is equal to 12
displays true if the number 100 is in the list
displays true if the first number in the list is 100
displays true if the last number in the list is 100
displays true if there are 100 numbers in the list
displays true or false 100 times
x is equal to "yes"; y is equal to "maybe"; z is equal to "no"
x is equal to "no"; y is equal to "maybe"; z is equal to "yes"
x is equal to "no"; y is equal to "maybe"; z is equal to "x"
x is equal to "yes, no"; y is equal to "yes, maybe"; z is equal to "yes, no"
x is equal to "no"; y is equal to "maybe"; z is equal to "no"
Answer
5
4
3
2
1
0
5
3
1
3
1
-1
3
1
3
Makes sure the value of x is not equal to 10
Makes sure the value of x is less than 5
Makes sure the value of x is between 10 and 5
It always sets x equal to 5
This code will cause an error
Explore all questions with a free account