M3 REVIEW Flashcards

1
Q

What characteristic describes a formal code review?

A

The entire code base is reviewed in a series of meetings.

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

Which SDLC development methodology employs many quick iterations known as sprints?

A

Agile

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

What is clean code?

A

code that is easy to read and understand

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

A student is learning Python using the interactive interpreter mode. The student issues these commands:

> > > class Uri():
… def_init__(self, host, prot):
… self.host = host
… self.prot = prot
… self.url = self.prot + “://” + self.host

Which command should the student use to create an object with one attribute being a valid URL?

A

> > > url2 = Url(‘www.cisco.com’, ‘http’)

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

Which software development methodology prescribes that developers follow a strict process order by completing one step in the SDLC process before proceeding to the next step.

A

Waterfall

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

Which code review method involves the developer going through the code line-by-line with the reviewer, allowing the developer to make changes on the spot?

A

over-the-shoulder

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

What special characters are used to enclose JSON objects?

A

curly braces {}

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

How does an application use a module in Python?

A

through the import statement

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

What are the three states of a Git file?

A

committed
modified
staged

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

A developer issues a Linux command python3 -m venv devenv . What is the developer trying to achieve?

A

to create a Python 3 virtual environment named devenv

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

A developer wants to find the location of the Python 3 executable file. Which command should the developer use?

A

which python3

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

Which term is used to describe the first line of an XML document?

A

prologue

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

Which fundamental Lean principle forms the basis from which all other Lean principles flow?

A

eliminate waste

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

What is the role of the view component in the MVC flow?

A

It accepts selected data and displays the visual representation to the user.

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

When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added?

A

+

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

A developer issues the Linux command pip3 freeze in an activated Python 3 virtual environment. What is the function that is provided by the command?

A

to output a list of installed Python packages

17
Q

What is the role of the controller component in the MVC flow?

A

It takes user input and manipulates it to the proper format for the model.

18
Q

A developer is constructing some functions in Python. When is a function referred to as a module in Python?

A

when the function is packaged in a single Python file

19
Q

Which statement describes the Waterfall methodology of software development?

A

Each step in the process must be completed before the next step starts

20
Q

What are two features of the formal code review?

A

It promotes discussion among all of the reviewers
It involves a review of the entire code base in a series of meetings.

21
Q

What are the two characteristics of the Git version control system?

A

distributed VCS
open source

22
Q

Which two programming components are defined as blocks of code that perform tasks when executed?

A

functions
methods

23
Q

Which SDLC phase concludes the functional code that satisfies customer requirements and is ready to be tested?

A

implementation