
APCSA Practice test mine
Flashcard
•
Computers
•
11th Grade
•
Hard
Wayground Content
FREE Resource
Student preview

45 questions
Show all answers
1.
FLASHCARD QUESTION
Front
Which of the following best describes why an error occurs when the classes are compiled?
The class Alpha does not have a defined constructor.
The class Alpha must be declared as a subclass of Beta.
The class Beta must be declared as a subclass of Alpha.
The answer method cannot be accessed from a class other than Alpha.
The result of the method call item.answer() cannot be assigned to a variable of type double.
Back
The answer method cannot be accessed from a class other than Alpha.
2.
FLASHCARD QUESTION
Front
Which of the following can be used to replace the body of calculate so that the modified version of calculate will return the same result as the original version for all x ? Options: return 3 + x; return 3 * x; return 4 * x; return 6 * x; return 8 * x;
Back
return 8 * x;
3.
FLASHCARD QUESTION
Front
Back
return 8 * x;
4.
FLASHCARD QUESTION
Front
Which of the following could be used to replace /* missing constructor call */ so that the method will compile without error? Options: Sample(), Sample(int x = 10, double y = 6.2), Sample(int x, double y), Sample(10, 6.2), Sample(6.2, 10)
Back
Sample(10, 6.2)
5.
FLASHCARD QUESTION
Front
The following statement assigns an integer value to x.
int x = (int)(Math.random() * 5) + 10;
Consider the statement that would result if the positions of 5 and 10 were swapped in the preceding statement and the resulting integer were assigned to y.
int y = (int)(Math.random() * 10) + 5;
Which of the following are true statements about how the possible values assigned to y differ from the possible values assigned to x ?
I.
There are more possible values of x than there are possible values of y.
II.
There are more possible values of y than there are possible values of x.
III.
The value assigned to x can sometimes be the same as the value assigned to y.
I and III
II and III
Back
II and III
6.
FLASHCARD QUESTION
Front
Assume that check occurs at least once in str. Which of the following best describes the value returned by the what method?
Back
The index of the last occurrence of check inside str
7.
FLASHCARD QUESTION
Front
Which of the following declarations will compile without error? Options: I. Student a = new Student(); II. Student b = new Student("Juan", 15); III. Student c = new Student("Juan", "15"); I and II only I and III only
Back
I and II only
Create a free account and access millions of resources
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
42 questions
APUSH Mid-Term
Flashcard
•
11th Grade - University
40 questions
Close-up B1+ Unit 8 Quiz
Flashcard
•
10th Grade
42 questions
Flashcard sur le management
Flashcard
•
10th Grade
34 questions
Unit 108 AGD Flashcards
Flashcard
•
11th Grade
50 questions
LATIHAN SAS KELAS 11 MATERI POLINOMIAL
Flashcard
•
11th Grade
33 questions
Vocabulary Unit 1- E12
Flashcard
•
12th Grade
40 questions
Dịch Anh Việt
Flashcard
•
University
39 questions
U17 - W8 (More Cons)
Flashcard
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University