Devasc 3-4 Flashcards
*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 prepare the environment before installing a Python package
B. to output a list of installed Python packages
C. to deactivate the current virtual environment
D. to lock the current virtual environment
B
*What is clean code?
A. code that performs a discrete task
B. code that has no reviewer comments
C. code that has passed functional testing
D. code that is easy to read and understand
D
*A developer is constructing some functions in Python. When is a function referred to as a module in Python?
A. when the function is initiated during the execution of a Python program
B. when the function is packaged in a single Python file
C. when the function is used for the first time
D. when the function is declared during the execution of a Python program
B
*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.
B,C
When a unified .diff file is being reviewed, which symbol is used to indicate that a line has been added?
A. – B. /dev/null C. @@ D. +
D
Which fundamental Lean principle forms the basis from which all other Lean principles flow?
A. build integrity in
B. deliver as fast as possible
C. eliminate waste
D. amplify learning
C.
Which statement describes the Waterfall methodology of software development?
A. Each step in the process must be completed before the next step starts.
B. Process tasks are broken up into time-boxed iterations called sprints.
C. Multiple steps in the process are started simultaneously.
D. It emphasizes elimination of wasted effort and maximizes customer value.
A
What special characters are used to enclose JSON objects?
A. square brackets []
B. curly braces {}
C. forward slash /
D. parenthesis ()
B
What characteristic describes a formal code review?
A.It provides direct interaction between the review team and the code author.
B. It utilizes a peer code review tool to identify code that needs retesting.
C. The entire code base is reviewed in a series of meetings.
D. Code is automatically sent for review by source code management systems once it is checked in.
C
What is the role of the view component in the Model-View-Controller (MVC) flow?
A. It accepts the input and applies the required rules to format the data.
B. It manages the data, logic and rules of the application.
C. It accepts selected data and displays the visual representation to the user.
D. It requests user input and manipulates it to fit the format for the model.
C
What are two features of the formal code review? (Choose two.)
A. It involves the developer going through code with the reviewer line-by-line.
B. It promotes discussion among all of the reviewers.
C. It involves a review of the entire code base in a series of meetings.
D. It allows the developer to make changes on the spot.
E. For a quicker turnaround, it involves only one reviewer.
B,C
In which situation would a synchronous API be used?
A. when the client is not required to take action
B. when the original API request or data from the request is delayed
C. when data is being retrieved from a database
D. when a server is not part of the process
C
Which API architectural style uses an XML-based messaging protocol to communicate between applications?
A. SOAP
B. XML-RPC
C. REST
D. NFS
A
Which SOAP message root element defines the XML document as a SOAP message?
A. Header
B. Meta tag
C. Body
D. Envelope
D
What is the meaning of the term flow as it relates to the OAuth 2.0 authorization framework?
A. It is the number of requests contained in the token bucket.
B. It is the sequence of data exchanged between a REST API request and a response.
C. It is a process for an API request to send authentication credentials to a web service.
D. It is a process for an API user to obtain an access token from the authorization server.
D