
AP CSP: Unit 3 - Intro to Programming Test
Authored by ARTHUR DAVIS
Computers
9th - 12th Grade
Used 51+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
High level programming language
2.
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
3.
MULTIPLE CHOICE QUESTION
15 mins • 1 pt
Which of the following images shows the path and ending location of the robot that will result from executing the code above. The starting location of the robot is shown as dotted triangle for cases where the robot does not start and end at the same location.
REPEAT 4 TIMES {
MOVE_FORWARD()
MOVE_FORWARD()
MOVE_FORWARD()
ROTATE_RIGHT(90)
MOVE_FORWARD()
ROTATE_RIGHT(90)
MOVE_FORWARD()
ROTATE_RIGHT(90)
}
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Algorithm
5.
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.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Low level programming language
7.
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.
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
40 questions
Remidi DKV1
Quiz
•
10th Grade
40 questions
Pemrograman1
Quiz
•
10th Grade
40 questions
Prakarya Kelas XI - 2020
Quiz
•
11th Grade
39 questions
ข้อสอบโลกดาราศาสตร์
Quiz
•
10th Grade
38 questions
Cyber 1 Module 1 Review
Quiz
•
10th Grade
40 questions
Ulangan Harian ke -2 T.P 2024/2025
Quiz
•
9th Grade
45 questions
TryOut Ujian Sekolah Pengetahuan - TIK SMP N 1 JEPARA
Quiz
•
12th Grade
44 questions
Movies
Quiz
•
2nd Grade - Professio...
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