
AP CSP: Unit 3 - Intro to Programming Test

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
ARTHUR DAVIS
Used 49+ times
FREE Resource
41 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
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
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.
Create a free account and access millions of resources
Similar Resources on Wayground
40 questions
Module 7 FundIT

Quiz
•
10th Grade
44 questions
Y11 Algorithms Homework

Quiz
•
12th Grade
44 questions
IGCSE chapter 4

Quiz
•
9th - 12th Grade
44 questions
SDD N5 Quiz

Quiz
•
12th Grade
40 questions
AP CSP Code.org Unit 5 Assessment 1 Review

Quiz
•
9th - 12th Grade
40 questions
AP Computer Science Principles Practice

Quiz
•
10th Grade
41 questions
Y11 Programming Basics Pt1 Homework

Quiz
•
12th Grade
45 questions
Unit 3 - Intro to App Design - Comp. Science

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
55 questions
CHS Student Handbook 25-26

Quiz
•
9th Grade
10 questions
Afterschool Activities & Sports

Quiz
•
6th - 8th Grade
15 questions
PRIDE

Quiz
•
6th - 8th Grade
15 questions
Cool Tool:Chromebook

Quiz
•
6th - 8th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
20 questions
Bullying

Quiz
•
7th Grade
18 questions
7SS - 30a - Budgeting

Quiz
•
6th - 8th Grade