Phase 3 Assessments – Piper

PHASE 3 ASSESSMENTS

PHASE 3.1 — FORMATIVE ASSESSMENT

1. Which of these statements is FALSE?

  1. When electric current flows through pins, it can be detected by program code to distinguish a pin is "On".
  2. Program code can cause electric current to flow through a GPIO pin to an LED and back to another GPIO pin in order to light up an LED.
  3. Hardware and software interact in Piper circuits and code to cause things to happen such as turning on LEDs.
  4. Piper circuits and code cannot interact together to cause things to happen.

2. Which statement accurately describes the difference between pseudocode and programs?

  1. Pseudocode is more difficult to read and understand than programs.
  2. Pseudocode can be translated into machine language of 1s and 0s.
  3. Pseudocode is written for humans to understand and programs are written for computers to understand.
  4. Pseudocode is graphical blocks that can be moved like puzzle pieces on the screen.
3. An algorithm is ___ ?
  1. A step-by-step set of operations to be performed that can solve a problem.  
  2. A special type of advanced math.
  3. A sequence of code that repeats multiple times to create music rhythms.
  4. A reptile with big teeth.

4. Why are loops used in programming?

  1. To start and stop the code.
  2. To gather up all the data so it doesn’t get lost.
  3. To run the same sequence of code multiple times.
  4. To make sure the code is not duplicated.

5. What is a sequence in coding?

  1. The name of a special code in Blockly.
  2. A series of steps for a task.
  3. A group of small shiny objects that are sewn into clothing.
  4. A special type of electronic device used in music.

6. Which of these is NOT an example of a sequence of instruction?

  1. Turn pin 22 on, Wait 2000 ms, Turn pin 22 off
  2. Take out the parts, assemble the device from parts, plug in the power, turn on the device
  3. Take two steps forward, turn to the right, shake it, take two steps back
  4. Buttons, LEDs, wires, buzzers, switches and breadboards
7. What is a program as it relates to Computer Science?
  1. A professional who is good at grammar and writes great code  
  2. An algorithmic set of instructions that a computer processes to achieve a particular objective.
  3. An ordered list of steps that people follow to feel better
  4. An algorithmic set of instructions that a person follows to win games

8. To accomplish a task with the Piper Computer, we create a system where wires and buttons in a circuit are the ___, and the code we write to control what happens is part of the ___.

  1. Hardware, Software
  2. Software, Hardware
  3. Outputs, Inputs
  4. Peripherals, Screen

9. Which of the following terms are NOT related to computational thinking?

  1. logic, problem solving, analyzing data, algorithms, sequences
  2. putting things in order, ordered steps, respond to challenges, design a solution
  3. texting, posting pics, emojis, stickers
  4. going from start to finish, complexity, troubleshooting, debugging

Alternative question 9

9. List 4 aspects of computational thinking.


PHASE 3.2 — FORMATIVE ASSESSMENT

1. When you use a Repeat block to do something over and over again in code, you create a ____.

  1. Condition
  2. Circle
  3. Loop
  4. Path

2. One good strategy for writing complex code is to ___.

  1. Break it up into smaller manageable tasks.
  2. Write it all at once.
  3. Write the code as fast as you can and worry later if it works or not.
  4. Pull out all the blocks first and try different combinations.​

3. What do you do when your code doesn’t accomplish the intended goal or task?

  1. Get angry and give up
  2. Ask someone else to fix it
  3. Analyze, debug, and test it until it works
  4. Ask the teacher for the answer​

4. When you write code that has a series of steps to accomplish a task, you are creating an __.

  1. Algebraic
  2. Algorithm
  3. Annotation
  4. Automation​

5. When coding in PiperCode, what do you click on to test your code?

  1. Engineering Tab
  2. Start Button
  3. Help Button
  4. Electronics Tab

6. When running your code in PiperCode, where can you check to see if current is flowing to the right GPIO pin?

  1. Raspberry Pi pin map
  2. Project Tutorial
  3. Component Library
  4. Python button

7. The PiperCode projects we are writing code for are programmed in ___?

  1. Mouse language
  2. Blockly language
  3. Scratch language
  4. Python language​

8. In coding, a series of steps for a task is called a _____.

  1. Sequence
  2. Loop
  3. Signal
  4. Conditional​

9. A good practice before writing code is to write out the steps in plain language for a human to understand. This is called ___.

  1. Rhythm code
  2. Pseudo code
  3. Human code
  4. Parcel code​

