
AP CSA Unit 1 Review
Authored by ANTHONY MEDINA
Computers
9th - 12th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
A Painter object called Pablito is facing North. Considering the following code, the effect of this code is that the Pablito object is now:
facing north
facing south
facing east
facing west
in an infinite loop
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is true?
Performing a task in a program requires a method
A method contains the statements that actually performs its task
The algorithm that the method represents can consist of a combination of sequencing, selection and iteration
All of the above
Answer explanation
All statements are true: a method is essential for task execution, it contains the necessary statements, and its algorithm can involve sequencing, selection, and iteration. Therefore, the correct answer is 'All of the above'.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Painter object called Mildred is initially facing south. Consider the following code segment. After the loop has terminated, which of the following must be true.
The Mildred object is blocked from moving north
The Mildred object is blocked from moving south
The Mildred object is blocked from moving east
The Mildred object is blocked from moving west
Answer explanation
Mildred starts facing south. If the loop involves moving south, she would be blocked from moving further south, confirming that she cannot move in that direction after the loop ends.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following statements is false
An object's atributes are specified in a class
A Chef object would likely have a menu attribute that represents the food they make
Each Chef object knows its Menu but not the Menu of other Chef objects
Attributes are specified by the class's methods
Answer explanation
The statement 'Attributes are specified by the class's methods' is false. Attributes are defined in the class itself, while methods define the behavior of the class. Attributes hold data, whereas methods operate on that data.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following Painter class
Given a Painter object called judy, which method call would cause a syntax error?
judy.move( );
judy.turnLeft( );
judy.canMove( )
judy.takePaint( );
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following Painter class
Given a Painter object called judy, which method call would cause a syntax error?
judy.move( );
judy.turnLeft( );
judy.paint( );
judy.takePaint( );
Answer explanation
The method call judy.paint( ); causes a syntax error because it likely requires parameters or is not defined in the Painter class. The other methods judy.move( );, judy.turnLeft( );, and judy.takePaint( ); are valid.
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
10 questions
=NOW()
Quiz
•
11th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
10 questions
Lourdes Amaranta Ayala Gracia
Quiz
•
8th Grade - University
10 questions
Grade 11 - Quiz 1 Introduction to Arrays
Quiz
•
11th Grade
10 questions
Q1L1: Introduction to MIL (Quiz)
Quiz
•
12th Grade
10 questions
ICT Java programming workshop
Quiz
•
9th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
10 questions
สอบย่อย ครั้งที่ 1 (BC.2/2)
Quiz
•
11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
El Verbo IR Practice
Quiz
•
9th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
10 questions
Valentine's Day History and Traditions
Interactive video
•
6th - 10th Grade
20 questions
Graphing Inequalities on a Number Line
Quiz
•
6th - 9th Grade
20 questions
Exponent Properties
Quiz
•
9th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade