Question Bank · Unit 1
AP® Computer Science A Using Objects and Methods Practice Questions
Work through AP Computer Science A practice questions on Using Objects and Methods, then check each answer against a worked solution.
Free · no sign-up
Open questions need no account. Sign up or log in to open the rest.
All 776
Multiple choice 681
Free response 95
Subtopic: Using Objects
Clear filter
This question involves two classes that are used to process log messages. A list of sample log messages is given below. CLIENT3:security alert - repeated login…
Sign up now. It's free!
See the full question with its answer and worked solution.
Consider the following code segment: String str = "012345"; for (int i = 0; i < str.length() - 1; i++)…
Sign up now. It's free!
See the full question with its answer and worked solution.
What is the output from the following code? String s = "Computer Science is fun!"; String s1 =…
Sign up now. It's free!
See the full question with its answer and worked solution.
A high school Casino Night event offers a game of chance in which a player can buy a ticket to have a low-probability chance at winning a fixed prize. (All…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given the following code segment: String s1 = new String("hi"); String s2 = new String("hi"); String s3 = s2;…
Sign up now. It's free!
See the full question with its answer and worked solution.
Consider the following code segment: String s1 = "Hi There"; String s2 = s1; String s3 = s2; String s4 =…
Sign up now. It's free!
See the full question with its answer and worked solution.
Given the following code segment: String s = "Computer Science is fun!"; String s1 = s.substring(0,8); String s2…
Sign up now. It's free!
See the full question with its answer and worked solution.
Consider the following code segment: String s1 = new String("hi"); String s2 = new String("hi there"); String s3 = s2.substring(0, 2);…
Sign up now. It's free!
See the full question with its answer and worked solution.
Consider the following code segment: public static void test(String str, int y) { str = str + "bow"; y = y *…
Sign up now. It's free!
See the full question with its answer and worked solution.
Consider the following code segment: String str = "mnopqr"; for (int x = 0; x < str.length() - 1; x++) {…
Sign up now. It's free!
See the full question with its answer and worked solution.
Page 28 of 55
Get your FRQs graded in the Student Portal
In the Verityprep Student Portal, answer the FRQs of AP practice and past exams by typing or uploading a photo. A teacher grades them with that year's official College Board scoring guidelines and gives you an estimated 1–5 score.
Join Verityprep now
AP® and Advanced Placement® are registered trademarks of the College Board, which is not affiliated with, and does not endorse, Verityprep. Names are used for identification purposes only.