
Chapter 5: Design Properties
Authored by Software Engineering
Mathematics
1st - 5th Grade
CCSS covered
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
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.1
CCSS.RI.1.4
CCSS.RI.2.1
CCSS.RI.3.1
CCSS.RL.2.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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?