wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

IoT Chapter 2 Review

Total questions: 14

Worksheet time: 7mins

Name
Class
Date
1.

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


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

a)

[21]

b)

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

c)

[12]+[9]

d)

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

2.

Refer to the exhibit. What does the exhibited flow chart symbol represent?

a)

data

b)

preparation

c)

process

d)

display

3.

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

a)

'yellow', 'red', 'green', 'purple', 'white'

b)

yellow, red, green, purple, white

c)

y

d)

It shows "SyntaxError"

4.

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

a)

Arduino

b)

PL-App

c)

Blockly

d)

Raspberry Pi

5.

What is one way to pay for prototyping?

a)

crowd funding

b)

mortgage

c)

easy pay

d)

incorporate

6.

How is a new variable created in Blockly?

a)

Use the assignment operator

b)

Declare the variable in a Dim statement.

c)

Drag the variable block onto the work space area.

d)

Determine the type of variable needed, then scroll to the appropriate place in the code to insert the variable.

7.

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

a)

pie chart

b)

flow chart

c)

graph

d)

Packet Tracer

8.

Which Python programming function is used to display output?

a)

if

b)

for

c)

print

d)

while

9.

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


>>>print Cisco 1

a)

cisco 1

b)

Cisco 1

c)

Cisco1

d)

"SyntaxError: Missing parentheses in call to 'print'"

10.

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


addition = 22 +10

print(addition)

a)

nothing ( because the print command is wrong)

b)

[22]+[10]

c)

32

d)

(syntaxerror)-...as there should not be a space between the numerical values

11.

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?

a)

Raspberry Pi

b)

Beaglebone‹

c)

Arduino‹

d)

3D printer

e)

Packet Tracer

12.

Refer to the exhibit. What does the exhibited flow chart symbol commonly represent?

a)

decision

b)

termination

c)

data

d)

connector

13.

Refer to the exhibit. A specific Blockly block has a slot on the top. What is the purpose of this slot?

a)

This block is the topmost block.

b)

The slot allows a block with a bevel tab on the bottom to be connected above the block shown.

c)

The block is a variable.

d)

A block with a printer name is required to be attached above the block shown.

14.

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

a)

Kickstarter

b)

Khan Academy

c)

Code Academy

d)

Quirky

e)

Maker Media