ECM2414 Week one quiz Flashcards

SDLC and Nested loops

You may prefer our related Brainscape-certified flashcards:
1
Q

When shall we consider to use the waterfall model?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the benefits of nested classes?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why do we usually say “inner classes are more useful than static nested classes”?

A

Static nested classes cannot access the instance members.,

Inner classes can access the instance members.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When shall we consider to use Prototype model?

A

The desired system needs to have a lot of interaction with the end users.,

Designing an online system.,

Designing a human computer interface system.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the benefits of pair programming?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly