ECM2414 quizes Flashcards
SDLC and Nested loops
When shall we consider to use the waterfall model?
The requirements are very well known, clear and fixed.,
The product definition is stable.,
Technology to be used is understood, and enough resources with required expertise are available.
What are the benefits of nested classes?
It is a way of logically grouping classes that are only used in one place,
It increases encapsulation.,
It can lead to more readable and maintainable code.
Why do we usually say “inner classes are more useful than static nested classes”?
Static nested classes cannot access the instance members.,
Inner classes can access the instance members.
When shall we consider to use Prototype model?
The desired system needs to have a lot of interaction with the end users.,
Designing an online system.,
Designing a human computer interface system.
What are the benefits of pair programming?
The observer can consider the “strategic” direction of the work, coming up with ideas for improvements and likely future problems to address.,
The driver can focus all their attention on the implementation and coding.,
It’s a good way of transferring skills to junior developers.
Choose the correct statements from the below.
a.
The local class can access all the members of the outer class
b.
The local class cannot access method local variables unless they are declared as final.
c.
The local class cannot access method local variables.
d.
The local class can access method local variables even they are not declared as final.
The local class can access all the members of the outer class ,
The local class cannot access method local variables unless they are declared as final.
a, b