(Full Stack JavaScript) Testing Knowledge Assessment Guide 2024, Exams of Javascript programming

(Full Stack JavaScript) Testing Knowledge Assessment Guide 2024(Full Stack JavaScript) Testing Knowledge Assessment Guide 2024(Full Stack JavaScript) Testing Knowledge Assessment Guide 2024(Full Stack JavaScript) Testing Knowledge Assessment Guide 2024

Typology: Exams

2023/2024

Available from 07/15/2024

geofchah
geofchah 🇺🇸

4.7

(7)

929 documents

1 / 24

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
FULL STACK JAVASCRIPT
Testing
KNOWLEDGE ASSESSMENT GUIDE
2024
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download (Full Stack JavaScript) Testing Knowledge Assessment Guide 2024 and more Exams Javascript programming in PDF only on Docsity!

FULL STACK JAVASCRIPT

Testing

KNOWLEDGE ASSESSMENT GUIDE

  1. Which of the following is NOT a type of software testing?
    • A) Unit Testing
    • B) Integration Testing
    • C) Compilation Testing
    • D) System Testing
    • ** Answer:** C) Compilation Testing
    • Rationale: Compilation is a process in software development, not a type of testing.
  2. What is the primary goal of Test-Driven Development (TDD)?
    • A) To write tests after code implementation
    • B) To ensure code is written to pass tests
    • C) To reduce the number of tests
    • D) To eliminate the need for debugging
    • ** Answer:** B) To ensure code is written to pass tests
    • Rationale: TDD focuses on writing tests before code to ensure the code meets the requirements.
  3. Which testing technique is used to test the internal structures or workings of an application?
    • A) Black-box Testing
  • Rationale: Mock objects are used to simulate the behavior of real objects in controlled ways.

Fill-in-the-Blank Questions

  1. __________ testing is performed to determine how a system performs under a heavy load.
  • ** Answer:** Load
  • Rationale: Load testing evaluates system performance under heavy load conditions.
  1. In TDD, the cycle of writing tests, code, and refactoring is known as __________.
  • ** Answer:** Red-Green-Refactor
  • Rationale: The Red-Green-Refactor cycle is a fundamental part of TDD.
  1. __________ is a testing technique where the tester has no knowledge of the internal workings of the application.
  • ** Answer:** Black-box Testing
  • Rationale: Black-box testing involves testing without knowledge of the internal workings.
  1. The process of verifying that a system meets its specifications and requirements is called __________.
  • ** Answer:** Validation
  • Rationale: Validation ensures that the system meets its specifications and requirements.
  1. In JavaScript, the __________ framework is often used for end-to- end testing.
  • ** Answer:** Cypress
  • Rationale: Cypress is a popular framework for end-to-end testing in JavaScript.

True/False Questions

  1. Unit testing focuses on testing individual components in isolation.
  • ** Answer:** True
  • Rationale: Unit testing involves testing individual components separately from the rest of the application.
  1. Integration testing is performed before unit testing.
  • ** Answer:** False
  • Rationale: Integration testing is performed after unit testing to ensure that different components work together.
  1. Regression testing is used to verify that new code changes have not affected existing functionality.
  • Rationale: Automated testing provides increased coverage, reduces testing time, and ensures consistent execution.
  1. What is the main purpose of smoke testing?
  • A) To perform exhaustive testing
  • B) To verify critical functionalities
  • C) To test non-functional requirements
  • D) To test the user interface
  • ** Answer:** B) To verify critical functionalities
  • Rationale: Smoke testing checks the critical functionalities of an application.
  1. Which type of testing is focused on the user experience and interface?
  • A) Unit Testing
  • B) Integration Testing
  • C) Usability Testing
  • D) Load Testing
  • ** Answer:** C) Usability Testing
  • Rationale: Usability testing focuses on the user experience and interface.
  1. In JavaScript, which library is commonly used for mocking functions?
  • A) Sinon
  • B) Lodash
  • C) Axios
  • D) Express
  • ** Answer:** A) Sinon
  • Rationale: Sinon is a popular library for mocking functions in JavaScript.
  1. What is the primary focus of performance testing?
  • A) To identify security vulnerabilities
  • B) To ensure the application meets performance criteria
  • C) To verify the correctness of the application
  • D) To test the application's user interface
  • ** Answer:** B) To ensure the application meets performance criteria
  • Rationale: Performance testing ensures that the application meets specified performance criteria. Multiple Choice: Which of the following is a characteristic of unit testing? A) Tests individual units or components of a software B) Tests the entire application as a whole C) Only performed by developers D) Focuses on user interface testing

C) Smoke Testing D) Integration Testing

Correct Answer: A) Stress Testing

Rationale: Stress testing assesses the system's robustness under extreme conditions to determine its breaking point. Fill-in-the-Blank: Code coverage is a metric used to measure the __ of code tested by automated tests.

Correct Answer: Percentage

Rationale: Code coverage indicates the percentage of code lines executed during automated testing. True/False: Mocking is a technique used in testing to simulate the behavior of complex components.

