
APCSA Barrons Practice exam 2
Computers
12th Grade - University
Used 80+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A large java program was tested extensively, and no errors were found. What can be concluded?
All of the preconditions in the program are correct
All of the postconditions in the program are correct
the program may have bugs
the program has no bugs
every method in the program may safely be used in other programs
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Refer to the incrementWage method. Which of the following is a correct /*implementation of incrementWage*/?
return hourlyWage + amt;
return getHourlyWage() + amt;
hourlywage += amt;
getHourlyWage() += amt;
hourlyWage = amt;
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the method changeUnionStatus. Which is a correct /*implementation of changeUnionStatus*/?
I only
II only
III only
I and II only
I, II, and III only
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A client method computePay will return a worker’s pay based on the number of hours worked.
Which replacement for /* code*/ is correct?
return hourlyWage * hours;
return getHourlyWage()*hours
return w.getHourlyWage () * hours;
return w.hourlyWage * hours;
return w.getHourlyWage() * w.hours;
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider this program segment. You may assume that word List has been declared as ArrayList<String>.
What is the maximum number of times that SHORT WORD can be printed?
3
4
wordList.size()
wordList.size() -1
s.length()
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Refer to the following method.
What value does mystery(4) return?
3
9
12
27
81
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Refer to the following declarations:
Which of the following correctly assigns the elements of the colors array to colorList? The final ordering of colors in colorList should be the same as in the colors array.
I only
II only
III only
II and III only
I,II, and III
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
45 questions
Comptia Network+ chapter 1-3 exam
Quiz
•
11th Grade - University
40 questions
SIA: Quiz 1 (Lesson 1-2)
Quiz
•
University
35 questions
asj 2022
Quiz
•
9th - 12th Grade
43 questions
LESSON 3 AND 4 (Individual quiz)
Quiz
•
12th Grade
35 questions
Internet Safety Quiz
Quiz
•
7th Grade - University
45 questions
Video Games
Quiz
•
9th - 12th Grade
40 questions
ĐỀ CƯƠNG ÔN TẬP CUỐI KÌ 1_TIN HỌC 10_KNTT
Quiz
•
12th Grade
40 questions
Computer Science Pre-Assessment Quiz
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade