Week 1 Flashcards

1
Q

What is Rapid Application Development?

A

Heavy Focus on tool use to reduce development time and costs

Deadline deadline often prioritised over requirements

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

What is Agile Develpment?

A

Software development practice based on short iterative “sprints”

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

What is a Pair Programming?

A

Two people working on a single programming task

2 Roles:

Driver - Typing the code

Navigator - Responsible for overall direction of programming

Roles periodically switched between the 2

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

What is the benefits of Pair Programming?

A

Better productivity

Good for transferring skills to each other

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

What are the benefits of OOP Programming?

A

Encapsulation/ information hiding

Inheritance

Polymorphism

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

What are the negatives of Encapsulation?

A

If you have 2 tightly coupled classes

rely heavily on members in each class

Lots of work involed in creating functions to access those members due to encapsulation

This issue is overcome with nested classes

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

What are Nested Classses?

A

Where a class is defined in another class allowing the Outer class

Helps you logically group classes that are used in one place

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

What are the 2 types of Nested Classes?

A

Static nested class (does not have access to instance members)

Inner class (does have access to instance members)

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

What is the difference between a Class and a Network Class?

A

Standard outer class can only be clared with two modifiers, public and the default package private

A nested class can be declared as any of the standard modifiers (public, private, protected or package private)

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

What are the properties of Inner Classes?

A

Can be difficult to spot in code

Will produce two class files on compilation:

Outerclass.class

Outerclass$InnerClass.class - tells you the inner class relies on the outer class

All nested classes can be accessed externally

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

What is an example of a Static Nested Class?

A

Class Car {

static class Gearbox {

}
}

Accessed using enclosing class name:

Car.Gearbox

Creates object for static nested class:

Car.Gearbox nestedobject = New Car.Gearbox();

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

What is a Local Class?

A

Defined and exist solely within a block (usually a method)

Cannot access method local variables (unless passed as arguments) unless they are declared as final

Can access all the members of the outer class instance like standard inner class members

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

What are Anonymous classes?

A

Classes that are declared without any class name at all - therefore they are named anonymous classes

Not only may these be defined within a method, they may also be defined within an argument to a method!

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