NEW
Font size
WorksheetsDeltaMath & Python 325
Total questions: 23
Worksheet time: 15mins
What is printed by this DeltaMath pseudocode?
1 5 2
1 t a
1 2 2
1 3 2
1 5 3
Used to create exponents
**
"""
%
#
returns the remainder from division
modulo
exponments
boolean
variables
102 = 100
Which of the following is used in Python to calculate ten squared?
10 ** 2
10 * 2
10 % 2
10 ** 10
What will this code output?
var x = 8;
var y = 3
x = x-y;
println(x);
8
3
5
2
What will this code output?
var x = 6;
var y = 2;
x = x+y;
println(x);
8
2
6
12
Which type of operator only returns the values true and false?
Comparison
Arithmetic
Procedural
Assignment
What would print (10 + 16) produce?
10
16
24
26
What will this Python code output?
1 8 4
3 4 1
1 4 3
a, b, c
8 4 1
What will this Python code output?
a = 31 % 5
print(a)
a
6.2
6
5
1
How do you insert COMMENTS in Python code?
// This is a comment
# This is a comment
/* This is a comment */
' This is a comment
What will this JavaScript code output?
d f
a b c d e f
c e f
b f
d e f
The "If" Statement is an example of a _________________
Correctional Statement
Competitive Statement
Conditional Statement
Inquisitive Statement
2 + 2 == 4
What will be the value of after this set of conditional statements?
7
9
10
4
What will be the output of this code? (hint: the == operator can be used on strings to see if they have the same value, meaning the same exact sequence of characters)
same name
different names
Follow up: what is the output of this code?
a
b
c
An if statement (i.e. if (condition) { ... }) will only execute if...
The condition is true
The condition is false
It always executes
It never executes
What will be the output after the following statements?
0
1
2
15
error
What will be the output after the following statements?
15
yes
equal
no
error
What will be the output after the following statements?
false
true
not false
not true
error
What will be the output after the following statements?
true
not false
false
not true
error
