AP Computer Science A Unit 5 Section 2 (Constructors)

AP Computer Science A Unit 5 Section 2 (Constructors)

Assessment

Flashcard

Computers

10th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

5 questions

Show all answers

1.

FLASHCARD QUESTION

Front


Options: , , , ,
Correct Answer:

Media Image

Back

Media Image

2.

FLASHCARD QUESTION

Front


Options: , , , ,
Correct Answer:

Media Image

Back

Media Image

3.

FLASHCARD QUESTION

Front

The Employee class will contain a String attribute for an employee’s name and a double attribute for the employee’s salary. Which of the following is the most appropriate implementation of the class?

Back

Media Image

4.

FLASHCARD QUESTION

Front

Media Image

Back

Student max = new Student (10, "Max", 3.75);

5.

FLASHCARD QUESTION

Front

What is the precondition for the relationship between m and n? Options: /* Precondition: m <= n */, /* Precondition: n <= m */, /* Precondition: m >= 0 and n >= 0 */, /* Precondition: m <= 0 and n <= 0 */, /* Precondition: m <= 0 and n >= 0 */

Media Image

Back

/* Precondition: m <= n */

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?