wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Extended Quiz: Functions, Machines, and EVTOLs

Total questions: 21

Worksheet time: 24mins

Name
Class
Date
1.

In CodeHS, why do we create functions like turnRight()?

a)

To make our code longer

b)

To repeat the same code over and over

c)

To create shortcuts and reuse steps easily

d)

To make the computer run slower

2.

Which of the following is the correct way to define a function in CodeHS?

a)

b)

c)

d)

3.

Which of the following is the correct way to define a function in CodeHS?

a)

b)

c)

d)

4.

What is one advantage of using functions in your programs?

a)

They make your code confusing.

b)

You only write the steps once, then you can call the function many times.

c)

Functions erase your old code.

d)

Functions make your computer louder.

5.

Machines and coding both use inputs and outputs. Which example shows this correctly?

a)

Input: Press on button → Output: TV screen turns on

b)

Input: pressing a keyboard key → Output: nothing happens

c)

Input: eating food → Output: the lights in your house turn on

d)

Input: CodeHS program → Output: the computer deletes itself

6.

EVTOLs (electric vertical takeoff and landing vehicles) are being developed to…

a)

Replace bicycles in schools

b)

Fly like drones but carry people like cars

c)

Replace trains underground

d)

Make LEGO machines work automatically

7.

Which of these is an example of input and output in an EVTOL?

a)

Input: pilot presses joystick → Output: vehicle tilts forward and moves

b)

Input: car horn honks → Output: the sky turns blue

c)

Input: wheels spin → Output: the vehicle eats fuel

d)

Input: program crashes → Output: EVTOL disappears

8.

What is the purpose of design in engineering?

a)

To make random creations with no purpose

b)

To create something new/unique with a purpose

c)

To copy other people's work

d)

To avoid using safety measures

9.

Which statement about design is true?

a)

A. Design is always done once and finished forever

b)

B. Design is never done; it can always be improved

c)

C. Design is random and has no purpose

d)

D. Design cannot include safety considerations

10.

What do machines do?

a)

Make work harder by adding more steps

b)

Make work easier by changing the way force is used

c)

Eliminate the need for force completely

d)

Make random movements with no output

11.

Why is safety important in design?

a)

To make projects take longer

b)

To make projects look cooler

c)

To protect people while using machines or projects

d)

To avoid making changes to a project

12.

In your Karel program, what does a function act like?

a)

A. An ingredient in a recipe

b)

B. A recipe you can use again and again

c)

C. A random guess

d)

D. A mistake in the code

13.

Which is an example of inputs and outputs working together?

a)

Input: pull lever → Output: LEGO car rolls forward

b)

Input: lights turn on → Output: you press a button

c)

Input: random design → Output: nothing happens

d)

Input: press keyboard → Output: screen stays blank

14.

15. Machines and functions are similar because:

a)

Both take an input and produce an output.

b)

Machines are physical, while functions are mathematical.

c)

Functions always require electricity, machines do not.

d)

Machines can think, but functions cannot.

15.

In what step in the engineering design process would you try to make your design even better?

a)

Ask

b)

Imagine

c)

Plan

d)

Create

e)

Improve

16.

This is this step in the engineering design process where you begin to build your design.

a)

Ask

b)

Imagine

c)

Plan

d)

Create

e)

Improve

17.

In what step would you draw a picture of your ideas?

a)

Ask

b)

Imagine

c)

Plan

d)

Create

e)

Improve

18.

What is the First Step of the Engineering Design Process

a)

Testing Solutions

b)

Designing Solutions

c)

Identifying the Problem

d)

Planning Solutions

19.

When writing functions, how many times do you need to write the function?

a)

Every time you want to use it.

b)

Only once, at the start.

c)

Only 3 times

d)

Every time you need Karel do something

20.

Q: After you define a function, how many times can you call it in your program?

a)

A. Only once

b)

B. Twice, no more

c)

C. As many times as you want

d)

D. You cannot call it again

21.

Q: Write a function that describes roasting a marshmallow. Be sure to include everything that a normal function would have.

4 lines