AP CSA Review

Quiz
•
Computers
•
11th Grade
•
Medium
Melanie Sirianni
Used 9+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these declarations is illegal?
Shape foo = new Rectangle();
Shape bar = new Square();
Rectangle zim = new Square();
Ellipse dib = new Shape();
Ellipse gaz = new Circle();
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Does this example show any method that are OVER LOADED?
Yes
No
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Does this example show any method that are OVERRIDDEN?
Yes
No
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Does this example show any POLYMORPHIC methods?
Yes
No
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is returned by the .add( Object E) method in the ArrayList class?
true
The object that is added
The position where the object is added
It has a void return type. Nothing is returned
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
System.out.println("W");
System.out.println("X");
System.out.print("Y");
System.out.print("Z");
What is printed as a result of executing the code segment?
WXYZ
W
XYZ
WX
YZ
W
X
YZ
W
X
Y
Z
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Consider the following code segment.
String str = "AP";
str += "CS " + 1 + 2;
System.out.println(str);
What is printed as a result of executing the code segment?
CS AP12
AP CS3
CSAP 12
APCS 12
APCS 3
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Java - arrays and String methods

Quiz
•
9th - 12th Grade
10 questions
Programming Basics

Quiz
•
11th - 12th Grade
10 questions
Arrays and Lists

Quiz
•
6th - 12th Grade
15 questions
Array

Quiz
•
10th - 12th Grade
12 questions
Arrays Intro

Quiz
•
9th - 12th Grade
17 questions
Arrays recap

Quiz
•
9th Grade - University
10 questions
Arrays

Quiz
•
11th Grade - University
10 questions
C++ vs Python: A Quiz Introduction

Quiz
•
11th Grade - University
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade