

Programming Functions Flashcard
Flashcard
•
Other
•
10th Grade
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Student preview

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

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?