
Programming Fundamentals Quiz
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Diana Mendoza
FREE Resource
Enhance your content in a minute
34 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can we improve the following program?
Break down this program into more functions
Use a for loop to repeat the move command
Use a while loop to repeat the move command
Fix the indentation of this program
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In the following code below from the Cleanup Karel example, what is the purpose of If Statement #2?
To move the last time
To pick up the ball that is in the last spot
To pick up the ball that is in the last spot, if there is one
To take the ball from all of the positions that have a ball on them
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of using a for loop in code?
To do something if a condition is true
To do something while a condition is true
To repeat something a fixed number of times
To make programs run faster
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What makes the following command an invalid Karel command?
turnleft();
It should end in a colon rather than a semicolon
The l should be a capital L
It should start with a capital T
This command is correct
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is the correct way to define a turnRight function in Karel?
function turnRight() {
turnLeft();
turnLeft();
turnLeft();
}
function turnRight() { turnRight(); turnRight(); turnRight(); }
function turnRight {
turnLeft();
turnLeft();
turnLeft();
}
turnRight function() {
turnLeft();
turnLeft();
turnLeft();
}
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use functions in Karel programs?
Break down our program into smaller parts
Avoid repeating code
Make our program more readable
All of the above
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What’s wrong with this code?
The go function is defined twice
go is not a command that Karel understands
The go function has a syntax error
The go function is called twice
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
33 questions
OCR GCSE 2.6 Data Representation Y9
Quiz
•
9th Grade
38 questions
1.1 Architecture of CPU
Quiz
•
9th - 12th Grade
30 questions
Computer
Quiz
•
9th - 10th Grade
29 questions
Unreal Engine 4 - Widget Blueprints
Quiz
•
9th Grade - University
30 questions
Komputer Jaringan Dasar
Quiz
•
1st Grade - Professio...
35 questions
PLTW CSIM Lesson 1 Assessment
Quiz
•
5th - 9th Grade
39 questions
Domain 1.0 (DD1)
Quiz
•
9th - 12th Grade
30 questions
Fundamentals of Computers
Quiz
•
5th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