In PiperCode, you can view your code in which text-based programming language?

  1. Blockly
  2. Scratch
  3. Python
  4. Linux

PHASE 3.3 — FORMATIVE ASSESSMENT

1. What is an event in coding?

  1. One thing causing another thing to happen
  2. One thing causing a loop
  3. One thing having no effect on other things
  4. One thing that stops the code from working​

2. Which of the following is an example of writing an event when you are coding?

  1. Repeat forever
  2. Repeat while Pin __ is On
  3. Turn Pin __ Off
  4. Turn Pin __ On​

3. To run a sequence of code as long as a condition is true, you use a __ block in Blockly.

  1. Repeat forever
  2. Repeat _ times
  3. Repeat while
  4. Turn Pin __ On​

4. To run a sequence of code over and over again, you use a __ block in Blockly.

  1. Repeat forever
  2. Repeat _ times
  3. Repeat while true
  4. Turn Pin __ On​

5. Why would you place one Repeat loop within another Repeat loop (a nested loop)?

  1. You want the emphasize to the computer that you want the sequence to repeat forever.
  2. You want 3 LED's to light up in order over and over and blink at a particular rate when they're lighting up.
  3. You want a sequence of events to occur one time.
  4. You want to make 3 LED's blink over and over forever.

6. When your code does not do what you thought it would, what do you do?

  1. Change one thing at a time and try again.
  2. Read the code one line at a time to figure out which one may need correcting.
  3. Verify the Pin numbers in the code and whether they are being set to On or Off with the pin map.
  4. All of these things.​
7. When building circuits with the Raspberry Pi, buttons are ___ and the LEDs are ___.
  1. Inputs, Outputs
  2. Outputs, Inputs
  3. Inputs, Inputs
  4. Outputs, Outputs​

8. How did you get your LED turn on using code in PiperCode?

  1. It happens automatically, no control is needed
  2. Have the Pin connected to the LED turn on when the Pin connected to the button is On
  3. Repeat the sequence of code forever
  4. Check when the LED Pin is Off and turn it On

PHASE 3.4 — FORMATIVE ASSESSMENT

1. Going through existing code and fixing the mistakes is called _____

  1. Sequencing
  2. Debugging
  3. Debarring
  4. Hashing​

2. Which of these is a good troubleshooting strategy?

  1. Step through the code, line by line, to identify what does not work as expected
  2. Display the value of Variables using a Print block
  3. Ask someone else to go through the code with you as you explain it
  4. All of these are good troubleshooting strategies​

3. Which of these runs a sequence of code multiple times?

  1. Turn Pin __ On
  2. Play Sound
  3. Wait until Pin __ is Off
  4. Repeat forever​

4. One thing causing another thing to happen in code is called___.

  1. a Loop
  2. a Conditional
  3. an Event
  4. a Sequence​

5. Which of these is an example of an event in code?

  1. Turn Pin __ On
  2. Play Sound
  3. Wait until Pin __ is Off
  4. Repeat forever​

6. Which of these is an example of running a sequence of code as long as a condition is true?

  1. Play Sound
  2. Repeat while Pin 24 is on
  3. Turn Pin __ On
  4. Turn Pin __ Off​

7. Which of these code blocks will cause a sound output from the speaker?

  1. Turn Pin __ On
  2. Wait until Pin __ is Off
  3. Repeat forever
  4. Play Sound​

8. Which of these code blocks will cause an LED to light up?

  1. Turn Pin __ On
  2. Wait until Pin __ is Off
  3. Repeat forever
  4. Play Sound​

Questions for Additional Projects:

Variables:

9. A program storage location for information that is given a name is called a ___.

  1. Variable
  2. Loop
  3. Sequence
  4. Bug​

10. Which of these code techniques is often used to check the value of a variable?

  1. Loops
  2. Sequences
  3. Actions
  4. Conditions​

11. Which of these codes will increment the value in a variable?

  1. Wait until __ is ON
  2. Change __ by 1
  3. Set __ to 1
  4. If __ is 1​

Loops:

12. To run a sequence of code a certain number of times, use a __ block.

  1. Repeat forever
  2. Repeat _ times
  3. Repeat while
  4. If Else​

Conditions: (if, repeat while, compare)

13. A programming method for making decisions based on code that equates to true or false is called a __.

  1. Variable
  2. Loop
  3. Sequence
  4. Conditional​

14. Which of these code blocks is used to compare one value to another and then do something based on the comparison?

  1. Repeat forever
  2. Repeat _ times
  3. If Else
  4. Play Sound