Chapter 5: Design Properties

Chapter 5: Design Properties

1st - 5th Grade

7 Qs

quiz-placeholder

Similar activities

Daily Maths

Daily Maths

5th - 10th Grade

10 Qs

Battle Games #3

Battle Games #3

4th - 6th Grade

10 Qs

Numerasi

Numerasi

5th Grade

10 Qs

Q4.W2.D3 MATH 1

Q4.W2.D3 MATH 1

1st Grade

10 Qs

PH MM 4A BAB 5 "STATISTIKA"

PH MM 4A BAB 5 "STATISTIKA"

4th Grade

10 Qs

Graph - Angles

Graph - Angles

4th Grade

10 Qs

Math - Mental Ability and Tables

Math - Mental Ability and Tables

3rd Grade

10 Qs

Subtraction Double Digit and Three Digit

Subtraction Double Digit and Three Digit

2nd - 3rd Grade

8 Qs

Chapter 5: Design Properties

Chapter 5: Design Properties

Assessment

Quiz

Mathematics

1st - 5th Grade

Practice Problem

Medium

CCSS
RI.1.4, RI.2.1, RL.1.1

+2

Standards-aligned

Created by

Software Engineering

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

According to Parnas (1972), which of these is NOT a benefit of information hiding?

Parallel development

Changeability

Comprehensibility

Increased Cohesion

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A system uses tables to display data. Some tables sort by clicking column headers, others don't. Some show prices in euros, others in dollars. What design property is violated?

Information Hiding

Cohesion

Conceptual Integrity

Coupling

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the ParkingLot example, why should the vehicles data structure be private?

To allow changing the data structure without impacting clients

To make the code run faster

To prevent compilation errors

To save memory

4.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

A cohesive class should have how many responsibilities? (Select all that apply)

One single responsibility

Two complementary ones

At least three

As many as possible

Tags

CCSS.RI.1.4

CCSS.RI.2.1

CCSS.RL.1.1

CCSS.RL.2.1

CCSS.RL.3.1

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is an example of ACCEPTABLE coupling?

Classes communicating through hidden data

Two classes sharing global variables

Class A directly reading Class B's private file

A class using public methods from Java's Hashtable

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function violates cohesion principles?

pop() - removes top element from stack

sin_or_cos(x, op) - calculates sine OR cosine based on a flag

getBalance() - returns account balance

calculateDropoutRate()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What makes coupling "poor" rather than "acceptable"?

Dependencies not mediated by stable interfaces

Having dependencies

Writing long method names

Using too many classes