Programming Functions Flashcard

Programming Functions Flashcard

Assessment

Flashcard

Other

10th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

37 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is a function in programming?

Back

A reusable block of code that performs a task

2.

FLASHCARD QUESTION

Front

In Karel, what does the command move() do?

Back

Moves Karel one space forward

3.

FLASHCARD QUESTION

Front

What command would you use to turn Karel 90 degrees to the left?

Back

turnLeft();

4.

FLASHCARD QUESTION

Front

What is the purpose of defining a function in Karel?

Back

To simplify the program and avoid repeated code

5.

FLASHCARD QUESTION

Front

Which of the following is an example of a function call? Options: turnLeft();, function turnAround() { ... }, int x = 5;, if (x == 0)

Back

turnLeft();

6.

FLASHCARD QUESTION

Front

What happens if Karel tries to move into a wall?

Back

Karel stops and the program continues

7.

FLASHCARD QUESTION

Front

What does takeBall() ; do in Karel?

Back

Karel picks up a ball from the current position

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?