Introduction to IoT – Chapter 2 Quiz Answers

1. What is used to illustrate how a given process will run?

  • pie chart
  • flow chart
  • Packet Tracer
  • graph

Explanation: Refer to curriculum topic: 2.1.1
A flow chart is used in programming to illustrate how a given process will run.

2. How is a new variable created in Blockly?

  • Drag the variable block onto the work space area.
  • Declare the variable in a Dim statement.
  • Use the assignment operator
  • Determine the type of variable needed, then scroll to the appropriate place in the code to insert the variable.

Explanation: Refer to curriculum topic: 2.1.2
In Blockly, a variable is created by dragging the variable block onto the work space area and filling in the value slot.

3. Which Python programming function is used to display output?

  • print
  • if
  • while
  • for

Explanation: Refer to curriculum topic: 2.1.3
Print is used to display output in a Python programing language interpreter.

4. Refer to the exhibit. What does the exhibited flow chart symbol commonly represent?
Introduction to IoT – Chapter 2 Quiz Answers 4

  • data
  • decision
  • termination
  • connector

Explanation: Refer to curriculum topic: 2.1.1
The diamond symbol is commonly used to represent “Decision” in a flow chart.

5. What is displayed after the following code is entered into a Python interpreter?

addition = 22 +10
print(addition)
  • (syntaxerror)-…as there should not be a space between the numerical values
  • [22]+[10]
  • 32
  • nothing ( because the print command is wrong)

Explanation: Refer to curriculum topic: 2.1.3
The Python interpreter will perform the operation and display the result, 32.

6. What output is expected when the function that is shown below is entered in a Python program interpreter?

>>>print Cisco 1
  • cisco 1
  • Cisco1
  • “SyntaxError: Missing parentheses in call to ‘print'”
  • Cisco 1

Explanation: Refer to curriculum topic: 2.1.3
It will display “SyntaxError:Missing parenthesis in call to “Print”‘ and furthermore the name ‘cisco 1’ is not defined.

7. Which output would be displayed if the code that is shown below is entered in a Python interpreter?

y = ['yellow', 'red', 'green', 'purple', 'white']
print y
  • y
  • yellow, red, green, purple, white
  • ‘yellow’, ‘red’, ‘green’, ‘purple’, ‘white’
  • It shows “SyntaxError”

Explanation: Refer to curriculum topic: 2.1.3
A syntax error would be printed because the variable to be printed has to be in parenthesis (y).

8. What is Blockly?

  • a non-profit educational website
  • a low-cost credit-card-sized computer
  • a programming tool for beginners
  • a network simulation program

Explanation: Refer to curriculum topic: 2.1.2
No prior programming knowledge or code is needed to start programming with Blockly.

9. Refer to the exhibit. A specific Blockly block has a slot on the top. What is the purpose of this slot?
Introduction to IoT – Chapter 2 Quiz Answers 5

  • This block is the topmost block.
  • The block is a variable.
  • The slot allows a block with a bevel tab on the bottom to be connected above the block shown.
  • A block with a printer name is required to be attached above the block shown.

Explanation: Refer to curriculum topic: 2.1.2
A slot in the top means another block may be attached above the block.

10. What are two resources that could help someone learn to program? (Choose two.)

  • Khan Academy
  • Code Academy
  • Kickstarter
  • Maker Media
  • Quirky

Explanation: Refer to curriculum topic: 2.2.2
There are many resources that help with learning to program. Some resources include the following: Code Academy, Khan Academy, Blockly, and MIT OpenCourseWare (OCW).

11. Which platform is a low cost, credit-card-sized computer?

  • Raspberry Pi
  • Arduino
  • Blockly
  • PL-App

Explanation: Refer to curriculum topic: 2.2.2
The Raspberry Pi is a low cost, credit-card-sized computer that is programmed using Python. The Arduino is an open-source low power physical computing platform used to control devices. The PL-App provides a web-based environment used to access the Raspberry Pi. Blockly is a visual programming tool for beginners.

12. A student has a digitized version of an idea for a product. What machine can the student use to turn the idea into a solid object?

  • Beaglebone​
  • 3D printer
  • Raspberry Pi
  • Arduino​
  • Packet Tracer

Explanation: Refer to curriculum topic: 2.2.2
A 3D printer has the capability of producing a solid object. There are also low technology options, such as LEGO Mindstorms, that may work for creating a physical rendition of a prototype. Arduino, Beaglebone, and Raspberry Pi are computing platforms. Packet Tracer is a networking simulation tool.

13. What is the output when the following code is entered into a Python program interpreter?

[1,2,4,5] + [3,6]
  • [1,2,4,5,3,6]
  • [21]
  • [1,2,3,4,5,6]
  • [12]+[9]

Explanation: Refer to curriculum topic: 2.1.3
The Python interpreter performs concatenation of two lists without reordering the list elements

14. Refer to the exhibit. What does the exhibited flow chart symbol represent?
Introduction to IoT – Chapter 2 Quiz Answers 6

  • process
  • display
  • preparation
  • data

Explanation: Refer to curriculum topic: 2.1.1
The rectangular symbol represents “Process” in a flow chart.

15. What is one way to pay for prototyping?

  • incorporate
  • mortgage
  • crowd funding
  • easy pay

Explanation: Refer to curriculum topic: 2.2.1
Crowd funding is a way to generate money where a small amount of money is contributed by multiple people. A corporation may be formed if a prototype works. A mortgage is used to fund a home.

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x