M3 REVIEW Flashcards
What characteristic describes a formal code review?
The entire code base is reviewed in a series of meetings.
Which SDLC development methodology employs many quick iterations known as sprints?
Agile
What is clean code?
code that is easy to read and understand
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?
> > > url2 = Url(‘www.cisco.com’, ‘http’)
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.
Waterfall
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?
over-the-shoulder
What special characters are used to enclose JSON objects?
curly braces {}
How does an application use a module in Python?
through the import statement
What are the three states of a Git file?
committed
modified
staged
A developer issues a Linux command python3 -m venv devenv . What is the developer trying to achieve?
to create a Python 3 virtual environment named devenv
A developer wants to find the location of the Python 3 executable file. Which command should the developer use?
which python3
Which term is used to describe the first line of an XML document?
prologue
Which fundamental Lean principle forms the basis from which all other Lean principles flow?
eliminate waste
What is the role of the view component in the MVC flow?
It accepts selected data and displays the visual representation to the user.
When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added?
+
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?
to output a list of installed Python packages
What is the role of the controller component in the MVC flow?
It takes user input and manipulates it to the proper format for the model.
A developer is constructing some functions in Python. When is a function referred to as a module in Python?
when the function is packaged in a single Python file
Which statement describes the Waterfall methodology of software development?
Each step in the process must be completed before the next step starts
What are two features of the formal code review?
It promotes discussion among all of the reviewers
It involves a review of the entire code base in a series of meetings.
What are the two characteristics of the Git version control system?
distributed VCS
open source
Which two programming components are defined as blocks of code that perform tasks when executed?
functions
methods
Which SDLC phase concludes the functional code that satisfies customer requirements and is ready to be tested?
implementation