Back to Freecodecamp

Testing Quiz

curriculum/challenges/english/blocks/quiz-testing/66f1aeffc5774ac692112a7e.md

latest5.4 KB
Original Source

--description--

To pass the quiz, you must correctly answer at least 18 of the 20 questions below.

--quizzes--

--quiz--

--question--

--text--

What type of testing focuses on verifying individual components or functions of code in isolation?

--distractors--

Functional testing.


End-to-end testing.


Integration testing.

--answer--

Unit testing.

--question--

--text--

Which testing approach evaluates a system's compliance with specified requirements from an end-user perspective?

--distractors--

Unit testing.


Performance testing.


Security testing.

--answer--

Acceptance testing.

--question--

--text--

What type of testing assesses how well a system performs under various workloads?

--distractors--

Compatibility testing.


Usability testing.


Security testing.

--answer--

Performance testing.

--question--

--text--

Which testing practice involves evaluating a system's ability to protect data and maintain functionality in the face of malicious attacks?

--distractors--

Usability testing.


Compatibility testing.


Performance testing.

--answer--

Security testing.

--question--

--text--

What type of testing involves providing two versions of software to users and analyzing which performs better?

--distractors--

Compatibility testing.


Performance testing.


Comparative testing.

--answer--

A/B testing.

--question--

--text--

Which popular JavaScript testing framework is often used for unit testing?

--distractors--

Selenium


Cypress


Playwright

--answer--

Jest

--question--

--text--

What term describes replacing some components used during testing with objects that return pre-defined responses?

--distractors--

Mocking


Faking


Pre-defining

--answer--

Stubbing

--question--

--text--

Which stage comes first in the Software Development Lifecycle?

--distractors--

Design stage.


Implementation stage.


Testing stage.

--answer--

Planning stage.

--question--

--text--

What type of testing evaluates the entire system from start to finish, simulating real-world scenarios?

--distractors--

Unit testing.


Integration testing.


Functional testing.

--answer--

End-to-end (E2E) testing.

--question--

--text--

Which testing approach focuses on how easy and satisfying a product is to use?

--distractors--

Performance testing.


Security testing.


Compatibility testing.

--answer--

Usability testing.

--question--

--text--

Which one is an assertion library?

--distractors--

Mocha


Selenium


GrowthBook

--answer--

Chai

--question--

--text--

Which testing tool is specifically designed for end-to-end testing of web applications across multiple browsers?

--distractors--

Jest


Mocha


Jasmine

--answer--

Playwright

--question--

--text--

What type of testing ensures that a system works correctly with different hardware, operating systems, or network environments?

--distractors--

Functional testing.


Unit testing.


Usability testing.

--answer--

Compatibility testing.

--question--

--text--

What is regression testing?

--distractors--

This test ensures that the application works properly after downgrading to previous versions.


This test runs tests repeatedly to ensure the application works under high load.


This test re-runs the test that found a bug to confirm that the issue has been fixed.

--answer--

This test re-runs tests to check for new issues introduced by recent changes to the codebase.

--question--

--text--

What is alpha testing?

--distractors--

The first phase of A/B testing.


An automated test suite that checks for critical issues before beta testing begins.


Iterative testing performed in the Agile model of software development.

--answer--

Providing the application to a selected group of testers to use it as part of acceptance testing.

--question--

--text--

What is the primary purpose of smoke testing in software development?

--distractors--

To test the system under extreme stress.


To check for security vulnerabilities.


To ensure all features are working perfectly.

--answer--

To verify that the most critical functions of a system are working.

--question--

--text--

Which test involves creating simulated cyberattacks on the application to identify any vulnerabilities?

--distractors--

Smoke testing.


Breakpoint testing.


Usability testing.

--answer--

Penetration Testing.

--question--

--text--

What does TDD stand for in software development methodologies?

--distractors--

Test-Driven Deployment


Total Design Development


Technical Design Document

--answer--

Test-Driven Development

--question--

--text--

Which of the following is an example of a non-functional testing type?

--distractors--

Unit testing.


Integration testing.


User acceptance testing.

--answer--

Performance testing.

--question--

--text--

Which function is used with matchers to check a value in Jest?

--distractors--

check


test


match

--answer--

expect