Instructions are the same as previous exam. I suggest you review chapters 3, 4, & 5 from our book, and reading quizzes 8-16. Our book, homework, and all in-class activities give you many examples that you can work through to practice.
Topics include:
find
, replace
, ord
, chr
, str
, formatting) and immutabilityinput
functionappend
, insert
, pop
, sort
, reverse
, index
, count
, remove
, list comprehension) and mutabilitykeys
, values
, items
, get
, membership, index operator, del
)items
)min
and max
functions, Pearson correlation coefficient (the range and significance of value)+, -, *, /, //, %, **
<, <=, >, >=, ==, !=
and, or, not
print
turtle
module: how to import, create turtle, use functions on turtle forward
, goto
, right
/left
, position
, dot
, penup
, pendown
math
module: how to import, use functions sqrt
, use constant pi
.random
module: how to import, use function random
for
loops, 3 ways to call range
, loop variable, accumulator patternif
, elif
, else
), nested if statementsI suggest you review chapters 1 & 2 from our book and all reading quizzes. Our book, homework, and all in-class activities give you many examples that you can work through to practice.
The exam will be conducted during class. It is closed book, no calculators, no computer, no electronics. You will have the duration of class time to finish the exam. It must be completed individually.
You may bring a single letter-sized sheet of handwritten notes. Write your name at the top – I will collect it. I suggest you write sparingly on the single note page that you may use, and continue to study vigorously for the exam. You will not have enough time to complete the exam if you rely too heavily on your single sheet of handwritten notes.
Questions are worth 1-3 points depending on their level of difficulty and number of subproblems. Questions have the following form.
((True or False) and False)
?==
and =
getArea(radius)
which takes the radius of a circle and returns the area. Call/invoke this function to print the area of a circle with radius 3.