CMN 152V REVIEW TIPS QUESTIONS AND
ANSWERS SURE A+
✔✔parentheses — try itIn place of the ... below, enter the number of the statement you
think equals 4 * 8 + 1
(4 * 8) + 1
4 * (8 + 1) - ✔✔(4 * 8) + 1
✔✔notebook_blocks — try itWorking in this notebook, you may sometimes get an error
running this code. Which of the reasons below is not the reason why?
print( math.pi*3)
The code in this line is written incorrectly.
You didn't import the information that python needs to understand this code.
Python doesn't immediately recognize math.
You didn't run all of the code blocks above this code block. - ✔✔The code in this line is
written incorrectly.
✔✔import_syntax1 — try itEnter into check() the number of the statement that will
correctly import the math module
1. math import
2. import math
3. i m p o r t m a t h - ✔✔2
✔✔import_syntax2 — try itEnter into check() the number of the code that will give the
sin of pi over two
1. math.sine( math.pi/2 )
2. math.sin( math.pi / 2 )
3. sine( pi/2 ) - ✔✔2
✔✔scientific_notation — try itEnter into check() the number closest to -
1.2246467991473532e-16
, -1224646799147353.2
-1.22
0
1.22
1.2246467991473532 - ✔✔0
✔✔code_blocks_output1 — try itEnter into check() what numbers a user would see as
the output of this code block
6+3
10
5+6
9
10
11
9, 10
9, 11
10, 11
9, 10, 11 - ✔✔11
✔✔code_blocks_output2 — try itEnter into check() what numbers a user would see as
the output of this code block
6+3
10
print(5+6)
9
10
11
9, 10
9, 11
10, 11
9, 10, 11 - ✔✔11
✔✔code_blocks_output3 — try it*Enter into check() what numbers a user would see as
the output of this
print(6+3)
print(10)
print(5+6)
9
10
11
9, 10
9, 11
10, 11
ANSWERS SURE A+
✔✔parentheses — try itIn place of the ... below, enter the number of the statement you
think equals 4 * 8 + 1
(4 * 8) + 1
4 * (8 + 1) - ✔✔(4 * 8) + 1
✔✔notebook_blocks — try itWorking in this notebook, you may sometimes get an error
running this code. Which of the reasons below is not the reason why?
print( math.pi*3)
The code in this line is written incorrectly.
You didn't import the information that python needs to understand this code.
Python doesn't immediately recognize math.
You didn't run all of the code blocks above this code block. - ✔✔The code in this line is
written incorrectly.
✔✔import_syntax1 — try itEnter into check() the number of the statement that will
correctly import the math module
1. math import
2. import math
3. i m p o r t m a t h - ✔✔2
✔✔import_syntax2 — try itEnter into check() the number of the code that will give the
sin of pi over two
1. math.sine( math.pi/2 )
2. math.sin( math.pi / 2 )
3. sine( pi/2 ) - ✔✔2
✔✔scientific_notation — try itEnter into check() the number closest to -
1.2246467991473532e-16
, -1224646799147353.2
-1.22
0
1.22
1.2246467991473532 - ✔✔0
✔✔code_blocks_output1 — try itEnter into check() what numbers a user would see as
the output of this code block
6+3
10
5+6
9
10
11
9, 10
9, 11
10, 11
9, 10, 11 - ✔✔11
✔✔code_blocks_output2 — try itEnter into check() what numbers a user would see as
the output of this code block
6+3
10
print(5+6)
9
10
11
9, 10
9, 11
10, 11
9, 10, 11 - ✔✔11
✔✔code_blocks_output3 — try it*Enter into check() what numbers a user would see as
the output of this
print(6+3)
print(10)
print(5+6)
9
10
11
9, 10
9, 11
10, 11