Python Programming for Lego Spike Prime Robots

Python Programming for Lego Spike Prime Robots

Assessment

Flashcard

Computers

7th Grade

Hard

Created by

Leah Lynn

FREE Resource

Student preview

quiz-placeholder

9 questions

Show all answers

1.

FLASHCARD QUESTION

Front

To open a new Python project in the Spike app tap/click on the ________ icon.

Back

Plus

2.

FLASHCARD QUESTION

Front

To set the programming language to Python be sure to select ________ immediately after starting a new project.

Back

Python

3.

FLASHCARD QUESTION

Front

This toolbar across the top of the editor shows which _______ are connected to which ______ on the robot.

Back

motors, ports

4.

FLASHCARD QUESTION

Front

Type out the line of code that tells the robot to import motor.

Back

import motor

5.

FLASHCARD QUESTION

Front

Type out the code statement that tells the robot to run motor A for 360 degrees at 720 degrees per second.

Back

motor.run_for_degrees(port.A, 360, 720)

6.

FLASHCARD QUESTION

Front

To effectively use awaitable code with the flexibility to run commands either concurrently or sequentially, you must run your code in an _________ _________ using a ____ _____.

Back

Asynchronous function, run loop

7.

FLASHCARD QUESTION

Front

What's missing from this block of code?

Back

async def main():

8.

FLASHCARD QUESTION

Front

What's missing?

Back

await

9.

FLASHCARD QUESTION

Front

What's missing?

Back

runloop.run(main())