
XRP: Variables & Functions
Authored by Kathleen Mcnamara
Engineering
11th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
When do you want to use a variable?
to hold a value
to change values
never
to create a function
2.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Create a variable names velocity and set it to be 0
(a)
3.
OPEN ENDED QUESTION
3 mins • 1 pt
When would you use a while True loop?
Evaluate responses using AI:
OFF
4.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Why make functions?
easy to repeat code
easier to read
helps with variables
let's you use if statements
5.
LABELLING QUESTION
1 min • 1 pt
What are the parts of a function?
defining the function
calling the function
parameters
6.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Finish creating this function:
(a) go_robot(velocity, time):
7.
FILL IN THE BLANKS QUESTION
1 min • 1 pt
Finish the code.
def run_robot(velocity, time):
drivetrain.set_speed(______, ______)
sleep(time)
(a)
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?