Correct Answer: True

Rationale: Mocking allows testers to create simulated versions of complex components to test interactions without dependencies.

Multiple Choice: Which type of testing simulates real user interactions with the application? A) Black-box Testing B) White-box Testing C) User Acceptance Testing D) System Testing

Correct Answer: C) User Acceptance Testing

Rationale: User Acceptance Testing involves real users testing the application to validate its compliance with business requirements. Fill-in-the-Blank: Regression testing is performed to ensure that recent code changes have not introduced __.

Correct Answer: New Defects

Rationale: Regression testing verifies that modifications have not caused new defects in previously working functionalities. True/False: Boundary value analysis is a black-box testing technique.

Correct Answer: True

True/False: Mutation testing is a type of white-box testing.

Correct Answer: True

Rationale: Mutation testing is a white-box testing technique where small changes are introduced into the source code to verify if test cases can detect those changes. Multiple Choice: Which software testing principle states that exhaustive testing is not possible? A) Equivalence Partitioning B) Exhaustive Testing Principle C) Defect Clustering D) Pesticide Paradox

Correct Answer: D) Pesticide Paradox

Rationale: The Pesticide Paradox principle states that repeating the same set of tests will not find new defects. Fill-in-the-Blank: Performance testing aims to evaluate the __ of a system under various conditions.

Correct Answer: Performance

Rationale: Performance testing helps assess how well a system performs under different scenarios such as load, stress, and volume. True/False: Usability testing is a type of non-functional testing.

Correct Answer: True

Rationale: Usability testing focuses on evaluating how user-friendly the software is and falls under non-functional testing. Multiple Choice: Which testing technique focuses on testing individual branches of code? A) Decision Table Testing B) Statement Coverage C) Equivalence Partitioning D) Path Testing

Correct Answer: B) Statement Coverage

Rationale: Statement coverage aims to execute all statements in the code at least once during testing.

Correct Answer: B) Decision Table Testing

Rationale: Decision Table Testing helps map out different conditions and actions to ensure all scenarios are covered during testing. Fill-in-the-Blank: The practice of testing an application's user interface for bugs is known as __ testing.

Correct Answer: GUI

Rationale: GUI testing focuses on verifying the functionality and usability of the graphical user interface of an application.

  1. Multiple Choice: Which testing technique is primarily focused on assessing code logic through examining all possible independent paths within a module? A. Black-box testing B. Boundary value analysis C. Equivalence partitioning D. Path testing

Correct Answer: D. Path testing

Rationale: Path testing is a white-box testing technique that aims to ensure every possible path in a program is executed at least once for thorough code coverage.

  1. Fill-in-the-Blank: In integration testing, the approach where individual units or components are combined and tested as a group is known as ____________ testing.

Correct Answer: Bottom-up

Rationale: Bottom-up integration testing involves integrating and testing individual components from the lower levels first, progressively moving towards higher-level modules.

  1. True/False: Regression testing is performed to ensure that new changes or features in an application do not adversely impact existing functionalities. True or False?

Correct Answer: True

Rationale: Regression testing helps verify that modifications or additions to the software have not introduced new defects or caused regressions in previously working functions.

  1. Multiple Choice: Which testing technique involves studying the behavior of software under varying conditions, such as different loads or stress levels? A. Load testing B. Smoke testing C. Monkey testing

B. Acceptance testing C. Security testing D. Performance testing

Correct Answer: A. Usability testing

Rationale: Usability testing assesses the user-friendliness and overall user experience of the software application.

  1. Fill-in-the-Blank: A software testing technique where the system is subjected to high loads beyond its normal capacity to observe performance degradation or failure is known as ___________ testing.

Correct Answer: Stress

Rationale: Stress testing evaluates the system's stability and robustness under extreme conditions to identify its breaking point or performance limits.

  1. True/False: Mutation testing is a type of white-box testing that involves modifying or introducing faults into the source code to evaluate the effectiveness of a test suite. True or False?

Correct Answer: True

Rationale: Mutation testing entails introducing artificial faults into the codebase to assess whether the test suite can detect these mutations, thereby evaluating its quality and coverage.

  1. Multiple Choice:

Which testing approach focuses on verifying that the software application behaves as expected when deployed in a specific computing environment, configuration, or platform? A. Compatibility testing B. Integration testing C. Beta testing D. System testing

Correct Answer: A. Compatibility testing

Rationale: Compatibility testing ensures that the software is compatible with different operating systems, browsers, devices, and configurations as intended.

  1. Fill-in-the-Blank: A testing method that involves determining the minimum and maximum boundary values for input data to test the boundaries between valid and invalid data ranges is called ___________ testing.

Correct Answer: Boundary value

Rationale: Boundary value testing helps identify errors at the boundaries of input ranges where software behavior may differ or be vulnerable.

  1. True/False: Continuous Integration (CI) is a software development practice where developers frequently integrate their code changes to a shared repository, triggering automated builds and tests. True or False?

Correct Answer: True