Verityprep
Question Bank · Unit 3

AP® Computer Science A Class Creation Multiple Choice Questions

Work through AP Computer Science A multiple-choice 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 191–200 of 359
  1. 191
  2. 192
  3. 193
  4. 194
  5. 195
  6. 196
  7. 197
  8. 198
  9. 199
  10. 200

Question 191

Multiple choice Writing Classes
Consider the following class declaration. public class Point { private int xCoor; // the x-coordinate of the point private int yCoor; // the y-coordinate of the…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 192

Multiple choice Writing Classes
Consider the following class declaration. public class DoSomething { private String str; private static int num = 0; public DoSomething (String s) { str = s;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 193

Multiple choice Writing Classes
Consider the following class used to represent a movie. public class Movie { private String title; private int year; public Movie() { title = "title"; year = 0;…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 194

Multiple choice Writing Classes
public class Student { private String firstName; private String lastName; private int stuId; private static int lastIdAssigned = 1000; public Student(String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 195

Multiple choice Writing Classes
public class Student { private String firstName; private String lastName; private int stuId; private static int lastIdAssigned = 1000; public Student(String…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 196

Multiple choice Writing Classes
Which of the following correctly…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 197

Multiple choice Writing Classes
public class Vehicle { private int fuel; public Vehicle() { fuel = 0; } public Vehicle(int fuelAmt) { fuel = fuelAmt; } public void start() {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 198

Multiple choice Writing Classes
public class Vehicle { private int fuel; public Vehicle() { fuel = 0; } public Vehicle(int fuelAmt) { fuel = fuelAmt; } public void start() {…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 199

Multiple choice Writing Classes
public class Alpha { public void eeny(int a, int b) { System.out.print("alpha eeny "); } public void eeny(int a) { System.out.print("eeny alpha "); } // other…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 200

Multiple choice Writing Classes
public class Alpha { public void eeny(int a, int b) { System.out.print("alpha eeny "); } public void eeny(int a) { System.out.print("eeny alpha "); } // other…

Sign up now. It's free!

See the full question with its answer and worked solution.

Question 191 of 359
Page 20 of 36