wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Test #1 - Flashcards

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

What is the programming concept that checks a test condition inside parentheses to see if it remains true, and loops continuously until the condition becomes false?

a)

While Loop

b)

If Statement

c)

For Loop

d)

Switch Case

2.

What is the programming concept that checks a condition and executes statements if the condition is true?

a)

If Statement

b)

Loop

c)

Variable

d)

Function

3.

What is the programming concept that allows the repeated execution of a block of code for a specific number of times?

a)

For Loop

b)

Variable Declaration

c)

Function Overloading

d)

Recursion

4.

What is the term for the following definition? Occurs first and only once.

a)

Initialization in For Loop

b)

Condition in For Loop

c)

Increment in For Loop

d)

Termination in For Loop

5.

What is the term for the following definition? Tested each time through the loop; if true, the loop continues; otherwise, it ends.

a)

Condition in For Loop

b)

Loop Counter

c)

Initialization Statement

d)

Break Statement

6.

What is the term for the following definition? Executed each time through the loop when the condition is true, modifying the loop control variable.

a)

Increment in For Loop

b)

Loop Condition

c)

Initialization in For Loop

d)

Break Statement

7.

What is the term for the following definition? Structuring programs into segments of code to perform individual tasks.

a)

Function

b)

Variable

c)

Loop

d)

Array

8.

Fill in the blank: The Arduino Integrated Development Environment (IDE) is _________

a)

Open-source software that compiles code and uploads it to the hardware.

b)

A hardware component used for wireless communication.

c)

A type of microcontroller board used for robotics.

d)

A proprietary software for image editing.

9.

Fill in the blank: The function of Verify/Compile in Arduino is to _________.

a)

Check code for errors.

b)

Upload code to the board.

c)

Save the project.

d)

Run the code on the board.

10.

Fill in the blank: The semicolon (;) in Arduino code is used to _________?

a)

End each line of code.

b)

Start a new function.

c)

Comment out code.

d)

Declare a variable.

11.

Fill in the blank: A single line comment in Arduino code is indicated by _________.

a)

//

b)

#

c)

/*

d)

--

12.

What does the command prizm.setRedLED(HIGH) do?

a)

Turns red Prizm LED on

b)

Turns red Prizm LED off

c)

Turns green Prizm LED on

d)

Turns both red and green Prizm LEDs on

13.

What does the command prizm.setRedLED(LOW) do?

a)

Turns red Prizm LED off

b)

Turns red Prizm LED on

c)

Turns green Prizm LED off

d)

Turns blue Prizm LED on

14.

What does the command delay(); represent in a program?

a)

Represents the number of milliseconds to pause the program.

b)

Represents the number of times to repeat a loop.

c)

Represents the amount of memory to allocate.

d)

Represents the number of variables to declare.

15.

What does the command prizm.readSonicSensorCM(); do?

a)

Sets up Sensor to read centimeters

b)

Reads the temperature in Celsius

c)

Activates the light sensor

d)

Resets the sensor to default settings

16.

What does the command prizm.readSonicSensorIN(); do?

a)

Sets up Sensor to read inches

b)

Turns on the LED light

c)

Reads temperature in Celsius

d)

Activates the motor

17.

What does the Ultrasonic Sensor do?

a)

The information gathered communicates distance.

b)

It measures temperature changes.

c)

It detects color patterns.

d)

It records sound waves.

18.

What does the command prizm.setServoPosition(); do?

a)

Sets angle of servo motor

b)

Reads the temperature sensor value

c)

Turns on the LED light

d)

Starts the DC motor

19.

What does the command prizm.setServoSpeed(); do?

a)

Sets how fast motor will move

b)

Stops all motors immediately

c)

Changes the direction of the servo

d)

Reads the current speed of the servo

20.

prizm.setMotorInvert() is used to ________.

a)

change the direction of a dc motor

b)

increase the speed of a dc motor

c)

stop the dc motor immediately

d)

measure the temperature of the motor

21.

A Servo ________.

a)

turns 180 degrees and is used for precise movements

b)

is used to store electrical energy

c)

produces sound waves

d)

measures temperature

22.

A Motor ________.

a)

turns 360 degrees and is used for wheels, rollers, conveyors

b)

is only used for lighting purposes

c)

cannot rotate at all

d)

is used exclusively for storing data

e)

is a type of battery