AP Computer Science A Unit 5 Section 2 (Constructors)

AP Computer Science A Unit 5 Section 2 (Constructors)

Assessment

Flashcard

Computers

10th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

5 questions

Show all answers

1.

FLASHCARD QUESTION

Front


Options: , , , ,
Correct Answer:

Back

Media Image

2.

FLASHCARD QUESTION

Front


Options: , , , ,
Correct Answer:

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

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 */

Back

/* Precondition: m <= n */