Programming Functions Flashcard

Programming Functions Flashcard

Assessment

Flashcard

Other

10th Grade

Hard

Created by

Quizizz 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

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?