Ic2mb Evangelista Module10&11

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

WEEK 10

Quiz 10.1

1. Enumerate the symptoms of bad code


 Rigidity
 Fragility
 Immobility
 Viscosity

2. S.O.L.I.D Priciples stands for.


 SOLID principles form the fundamental guidelines for building object-oriented
applications that are
robust, extensible, and maintainable.

3. Enumerate each principle saying.


 SOLID Principle
 Single Responsibility Principle
 Open Closed Principle
 Liskov’s Substitution Principle
 Interface Segregation Principle
WEEK 11
Quiz 9.1

1. Exceptional Handling
 What is exceptional handling explain? Exception handling is responding to exceptions
when a computer program runs. An exception occurs when an unexpected event
happens that requires special processing. ... Exception handling attempts to gracefully
handle these situations so that a program (or worse, an entire system) does not crash.

2. Exception
 An exception is an event, which occurs during the execution of a program, that disrupts
the normal flow of the program's instructions.

3. Checked Exceptions
 A checked exception is a type of exception that must be either caught or declared in the
method in which it is thrown.

4. Unchecked Exceptions
 Unchecked Exception in Java is those Exceptions whose handling is NOT verified during
Compile time . These exceptions occurs because of bad programming. The program
won't give a compilation error.

5. Assertion
 An assertion allows testing the correctness of any assumptions that have been made in
the program.

You might also like