Turtle Programming - Functions Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Karen Ayers
Used 17+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Consider the following incorrect program, which is intended to move the robot around the perimeter of a grid, as indicated by the drawing below. The starting position and direction of the robot is indicated in the diagram.
Line 1: 4 TIMES
Line 2: {
Line 3: MOVE_FORWARD()
Line 4: ROTATE_RIGHT()
Line 5: MOVE_FORWARD()
Line 6: MOVE_FORWARD()
Line 7: MOVE_FORWARD()
Line 8: MOVE_FORWARD()
Line 9: ROTATE_RIGHT()
Line 10: }
Given the options below, which lines should be removed so the program will work as intended?
Line 3 and Line 4
Lines 5, 6, 7, 8 and 9
Line 8 and Line 9
Line 9
2.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following is NOT true about functions in programming?
Functions are reusable programming abstractions.
Functions help reduce the complexity of writing and maintaining programs.
Functions cannot make calls to other functions within the same program.
Once defined, a function can be called many times from different parts of a program.
Functions help break a problem into logical chunks.
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
What is one important naming convention of functions?
A function name should indicate how long the function takes to run.
Two functions with similar behavior should be given identical names to indicate the relationship between them.
A function name should be as descriptive as possible to indicate what the function does.
Function names should be organized alphabetically.
The function name should begin with a number that indicates the order in which it should be executed.
4.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which one of the following statements about functions is TRUE?
A function can change names over the course of a program.
Code can be added or removed dynamically from a function while the program is running.
Functions can be called using different names depending on where in the program they are called.
Two functions can be given identical names as long as their code is identical.
Two functions in a single program can have different names but contain identical code.
5.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
6.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following will call the function drawStar?
drawStar
drawStar();
function drawStar (){
for(var i=0; i <5; i++) {moveForward(100); turnLeft(36):}}
function drawStar;
function drawStar();
7.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Why are parameters useful when programming?
Parameters determine the number of times the function will run.
Parameters allow for more flexible, generalized behaviors in functions.
Parameters are useful for teams of programmers because they help define the boundaries of the problem they are trying to solve.
Parameters change the order of operations within a function.
Similar Resources on Wayground
12 questions
Dictionary Class 11

Quiz
•
11th - 12th Grade
10 questions
CS Academy Unit 3 Review

Quiz
•
9th - 11th Grade
12 questions
Functions With Return Values U1M2 Python

Quiz
•
9th - 12th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
l.7. PYTHON FUNCTIONS

Quiz
•
12th Grade
10 questions
Gr10 DigiPro Sprint 1.1

Quiz
•
10th Grade
10 questions
TKA INFO 8

Quiz
•
8th Grade - University
10 questions
Unit 1 - BUILD A BASIC LAYOUT (EN)

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade