WorksheetsProgramming Fundamentals Exam
Total questions: 15
Worksheet time: 42mins
Name
Class
Date
1.
Computer programming is pretty much all about writing algorithms. An algorithm is...
a)
a condition that always has the answers 'true' or 'false'.
b)
when two occurrences happen simultaneously in your code.
c)
a list of binary numbers setup in a random order which allows the computer to communicate with the user.
d)
a sequential list of instructions that solves a particular problem or allows an action to be executed.
2.
When Mark Zuckerberg created Facebook, he didn't immediately jump to creating the 'Messenger' section or the ability to 'Poke' another person. He designed Facebook step by step, starting with the most basic features such as what the background would look like and how to create an account, then moving to more complicated features such as adding photos and requesting friends.
This notion of taking programming step by step and breaking up your complex ideas into smaller parts is known as...
This notion of taking programming step by step and breaking up your complex ideas into smaller parts is known as...
a)
coding
b)
incremental development
c)
parallelism
d)
sequential programming
3.
Believe it or not, your calculator is a computer. You (the user) type in a series of numbers and commands (+, -, =), the calculator processes that data, and the correct answer is displayed on the screen.
The answer that is displayed on your calculator is an example of...
The answer that is displayed on your calculator is an example of...
a)
output
b)
input
c)
arguments
d)
binary code
4.
What is the name of this function?
a)
PLAY
b)
MUSIC
c)
SPEED
d)
VOLUME
5.
How many parameters does this function have?
a)
1
b)
2
c)
3
d)
5
6.
Which of the following would be the most logical argument for 'speed'?
a)
red
b)
dots
c)
loud
d)
20
7.
How many commands define this function?
a)
2
b)
3
c)
5
d)
6
8.
Clear detailed comments that explain what each aspect of your code should do are also known as...
a)
pseudocode
b)
algorithm
c)
boolean
d)
incremental development
9.
What will happen to the Sprite to which this code is applied when the green flag is clicked in Scratch?
a)
Nothing
b)
Until the C key is pressed, the color and size of the Sprite will continuously change.
c)
The Sprite will get angry.
d)
The color and size of the Sprite will change until the stop button is pressed.
10.
What will happen to the Sprite to which this code is applied when the 'a' key is clicked in Scratch?
a)
Nothing
b)
Until the C key is pressed, the color and size of the Sprite will continuously change.
c)
The Sprite will get angry.
d)
The Sprite will get smaller then get larger and the color will change once.
11.
What part of this code is a Boolean?
a)
The purple 'define Angry' block
b)
the gold 'wait ___ secs' block
c)
the gold 'repeat until' block
d)
the blue 'key c pressed?' block
12.
What part of this code is a loop?
a)
The purple 'define Angry' block
b)
the gold 'wait ___ secs' block
c)
the gold 'repeat until' block
d)
the blue 'key c pressed?' block
13.
When the flow of this code gets to the boolean, what question will be asked?
a)
Is it true that the c key was pressed or is it false?
b)
What is the size of the Sprite?
c)
Is it true that the angry function was called or is it false?
d)
Is the Sprite angry?
14.
How does the user initiate the function named 'angry'?
a)
Click the green flag.
b)
Press the 'c' key.
c)
Push the Sprite on the ground and step on his Jordans.
d)
Press the 'a' key.
15.
What is the main benefit of using a function?
a)
A function asks the question "true or false?" in order to ensure that each command should actually be executed.
b)
A function allows a programmer to reuse a set of commands repeatedly without having to retype the entire block of code each time.
c)
A function makes your program more difficult to read by adding more commands.
d)
Functions are English language comments that explain what each part of the code should do.
100 %
