Which of these declarations is illegal?
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
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 Quizizz
15 questions
Latihan UPS2

Quiz
•
5th - 12th Grade
10 questions
Quiz 16 - Arrays and Loops

Quiz
•
11th Grade
16 questions
SLR4 | Data Structures with C# Examples

Quiz
•
11th Grade
10 questions
Quiz 15 - Array Basics

Quiz
•
11th Grade
15 questions
Area With Arrays

Quiz
•
10th - 12th Grade
12 questions
C++ References

Quiz
•
6th - 12th Grade
12 questions
Массивы C++

Quiz
•
10th - 11th Grade
11 questions
Trabajando con ArrayList

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University