Which of these is most similar to a computer program?
Student Notebook
Encyclopedia
Blueprints (plans to build)
Dictionary
Imagine a car as a computer, and its engine as a program. Which of the following is an input for the engine program?
The gas pedal
The driver's seat
The steering wheel
The windshield wipers
A good algorithm must be:
Detailed
Replaceable
Simple
Open-ended
Look at the picture below. What is wrong with the "code" for opening a bottle?
The function has too many steps
The instructions are not specific
The function doesn't apply to every bottle
The instructions are out of sequence
List the following in order from simplest to most complex: A)Function; B)Program; C) Step
A, B, C
B, A, C
C, A, B
C, B, A
How can the following instruction be made more specific? "Meet Joe at the corner of Main Street and Fist Avenue."
Describe how you first met Joe
List all the streets that intersect First Avenue
Describe the current weather conditions
Set an exact time for the meeting
Imagine writing a program that instructs a bird how to take off, fly, and land. What function is likely to be looped?
Lift off
Flap wings
Find landing spot
Land
For a chef, what is the most important variable in preparing a meal for a dinner party?
The time of the party
The distance to the grocery store
The brand of your stove
The number of guests
Erika made a computer program. Which of the following did she do first?
design a flowchart
code and debug
test the program
define the problem
Jasmine is designing the solution for her program. She should
use Python and not Java.
have finished coding and debugging the program already.
use pseudocode or a flowchart.
not follow the computer programming process.
A programming language
is used to write directions for a computer.
is the language computers use to speak to humans.
does not have any rules.
is used to design a flowchart but not to write code.
Isabella is creating a computer program that will put together outfits for people based on their wardrobes. What could testing the program help her to do?
The test could automatically fix bugs without Isabella finding them.
The test could help her design a flowchart for this program.
The test could show that people want the program to base the outfit on the weather.
The test could help her define the problem she wants to solve before she designs the solution.
How would documenting the program help Isabella?
Documenting the program will help Isabella gain an audience and make the program successful in other countries.
Documenting the program will help Isabella communicate with other programmers and keep a record of the program.
Documenting the program is a way for Isabella to raise money to continue programming.
Documenting the program will help Isabella learn to code in different programming languages.
Using an app called OpenTable, people can make reservations at restaurants. If a reservation is not available, OpenTable shows them the soonest availability that the restaurant has. What problem might OpenTable have been created to solve?
OpenTable was not created to solve a problem.
Restaurants were not making enough money during lunch hours.
Food was often wasted at restaurants after closing.
People often found it difficult to make reservations at restaurants.
What is the name for the set of steps a computer is given to follow?
a format
an algorithm
an animaiton
a language
Computers need instructions that are _________.
wordy
tricky
specific
interesting
Which of these describes an event in programming?
a soccer game.
looking at a photo on your phone.
clicking the arrow on the keyboard to make a page scroll down.
Python, a language that can be used to write directions for a computer to follow.
Which of the following is most likely an event?
taking a walk
clicking 'play' on a video
reading a Facebook post
putting your cell phone in your pocket
An event handler says, 'when x is pressed, fish does a flip'. What is the event?
the programmer writing an event handler
the user pressing the x key
the user clicking the fish
the fish doing a flip
Conditional statements in programming tell computers to check if a condition is ______.