wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MTA Review #2

Total questions: 10

Worksheet time: 10mins

Name
Class
Date
1.

In python, which character(s) should be placed before the text in a line of code to make that line of code a comment?

a)

//

b)

#

c)

'

d)

/*

2.

Which lines of code contain comments?

a)

1 and 6

b)

8, 10, and 12

c)

7, 9, and 11

d)

16 and 17

3.

Which symbol represents multiplication in arithmetic operators?

a)

+

b)

x

c)

*

d)

/

4.

Which is the correct order for the order of operations?

a)

Exponents, Parentheses, Addition, Subtraction, Multiplication, Division

b)

Addition, Subtraction, Exponents, Parentheses, Multiplication, Division

c)

Parentheses, Exponents, Addition, Subtraction, Multiplication, Division

d)

Parentheses, Exponents, Multiplication, Division, Addition, Subtraction,

5.

Which first name variable is an example of camel casing?

a)

first Name

b)

firstname

c)

firstName

d)

first.name

6.

Which variable names reflect an improper variable name declaration? Choose two answers.

a)

last-name

b)

last_Name

c)

lastName

d)

last Name

7.

Which type of variable uses decimals?

a)

Floating

b)

String

c)

Boolean

d)

Integer

8.

Which two functions can be used with the math module?

a)

Ceiling

b)

Con

c)

Pro

d)

Floor

9.

What is the modulus of the equation, 19/4?

a)

3

b)

4

c)

1

d)

7

10.

Which one is the appropriate function to the missing code area to convert the price variable to a value of 19.

a)

int

b)

ceil

c)

round

d)

floor