Final Exam Review PowerPoint

Download Report

Transcript Final Exam Review PowerPoint

Activity Review
 Activity 1: Create a quick scratch program that uses the following elements: forever loop,
broadcast, change of scenery, reset back to game beginning.
 Activity 2: Create BOTH a flow chart and an if/else statement for the following scenario: I
want a program that will convert my test scores to the 4.0 scale. I always use 100 point tests.
Here’s the scale:
 93 – 100
4 points
 80 – 92
3 points
 70 – 79
2 points
 60 – 69
1 point
 <60
.3 point
 Activity 3: Write down the code you would use in Python to do the following: define a
function that asks the user to pick between two different treasure chests. The user must
pick either chest one or chest two, the program cannot move on until that’s done.
1st hour







Sean A, Strider
Zamil, Jack M
Nick A, Kenny
Jacob, Nick S
Jack, Matt S
Nick D, Jack S
Dakota, MJ







John, Josh
Joe, Lukas T, RJ
Shelby, Sam
Jimmy, Ben
Anna, Lukas P
Connor, Sally
Alex, Sean M
7th hour







Kyle Z, Espen
Callie, Donald
Matt W, Aidan
Logan, Kieran
Keegan, Noah V
Andrew, Ben G
Richard, Brenden









Rachael, Derek T
Bob, Ethan
Robbie, Hunter
David H, Derek S
TJ, Robert S
Connor, Alyssa
Liam, Max
Sean R, Eli
Mark, Michael
Class Review for Exam
We will start the review at 1:45 pm
Temporary Storage, like
opening books on your desk
RAM
Specific, specialized device that
accepts input, processes input and
provides output.
EMBEDDED PROCESSOR
What are the dots called that allow
you to see a picture on your
computer screen?
PIXELS
TRUE OR FALSE? Flowcharts
should include references to the
specific programming language
you’re going to use.
FALSE
TRUE OR FALSE: One weakness of
flowcharts is they cannot account
for all conditions in a program.
FALSE
If you’re creating a game in scratch
how do you make game levels?
BACKDROPS, POINT
DIFFERENCES, BROADCAST
I’m reviewing Anne’s playground in
scratch. I can’t figure out how to
“start over”. What did Anne forget
to do?
RESET EVERYTHING WHEN THE
GREEN FLAG IS CLICKED
What is the purpose of a
variable?
STORES A VALUE
Which functions are always
available in Python?
Print, Int, Input , Str
In the following code: while
guessesTaken < 6: which item is
the comparison operator?
<
What’s a boolean data type?
ALWAYS EVALUATES TO
TRUE/FALSE
TRUE OR FALSE: A while statement
always has a colon (the : sign).
TRUE
TRUE OR FALSE: “Def” statements
merely define functions; they do
not run the code.
TRUE
What symbol can you use to
comment out one line of code?
#
What keyword would you use to
add an alternative condition to an
if statement?
ELSE
What do you type to create a
function called “pickMe” in
Python?
Def pickMe ():
What are the reasons you would
change costumes of your sprites in
scratch?
DEPICT MOVEMENT, SHOW A
LEVEL CHANGE, SHOW THINGS
LIKE CATCHING A BALL, ETC.
WHAT DOES A FOREVER LOOP
DO?
KEEPS CODE REPEATING UNTIL
SOME CONDITION IS MET (GAME
ENDS, ETC)
LAST QUESTION: You are a
programmer. You’ve been
promoted to a new position in the
company. What should you do
before leaving your current
position to help ensure things run
smoothly for the new person?
Create an inventory of all your
programs
Make sure all programs are clearly
documented – flow charts,
comments in programs, etc.
THE END!
Thursday, May 19th
 PLEASE FIND YOUR NEW SEAT!!!
 Please clear your desk EXCEPT for a pencil and your
completed review guide (YES, you get to use it on the
test!)
 Log in to the computer
 Wait for my instructions!
Final Project
 Your CHOICE
 Work alone or w/ partner – but I expect twice output
if working w/ partner
 You create project plan
 Document project progress
 Present on exam day
 Some options: raspberry pi, pygames, more python,
more app inventor, Python and finch robots