Verityprep
Question Bank · Unit 3

AP® Computer Science A Class Creation Practice Questions

Work through AP Computer Science A practice questions on Class Creation, 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.

Subtopic: Writing Classes Clear filter

Questions 121–130 of 402
  1. 121
  2. 122
  3. 123
  4. 124
  5. 125
  6. 126
  7. 127
  8. 128
  9. 129
  10. 130

Question 121

Free response Writing Classes
An ISBN (International Standard Book Number) is a numeric book identifier that is assigned to each published book. Prior to 2007, the ISBN numbers were 10…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 122

Free response Writing Classes
This question involves methods that distribute text across lines of an electronic sign. The electronic sign and the text to be displayed on it are represented…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 123

Free response Writing Classes
The class SingleTable represents a table at a restaurant. public class SingleTable { /** Returns the number of seats at this table. The value is always greater…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 124

Free response Writing Classes
This question involves the implementation of a fitness tracking system that is represented by the StepTracker class. A StepTracker object is created with a…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 125

Free response Writing Classes
This question involves the creation and use of a spinner to generate random numbers in a game. A GameSpinner object represents a spinner with a given number of…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 126

Free response Writing Classes
Consider a guessing game in which a player tries to guess a hidden word. The hidden word contains only capital letters and has a length known to the player. A…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 127

Multiple choice Writing Classes
Consider the following partial class declaration. public class Park { private String name; private boolean playground; private int acres; public Park(String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 128

Multiple choice Writing Classes
Consider the following method. public void switcheroo(int num, int index, int[] nums) { int temp = num; num = nums[index]; nums[index] = temp; index++; }…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 129

Free response Writing Classes
Complex Numbers In mathematics, a complex number is a number that is composed of both a real component and an imaginary component. Complex numbers can be…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 130

Multiple choice Writing Classes
Consider the following class. public class Automobile { private String make, model; public Automobile(String myMake, String myModel) { make = myMake; model =…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 121 of 402
Page 13 of 41