0
0
Software Engineeringknowledge~10 mins

Software engineering principles - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to identify the principle that encourages breaking a program into smaller parts.

Software Engineering
The principle of [1] suggests dividing software into smaller, manageable pieces.
Drag options to blanks, or click blank then click option'
AModularity
BEncapsulation
CInheritance
DPolymorphism
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing modularity with inheritance.
Thinking encapsulation means dividing code into parts.
2fill in blank
medium

Complete the code to name the principle that hides internal details from the user.

Software Engineering
The principle of [1] protects data by hiding internal details and exposing only necessary parts.
Drag options to blanks, or click blank then click option'
ACoupling
BAbstraction
CCohesion
DEncapsulation
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up encapsulation with abstraction.
Choosing cohesion instead, which is about relatedness of tasks.
3fill in blank
hard

Fix the error in naming the principle that allows objects to take many forms.

Software Engineering
The principle of [1] allows objects to be treated as instances of their parent class or their own class.
Drag options to blanks, or click blank then click option'
APolymorphism
BInheritance
CModularity
DAbstraction
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing polymorphism with inheritance.
Choosing modularity which is about dividing code.
4fill in blank
hard

Fill both blanks to complete the principle that measures how strongly components depend on each other.

Software Engineering
Low [1] and high [2] are desired for good software design.
Drag options to blanks, or click blank then click option'
Acoupling
Binheritance
Ccohesion
Dpolymorphism
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up coupling and cohesion.
Choosing inheritance or polymorphism instead.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension that filters principles by importance and formats keys.

Software Engineering
filtered = [1]: [2] for [3], importance in principles.items() if importance > 7
Drag options to blanks, or click blank then click option'
Aprinciples.keys()
Bimportance
Cprinciple.upper()
Dprinciple
Attempts:
3 left
💡 Hint
Common Mistakes
Using principles.keys() instead of iterating items.
Trying to uppercase keys without defining the variable.