XRP: Variables & Functions

XRP: Variables & Functions

11th Grade

11 Qs

quiz-placeholder

Similar activities

Elevator and Cascading Lift Mechanism Quiz

Elevator and Cascading Lift Mechanism Quiz

11th Grade

15 Qs

Introduction to Robotics

Introduction to Robotics

11th Grade

14 Qs

Designing a V5 Chassis

Designing a V5 Chassis

11th Grade

15 Qs

QUIZ SEJARAH ROBOTIKA DAN PENERAPAN

QUIZ SEJARAH ROBOTIKA DAN PENERAPAN

11th Grade

10 Qs

Recap of session 2 & 3 - Legislation and Regulations

Recap of session 2 & 3 - Legislation and Regulations

11th Grade

10 Qs

Energy in Orbits Quiz

Energy in Orbits Quiz

11th Grade

10 Qs

Railway Systems Quiz

Railway Systems Quiz

11th Grade

15 Qs

XRP: Variables & Functions

XRP: Variables & Functions

Assessment

Quiz

Engineering

11th Grade

Medium

Created by

Kathleen Mcnamara

Used 2+ times

FREE Resource

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 BLANK QUESTION

1 min • 1 pt

Create a variable names velocity and set it to be 0

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?

a
b
c

calling the function

defining the function

parameters

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Finish creating this function:

_______ go_robot(velocity, time):

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Finish the code.

def run_robot(velocity, time):

drivetrain.set_speed(______, ______)

sleep(time)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?