Software Re-factoring
1.

Which of these is true of refactoring ?

A.  

It can be applied to any programming language

B.  

It changes the functions of the program itself

C.  

Most basic editing environments do not support simple refactoring

D.  

None of the above

2.

Why is it important to focus refactoring efforts toward code files with the highest risk ?

A.  

Refactored code is more difficult to test

B.  

It is an unrefined approach to modernization

C.  

It can increase the cost of adding new features

D.  

It is a time-consuming process the requires a lot of work to create value

3.

Which of these practices can lead to problems when refactoring code?

A.  

Using the results of a database query directly

B.  

Creating a set of unit tests for the existing code

C.  

Refactoring code that has many external interfaces

D.  

Both using the results of a database query directly and refactoring code that has many external interfaces

4.

True or false: Refactoring should be performed in small chunks or phases?

A.  

True

B.  

False

5.

Why should IT pros familiarize themselves with the concept of application refactoring?

A.  

To extend the lives of business-critical apps that are outdated

B.  

Because older apps were not designed for mobile compatibility

C.  

Because old software vendors go out of business or are acquired

D.  

All of the above

6.

Why do some feel that refactoring doesn't often result in increased performance?


 

A.  

Refactoring is somewhat of an outdated process

B.  

Refactoring changes are often small enough that they may not make a noticeable difference

C.  

Because it is too simple a process to be considered effective

D.  

Because test driven development is a more popular technique

7.

What is the most common cause of refactoring problems ?

A.  

The code itself

B.  

A lack of expertise

C.  

A lack of proper tools

D.  

The fact that it doesn't work

8.

What are the problems with re-structuring?

A.  

Loss of comments

B.  

Loss of documentation

C.  

Heavy computational demands

D.  

All of the mentioned

9.

What are the problems with re-structuring?

A.  

Loss of comments

B.  

Loss of documentation

C.  

Heavy computational demands

D.  

All of the mentioned

10.

Reverse engineering of data focuses on

A.  

Internal data structures

B.  

Database structures

C.  

ALL of the mentioned

D.  

None of the mentioned