Last Updated on June 17, 2021 by Admin

DevNet Associate (Version 1.0) – DevNet Associate Module 3 Exam Answers

  1. 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 prepare the environment before installing a Python package
    • to output a list of installed Python packages
    • to deactivate the current virtual environment
    • to lock the current virtual environment
      Answers Explanation & Hints:

      The pip3 freeze Linux command is used to output a list of Python 3 packages installed in the current working environment.

  2. What is clean code?

    • code that performs a discrete task
    • code that has no reviewer comments
    • code that has passed functional testing
    • code that is easy to read and understand
  3. A developer is constructing some functions in Python. When is a function referred to as a module in Python?

    • when the function is initiated during the execution of a Python program
    • when the function is packaged in a single Python file
    • when the function is used for the first time
    • when the function is declared during the execution of a Python program
  4. What are two characteristics of the Git version control system? (Choose two.)

    • It is Cisco proprietary.
    • It is a distributed VCS.
    • It is open source.
    • It is a centralized VCS.
    • It is Microsoft proprietary.
    • It is a local VCS.
  5. When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added?

    • /dev/null
    • @@
    • +
  6. Which fundamental Lean principle forms the basis from which all other Lean principles flow?

    • build integrity in
    • deliver as fast as possible
    • eliminate waste
    • amplify learning
  7. Which statement describes the Waterfall methodology of software development?

    • Each step in the process must be completed before the next step starts.
    • Process tasks are broken up into time-boxed iterations called sprints.
    • Multiple steps in the process are started simultaneously.
    • It emphasizes elimination of wasted effort and maximizes customer value.
  8. A developer issues a Linux command python3 -m venv devenv . What is the developer trying to achieve?

    • to install the devnet tool sets in the Python 3 virtual environment named venv
    • to create a Python 3 virtual environment named devenv
    • to enter the Python 3 virtual environment named venv using the devnet tool sets
    • to activate the Python 3 virtual environment named devenv
  9. What special characters are used to enclose JSON objects?

    • square brackets []
    • curly braces {}
    • forward slash /
    • parenthesis ()
  10. Match the Git command with its function.

    DevNet Associate (Version 1.0) – DevNet Associate Module 3 Exam Answers 001
    DevNet Associate (Version 1.0) – DevNet Associate Module 3 Exam Answers 001
  11. A student is learning Python using the interactive interpreter mode. The student issues these commands:

    >>> class Url():
    ... 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’)
    • >>> url2 = Url(‘http’, ‘www.cisco.com’)
    • >>> url2 = Url(URL, ‘http://’, ‘www.cisco.com’)
    • >>> url2 = Url(‘http’, ‘://’, ‘www.cisco.com’)
  12. What characteristic describes a formal code review?

    • It provides direct interaction between the review team and the code author.
    • It utilizes a peer code review tool to identify code that needs retesting.
    • The entire code base is reviewed in a series of meetings.
    • Code is automatically sent for review by source code management systems once it is checked in.
  13. What is the role of the view component in the Model-View-Controller (MVC) flow?

    • It accepts the input and applies the required rules to format the data.
    • It manages the data, logic and rules of the application.
    • It accepts selected data and displays the visual representation to the user.
    • It requests user input and manipulates it to fit the format for the model.
  14. Match the Lean term with a description.

    DevNet Associate (Version 1.0) – DevNet Associate Module 3 Exam Answers 002
    DevNet Associate (Version 1.0) – DevNet Associate Module 3 Exam Answers 002

     

  15. What are two features of the formal code review? (Choose two.)

    • It involves the developer going through code with the reviewer line-by-line.
    • It promotes discussion among all of the reviewers.
    • It involves a review of the entire code base in a series of meetings.
    • It allows the developer to make changes on the spot.
    • For a quicker turnaround, it involves only one reviewer.
5 1 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments