DevAsc Flashcards

1
Q

Which two concepts describe test-driven development? (Choose two.)

A. User acceptance testers develop the test requirements.
B. It enables code refactoring.
C. Tests are created when code is ready for release.
D. Implementation is driven by incremental testing of release candidates.
E. Write a test before writing code.

A

C. Tests are created when code is ready for release.

D. Implementation is driven by incremental testing of release candidates.

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

Which task is performed because the test-driven development approach is being used?

A. creating test scenarios based on continuous development
B. writing code without committing any coding violations
C. refactoring code that is covered by existing tests
D. testing existing software before developing new code

A

D. testing existing software before developing new code

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

What is the first development task in test-driven development?
A. Write code that implements a desired function.
B. Write a failing test case for a desired function.
C. Reverse engineer the code for a desired function.
D. Write a passing test case for existing code.

A

B. Write a failing test case for a desired function.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
In test-driven development, what are two of the green bar patterns? (Choose two.)
A. another test
B. break
C. triangulate
D. starter test
E. fake it
A

C. triangulate

E. fake it

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
In the test-driven development model, what is changed after a test fails?
A. schedule
B. project requirements
C. code
D. test
A

C. code

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

What is a benefit of test-driven development?
A. strict adherence to product requirements
B. faster releases that have minimal features
C. early customer involvement
D. increased code quality

A

D. increased code quality

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

Which two statements describe the advantages of using a version control system? (Choose two.)
A. It allows for branching and merging so that different tasks are worked on in isolation before they are merged into a feature or master branch.
B. It provides tooling to automate application builds and infrastructure provisioning.
C. It allows multiple engineers to work against the same code and configuration files and manage differences and conflicts.
D. It provides a system to track User Stories and allocate to backlogs.
E. It allows developers to write effective unit tests.

A

A. It allows for branching and merging so that different tasks are worked on in isolation before they are merged into a feature or master branch.

C. It allows multiple engineers to work against the same code and configuration files and manage differences and conflicts.

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

What are two advantages of version control software? (Choose two.)
A. It supports tracking and comparison of changes in binary format files.
B. It allows new team members to access the current code and history.
C. It supports comparisons between revisions of source code files.
D. It provides wiki collaboration software for documentation.
E. It allows old versions of packaged applications to be hosted on the Internet.

A

A. It supports tracking and comparison of changes in binary format files.
B. It allows new team members to access the current code and history.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Before which process is code review performed when version control is used?
A. checkout of code
B. merge of code
C. committing code
D. branching code
A

B. merge of code

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

What is an advantage of a version control system?
A. facilitates resolving conflicts when merging code
B. ensures that unit tests are written
C. prevents over-writing code or configuration files
D. forces the practice of trunk-based development

A

A. facilitates resolving conflicts when merging code

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

Refer to the exhibit.

Which Python data structure does my_json contain?
A. map
B. list
C. json
D. dict
A

D. dict

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
When a Cisco IOS XE networking device is configured using RESTCONF, what is the default data-encoding method?
A. JSON
B. YAML
C. XML
D. x-form-encoding
A

C. XML

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