Cisco® 200-901 Exam Practice Questions (P. 1)
- Full Access (586 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #1
Which two concepts describe test-driven development? (Choose two.)
- AUser acceptance testers develop the test requirements.
- BIt enables code refactoring.Most Voted
- CTests are created when code is ready for release.
- DImplementation is driven by incremental testing of release candidates.
- EWrite a test before writing code.Most Voted
Correct Answer:
BE
BE

Test-driven development (TDD) centers on a fundamental approach where you write a test for a specific piece of functionality before implementing that functionality in code. This method ensures the test fails initially since the functionality doesn't exist yet. After coding the necessary functionality, the focus shifts to making the test pass. The process doesn't end there; it also includes refactoring the code afterward to improve efficiency and readability while ensuring it still passes all tests. This dual focus on initial test creation followed by continuous code refinement captures the essence of TDD effectively.
send
light_mode
delete
Question #2
Which task is performed because the test-driven development approach is being used?
- Acreating test scenarios based on continuous development
- Bwriting code without committing any coding violations
- Crefactoring code that is covered by existing testsMost Voted
- Dtesting existing software before developing new code
Correct Answer:
C
Reference:
https://www.guru99.com/test-driven-development.html
C
Reference:
https://www.guru99.com/test-driven-development.html
send
light_mode
delete
Question #3
What is the first development task in test-driven development?
- AWrite code that implements a desired function.
- BWrite a failing test case for a desired function.Most Voted
- CReverse engineer the code for a desired function.
- DWrite a passing test case for existing code.
Correct Answer:
B
Reference:
https://technologyconversations.com/2013/12/20/test-driven-development-tdd-example-walkthrough/
B
Reference:
https://technologyconversations.com/2013/12/20/test-driven-development-tdd-example-walkthrough/
send
light_mode
delete
Question #4
In test-driven development, what are two of the green bar patterns? (Choose two.)
- Aanother test
- Bbreak
- CtriangulateMost Voted
- Dstarter test
- Efake itMost Voted
Correct Answer:
CE
Reference:
https://www.cs.uic.edu/~i442/Patterns%20for%20TDD.pdf
CE
Reference:
https://www.cs.uic.edu/~i442/Patterns%20for%20TDD.pdf
send
light_mode
delete
Question #5
In the test-driven development model, what is changed after a test fails?
- Aschedule
- Bproject requirements
- CcodeMost Voted
- Dtest
Correct Answer:
C
Reference:
https://www.guru99.com/test-driven-development.html#:~:text=In%20simple%20terms%2C%20test%20cases,code%20simple%20and%20bug%
2Dfree
C
Reference:
https://www.guru99.com/test-driven-development.html#:~:text=In%20simple%20terms%2C%20test%20cases,code%20simple%20and%20bug%
2Dfree
send
light_mode
delete
Question #6
What is a benefit of test-driven development?
- Astrict adherence to product requirements
- Bfaster releases that have minimal features
- Cearly customer involvement
- Dincreased code qualityMost Voted
Correct Answer:
A
A

Test-driven development (TDD) primarily benefits the coding process by enforcing a discipline where developers write tests before actually writing the feature code. This method ensures that each piece of added functionality is necessary and clearly linked to specified requirements, preventing speculative or excessive coding. By starting from the requirements and working toward fitting just those needs, TDD keeps development tight and focused. Although TDD can contribute to better-designed and higher-quality code, its core strength lies in aligning code strictly with client and project requirements, validating "A" as the correct answer.
send
light_mode
delete
Question #7
Which two statements describe the advantages of using a version control system? (Choose two.)
- AIt allows for branching and merging so that different tasks are worked on in isolation before they are merged into a feature or master branch.Most Voted
- BIt provides tooling to automate application builds and infrastructure provisioning.
- CIt allows multiple engineers to work against the same code and configuration files and manage differences and conflicts.Most Voted
- DIt provides a system to track User Stories and allocate to backlogs.
- EIt allows developers to write effective unit tests.
Correct Answer:
AC
AC

Version control systems are crucial in collaborative environments, allowing multiple developers to work concurrently on the same project without overwriting each other's contributions. This is accomplished through features such as branching and merging. Branching lets developers work in isolation on features without impacting the main project, while merging allows these independent changes to be combined smoothly into one unified codebase, handling any potential conflicts that might arise. This functionality not only safeguards the code from potential losses but also maintains a history of changes, who made them, and the specifics of each change, enhancing overall project management and bug tracking.
send
light_mode
delete
Question #8
What are two advantages of version control software? (Choose two.)
- AIt supports tracking and comparison of changes in binary format files.
- BIt allows new team members to access the current code and history.Most Voted
- CIt supports comparisons between revisions of source code files.Most Voted
- DIt provides wiki collaboration software for documentation.
- EIt allows old versions of packaged applications to be hosted on the Internet.
Correct Answer:
BC
BC

Version control systems play a pivotal role in software development by allowing team members to access the current codebase and its complete revision history. This facilitates onboarding new developers and ensuring everyone is up-to-date. They also empower developers to conduct detailed comparisons between different revisions of source code, simplifying debugging and enhancing understanding of code evolution over time. These capabilities are essential for maintaining consistency and accelerating collaborative development processes.
send
light_mode
delete
Question #9
Before which process is code review performed when version control is used?
- Acheckout of code
- Bmerge of codeMost Voted
- Ccommitting code
- Dbranching code
Correct Answer:
B
B

When following best practices in version control, the code review process typically occurs before merging code changes. This step ensures that all code contributions are examined and validated by other developers or automated systems to maintain code quality and consistency. Merging happens post-review to integrate changes safely into the main project, minimizing the risk of introducing errors or conflicts into the production codebase.
send
light_mode
delete
Question #10
What is an advantage of a version control system?
- Afacilitates resolving conflicts when merging codeMost Voted
- Bensures that unit tests are written
- Cprevents over-writing code or configuration files
- Dforces the practice of trunk-based development
Correct Answer:
A
A

Absolutely, choosing A is spot on. Version control systems like Git help a bunch when multiple devs are tweaking the same bits of a project. They really shine by handling those inevitable code clashes smoothly. This doesn't just prevent overwriting; it actively manages changes to keep the team in sync. Spotting and resolving conflicts during merges? That's crucial, making everything run smoother and keeping the code clean and functional.
send
light_mode
delete
All Pages