WorksheetsTest #1 - Flashcards
Total questions: 22
Worksheet time: 11mins
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?
While Loop
If Statement
For Loop
Switch Case
What is the programming concept that checks a condition and executes statements if the condition is true?
If Statement
Loop
Variable
Function
What is the programming concept that allows the repeated execution of a block of code for a specific number of times?
For Loop
Variable Declaration
Function Overloading
Recursion
What is the term for the following definition? Occurs first and only once.
Initialization in For Loop
Condition in For Loop
Increment in For Loop
Termination in For Loop
What is the term for the following definition? Tested each time through the loop; if true, the loop continues; otherwise, it ends.
Condition in For Loop
Loop Counter
Initialization Statement
Break Statement
What is the term for the following definition? Executed each time through the loop when the condition is true, modifying the loop control variable.
Increment in For Loop
Loop Condition
Initialization in For Loop
Break Statement
What is the term for the following definition? Structuring programs into segments of code to perform individual tasks.
Function
Variable
Loop
Array
Fill in the blank: The Arduino Integrated Development Environment (IDE) is _________
Open-source software that compiles code and uploads it to the hardware.
A hardware component used for wireless communication.
A type of microcontroller board used for robotics.
A proprietary software for image editing.
Fill in the blank: The function of Verify/Compile in Arduino is to _________.
Check code for errors.
Upload code to the board.
Save the project.
Run the code on the board.
Fill in the blank: The semicolon (;) in Arduino code is used to _________?
End each line of code.
Start a new function.
Comment out code.
Declare a variable.
Fill in the blank: A single line comment in Arduino code is indicated by _________.
//
#
/*
--
What does the command prizm.setRedLED(HIGH) do?
Turns red Prizm LED on
Turns red Prizm LED off
Turns green Prizm LED on
Turns both red and green Prizm LEDs on
What does the command prizm.setRedLED(LOW) do?
Turns red Prizm LED off
Turns red Prizm LED on
Turns green Prizm LED off
Turns blue Prizm LED on
What does the command delay(); represent in a program?
Represents the number of milliseconds to pause the program.
Represents the number of times to repeat a loop.
Represents the amount of memory to allocate.
Represents the number of variables to declare.
What does the command prizm.readSonicSensorCM(); do?
Sets up Sensor to read centimeters
Reads the temperature in Celsius
Activates the light sensor
Resets the sensor to default settings
What does the command prizm.readSonicSensorIN(); do?
Sets up Sensor to read inches
Turns on the LED light
Reads temperature in Celsius
Activates the motor
What does the Ultrasonic Sensor do?
The information gathered communicates distance.
It measures temperature changes.
It detects color patterns.
It records sound waves.
What does the command prizm.setServoPosition(); do?
Sets angle of servo motor
Reads the temperature sensor value
Turns on the LED light
Starts the DC motor
What does the command prizm.setServoSpeed(); do?
Sets how fast motor will move
Stops all motors immediately
Changes the direction of the servo
Reads the current speed of the servo
prizm.setMotorInvert() is used to ________.
change the direction of a dc motor
increase the speed of a dc motor
stop the dc motor immediately
measure the temperature of the motor
A Servo ________.
turns 180 degrees and is used for precise movements
is used to store electrical energy
produces sound waves
measures temperature
A Motor ________.
turns 360 degrees and is used for wheels, rollers, conveyors
is only used for lighting purposes
cannot rotate at all
is used exclusively for storing data
is a type of battery
