Code Refactoring

Code Refactoring

University

6 Qs

quiz-placeholder

Similar activities

Introduction to Software Engineering-1

Introduction to Software Engineering-1

University

11 Qs

Programming Concepts Quiz

Programming Concepts Quiz

9th Grade - University

10 Qs

Desarrollo de Software

Desarrollo de Software

University

10 Qs

Software Development methodologies

Software Development methodologies

11th Grade - Professional Development

10 Qs

Algorithms

Algorithms

University

10 Qs

SQE Unit 3

SQE Unit 3

University

10 Qs

DDT1B_Pre-test_080322

DDT1B_Pre-test_080322

University

10 Qs

Cybersecurity Attack Types Quiz

Cybersecurity Attack Types Quiz

5th Grade - University

10 Qs

Code Refactoring

Code Refactoring

Assessment

Quiz

Computers

University

Medium

Created by

Sandra Hurtado

Used 17+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Refactoring is:

A disciplined technique for restructuring an existing body of code, altering its internal structure without changing its external behavior.

The application of concepts, techniques and tools for dramatically improving or optimizing software processes.

The practice of analyzing a software system, either in whole or in part, to extract design and implementation information.

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

It is important to do medium to big changes in order to get more benefits from refactoring

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A good moment for refactoring a code is:

When the client reports an error in the software and you have to fixed it quickly

When you are beginning to write a new function in a program

When you are analyzing a software and discover a bad smell

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One example of refactoring is:

Adding a new validation to a method

Optimizing a database query

Moving a responsibility from one class to another

Obtaining a class diagram from source code

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

One benefit of refactoring is:

Improves the software design

Improves the program performance

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

"Extract method/function" is a refactoring that consists of:

Move a method from one class to another

Move a fragment of code from an existing method into a new method

Change the parameters list of a method to make it shorter

Change the name of the method to make it more meaningful