Introduction to IoT – Chapter 2 Quiz Answers

Other Cisco Other Cisco Material Original source

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

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?

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?

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?

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?

Copy

addition = 22 +10

print(addition)

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?

Copy

>>>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?

Copy

y = ['yellow', 'red', 'green', 'purple', 'white']

print y

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?

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?

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.)

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?

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?

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?

Copy

[1,2,4,5] + [3,6]

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?

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?

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.

← All Other Cisco articles Home