+, -, *, /, //, %, **
<, <=, >, >=, ==, !=
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.
Part 1 of the exam will be take home. It is open book, open notes, and you will want to use Thonny to check your work. You will have until the start of class Wednesday to finish Part 1 of the exam. It must be completed individually.
Part 2 of 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 Part 2 of the exam. It must be completed individually.
You may bring a single letter-sized sheet of handwritten notes on one side. 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 this part of 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.Instructions are the same as previous exam. I suggest you review chapters 3, 4, 5, & 6.1-6.33 from our book, and reading quizzes 8-18. Our book, homework, and all in-class activities give you many examples that you can work through to practice.
Part 1 of the exam will be take home. It is open book, open notes, and you will want to use Thonny to check your work. You will have until the start of class Friday to finish Part 1 of the exam. It must be completed individually.
Part 2 of 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 Part 2 of the exam. It must be completed individually.
You may bring a single letter-sized sheet of handwritten notes on one side. 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 this part of the exam if you rely too heavily on your single sheet of handwritten notes.
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