Font size
WorksheetsMTA Review #2
Total questions: 10
Worksheet time: 10mins
In python, which character(s) should be placed before the text in a line of code to make that line of code a comment?
//
#
'
/*
Which lines of code contain comments?
1 and 6
8, 10, and 12
7, 9, and 11
16 and 17
Which symbol represents multiplication in arithmetic operators?
+
x
*
/
Which is the correct order for the order of operations?
Exponents, Parentheses, Addition, Subtraction, Multiplication, Division
Addition, Subtraction, Exponents, Parentheses, Multiplication, Division
Parentheses, Exponents, Addition, Subtraction, Multiplication, Division
Parentheses, Exponents, Multiplication, Division, Addition, Subtraction,
Which first name variable is an example of camel casing?
first Name
firstname
firstName
first.name
Which variable names reflect an improper variable name declaration? Choose two answers.
last-name
last_Name
lastName
last Name
Which type of variable uses decimals?
Floating
String
Boolean
Integer
Which two functions can be used with the math module?
Ceiling
Con
Pro
Floor
What is the modulus of the equation, 19/4?
3
4
1
7
Which one is the appropriate function to the missing code area to convert the price variable to a value of 19.
int
ceil
round
floor
