MCQs_Testing_in_Development.pdf
Document Details
Uploaded by CrispSphene3783
University of Doна
Tags
Full Transcript
Multiple Choice Questions: Testing in the Development Process 1. What is the focus of white-box testing? o A) Internal logic o B) External behavior o C) User interfaces o D) Functional requirements Answer: A 2. Which testing technique involves knowledge o...
Multiple Choice Questions: Testing in the Development Process 1. What is the focus of white-box testing? o A) Internal logic o B) External behavior o C) User interfaces o D) Functional requirements Answer: A 2. Which testing technique involves knowledge of the internal workings of the item being tested? o A) Black-box testing o B) Unit testing o C) White-box testing o D) System testing Answer: C 3. What is boundary value analysis? o A) A technique that divides input conditions into partitions o B) A technique that focuses on the boundaries of the input space o C) A technique that tests software components in isolation o D) A technique that tests user interfaces Answer: B 4. Which testing method ensures that every statement in the program is executed at least once? o A) Path testing o B) Basis path testing o C) Unit testing o D) Functional testing Answer: B 5. In black-box testing, which type of errors is the tester primarily looking for? o A) Interface errors o B) Syntax errors o C) Memory leaks o D) Logical errors Answer: A 6. Which of the following is NOT a step in software testing? o A) Verification o B) Validation o C) Deployment o D) Debugging Answer: C 7. What is the role of scaffolding in unit testing? o A) To isolate modules for testing o B) To provide external support programs like drivers and stubs o C) To automate the testing process o D) To generate test cases Answer: B 8. Which of the following is a feature of basis path testing? o A) It tests only the user interfaces o B) It involves testing loops and conditions o C) It guarantees every statement is executed at least once o D) It focuses on external inputs Answer: C 9. In boundary value analysis, what is the principle of single fault assumption? o A) Failures occur due to multiple faults o B) Failures occur due to a single fault o C) It requires all faults to be fixed before testing o D) It tests for unexpected input values Answer: B 10. Which of the following best describes equivalence partitioning? o A) Testing only the boundaries of the input o B) Dividing input data into valid and invalid partitions o C) Testing all possible inputs o D) Randomly selecting test cases Answer: B 11. What is the main objective of integration testing? o A) To test individual components o B) To test the system as a whole o C) To test interfaces between components o D) To verify system performance Answer: C 12. Which of the following best describes black-box testing? o A) Testing based on internal code structure o B) Testing focused on functional requirements o C) Testing done by developers only o D) Testing limited to user interfaces Answer: B 13. What is the purpose of unit testing? o A) To test small pieces of code independently o B) To test the whole system o C) To test the integration of multiple components o D) To test system performance Answer: A 14. In black-box testing, what is boundary value analysis primarily used for? o A) To test the performance limits of a system o B) To test the boundaries of input values o C) To verify the internal logic of the system o D) To ensure all code paths are covered Answer: B 15. Which of the following is a disadvantage of black-box testing? o A) It cannot detect missing functions o B) It ignores internal code structure o C) It is too time-consuming o D) It requires a complete system to test Answer: B 16. What is the purpose of regression testing? o A) To test new features in the system o B) To test if changes have affected existing functionality o C) To test non-functional requirements o D) To ensure scalability Answer: B 17. What does a ‘driver’ do in unit testing? o A) It generates test data automatically o B) It is a dummy module used to call the module under test o C) It is a tool to track test progress o D) It acts as a placeholder for missing functions Answer: B 18. What is path testing in white-box testing? o A) Ensuring all decision paths in the program are executed o B) Testing the external behavior of the program o C) Checking the output for given inputs o D) Testing only the boundaries of inputs Answer: A 19. What is the primary focus of black-box testing? o A) Testing the software’s internal structure o B) Testing the software’s functional behavior o C) Testing how the software handles specific user input o D) Testing code loops and conditions Answer: B 20. Which testing technique would best find errors related to missing functionality? o A) White-box testing o B) Unit testing o C) Black-box testing o D) Static analysis Answer: C 21. What is the role of a stub in testing? o A) To call the module under test o B) To replace a module that is not yet developed o C) To simulate user inputs o D) To generate test cases Answer: B 22. Which of the following is not a type of integration testing? o A) Top-down o B) Bottom-up o C) Regression o D) Sandwich Answer: C 23. What does boundary value analysis test for? o A) Functionality at normal input values o B) Errors at the boundaries of input values o C) The flow of data between modules o D) The performance of the system under load Answer: B 24. Which type of testing is most likely to use decision tables? o A) White-box testing o B) Unit testing o C) Black-box testing o D) Stress testing Answer: C 25. What is meant by 'basis path testing'? o A) A method to select test paths that ensure every branch is tested o B) A method to test all possible combinations of inputs o C) A method to test the boundaries of input values o D) A method to test a single independent path Answer: A 26. In which testing method are stubs and drivers commonly used? o A) Unit testing o B) Integration testing o C) System testing o D) Performance testing Answer: B 27. What is the difference between verification and validation? o A) Verification checks the product, validation checks the process o B) Verification ensures the product meets specifications, validation ensures it meets user needs o C) Verification is done after validation o D) Validation is done before testing Answer: B 28. What type of testing involves testing the smallest testable part of a program? o A) Unit testing o B) Integration testing o C) System testing o D) Stress testing Answer: A 29. Which of the following is NOT a characteristic of white-box testing? o A) It focuses on internal program logic o B) It requires knowledge of the source code o C) It focuses on the functional requirements o D) It is also known as structural testing Answer: C 30. Which of the following techniques is used in black-box testing to reduce the number of test cases? o A) Path testing o B) Basis path testing o C) Equivalence partitioning o D) Code coverage Answer: C 31. What is stress testing used for? o A) To check how the system behaves under heavy loads o B) To check how the system handles extreme inputs o C) To check the integration of components o D) To check the system’s response time Answer: A 32. What is a test oracle? o A) A tool used to generate test cases o B) A mechanism to determine whether a test has passed or failed o C) A framework for running tests o D) A method of boundary value analysis Answer: B 33. Which of the following is true of object-oriented testing? o A) It tests individual functions in isolation o B) It focuses on testing class hierarchies o C) It cannot be automated o D) It is only concerned with functional testing Answer: B 34. What is the purpose of acceptance testing? o A) To ensure the system meets user requirements o B) To find bugs in the code o C) To test the integration of modules o D) To ensure the system runs efficiently Answer: A 35. In white-box testing, what does loop testing focus on? o A) Testing input boundaries o B) Ensuring that loops are executed within their bounds o C) Testing system performance o D) Ensuring user interfaces work correctly Answer: B 36. What is the primary purpose of system testing? o A) To test individual modules o B) To test the complete integrated system o C) To test only non-functional requirements o D) To test code coverage Answer: B 37. What is the goal of equivalence partitioning? o A) To reduce the number of test cases by grouping input conditions o B) To test every possible input value o C) To focus on boundary values o D) To ensure all statements are executed Answer: A 38. What is the difference between static and dynamic testing? o A) Static testing checks for code quality, dynamic testing checks system functionality o B) Static testing checks system performance, dynamic testing checks code quality o C) Static testing runs code, dynamic testing does not o D) Static testing checks user interfaces, dynamic testing checks input validation Answer: A 39. What is a ‘test case’? o A) A set of conditions or variables to test a system o B) A tool used to run automated tests o C) A script to generate random inputs o D) A framework to run tests Answer: A 40. What is robustness testing? o A) Testing how well a system handles incorrect inputs o B) Testing the internal structure of the system o C) Testing only the user interfaces o D) Testing for performance under load Answer: A 41. Which of the following is an advantage of top-down integration testing? o A) It uses fewer stubs o B) Critical modules are tested first o C) It is faster than other methods o D) It tests all paths Answer: B 42. In worst-case testing, how many test cases are used for n variables? o A) 2^n o B) 3^n o C) 5^n o D) 10^n Answer: C 43. What is a flow graph used for in white-box testing? o A) To represent program control structure o B) To model the user interface o C) To depict system performance o D) To organize test cases Answer: A 44. What does 'code coverage' measure? o A) The percentage of code executed by test cases o B) The amount of memory used during testing o C) The system’s response time o D) The accuracy of test results Answer: A 45. Which testing technique focuses on testing paths within a program’s logic? o A) Equivalence partitioning o B) Boundary value analysis o C) Path testing o D) Acceptance testing Answer: C 46. In which scenario would black-box testing be most effective? o A) Testing system performance o B) Testing user inputs and outputs o C) Testing internal code structure o D) Testing loops and conditions Answer: B 47. What is performance testing used for? o A) To ensure the system meets functional requirements o B) To ensure the system can handle the expected load o C) To test how the system responds to invalid inputs o D) To verify the internal structure of the system Answer: B 48. What type of testing would be used to check how a system behaves under abnormal conditions? o A) Functional testing o B) Stress testing o C) Unit testing o D) Regression testing Answer: B 49. What is the difference between functional and non-functional testing? o A) Functional testing checks user inputs, non-functional testing checks outputs o B) Functional testing checks what the system does, non-functional testing checks how it performs o C) Functional testing focuses on performance, non-functional testing focuses on design o D) Functional testing is manual, non-functional testing is automated Answer: B 50. What does equivalence partitioning aim to achieve? o A) To test all inputs exhaustively o B) To reduce the number of test cases by grouping similar inputs o C) To ensure maximum code coverage o D) To test how the system performs under stress Answer: B 51. What is the goal of black-box testing? o A) To verify internal logic of the code o B) To ensure user interfaces work correctly o C) To validate functional requirements o D) To test the system’s performance Answer: C 52. What does the term ‘alpha testing’ refer to? o A) Testing conducted by end-users o B) Testing conducted by developers o C) Testing performed at the developer’s site o D) Automated testing Answer: C 53. Which of the following is NOT a goal of unit testing? o A) To test individual functions o B) To test overall system performance o C) To detect errors early in development o D) To isolate each part of the program Answer: B 54. What is the focus of validation testing? o A) Ensuring the software works as intended o B) Ensuring the software meets user needs o C) Testing internal code logic o D) Testing system scalability Answer: B 55. In white-box testing, what is branch testing used for? o A) Testing all paths of the program o B) Testing the program's response to user input o C) Ensuring every decision point is tested on true and false conditions o D) Testing boundary values Answer: C 56. Which type of testing focuses on how well a system recovers from crashes or failures? o A) Stress testing o B) Recovery testing o C) Load testing o D) Regression testing Answer: B 57. What is the primary focus of system testing? o A) Testing individual modules o B) Testing the entire system as a whole o C) Testing user interfaces o D) Testing code structure Answer: B 58. What is the key characteristic of black-box testing? o A) It requires knowledge of the code o B) It focuses on testing the functional behavior o C) It tests the internal logic of the software o D) It tests user interfaces Answer: B 59. Which technique is most often used in black-box testing? o A) Code coverage o B) Boundary value analysis o C) Statement coverage o D) Branch testing Answer: B 60. What is usability testing primarily concerned with? o A) Testing the system’s performance o B) Testing how easy the system is to use o C) Testing the internal logic o D) Testing how the system handles errors Answer: B 61. What is the main objective of regression testing? o A) To test newly added functionality o B) To test if new changes have broken existing functionality o C) To test system performance o D) To test the software under load Answer: B 62. What does "alpha testing" refer to? o A) Testing performed by the end-users o B) Testing performed by developers or quality engineers o C) Testing the software under high stress conditions o D) Testing performed in the production environment Answer: B 63. What is a key characteristic of "black-box" testing? o A) It requires access to the source code o B) It focuses on functional requirements rather than the internal code structure o C) It ensures all decision branches are executed o D) It involves testing the internal working of the program Answer: B 64. Which technique involves breaking inputs into groups where the behavior is expected to be the same for each input in the group? o A) Boundary value analysis o B) Equivalence partitioning o C) Stress testing o D) Performance testing Answer: B 65. Which test type ensures the software meets both the functional and performance requirements under typical load? o A) Usability testing o B) Acceptance testing o C) Load testing o D) Unit testing Answer: C 66. What is an example of non-functional testing? o A) Load testing o B) Unit testing o C) Functional testing o D) Equivalence partitioning Answer: A 67. Which of the following tests checks how well the system recovers from crashes or hardware failures? o A) Load testing o B) Recovery testing o C) Stress testing o D) Performance testing Answer: B 68. What does stress testing aim to achieve? o A) To determine if the system meets user requirements o B) To ensure that the system can operate beyond its normal load o C) To test specific modules in isolation o D) To evaluate the system’s boundary values Answer: B 69. Which type of testing is conducted after every change or update to the software to ensure no new errors have been introduced? o A) Alpha testing o B) Unit testing o C) Regression testing o D) Beta testing Answer: C 70. What is the focus of usability testing? o A) Testing system performance under load o B) Testing the ease of use for the system's interface o C) Testing how the software responds to invalid inputs o D) Testing how modules interact with each other Answer: B 71. Which of the following is a type of white-box testing? o A) Functional testing o B) Basis path testing o C) Usability testing o D) Stress testing Answer: B 72. What is a "driver" in the context of testing? o A) A piece of software that simulates the main program during unit testing o B) A tool used to monitor test execution o C) A module that calls other functions to ensure they work as expected o D) A debugging tool used during testing Answer: A 73. Which of the following testing types focuses on evaluating the system’s response to unexpected and extreme inputs? o A) Stress testing o B) Load testing o C) Unit testing o D) Functional testing Answer: A 74. Which of the following is NOT a technique used in black-box testing? o A) Boundary value analysis o B) Basis path testing o C) Equivalence partitioning o D) Decision table testing Answer: B 75. Which test type would you use to evaluate system response times under a typical user load? o A) Load testing o B) Stress testing o C) Recovery testing o D) Usability testing Answer: A 76. Which of the following techniques would most likely be used during alpha testing? o A) Path testing o B) Stress testing o C) Black-box testing o D) Unit testing Answer: C 77. Which of the following describes the purpose of system testing? o A) To test individual software units or components o B) To evaluate the performance of the software under load o C) To test the integrated system as a whole o D) To verify the correctness of code logic Answer: C 78. Which type of testing focuses on testing the external behavior of the software? o A) White-box testing o B) Black-box testing o C) Regression testing o D) Stress testing Answer: B 79. In which type of testing are "stubs" commonly used? o A) System testing o B) Integration testing o C) Unit testing o D) Load testing Answer: B 80. What is "beta testing"? o A) Testing conducted by the end users in a real-world environment o B) Testing conducted by developers before system release o C) Testing focused on stress and load handling o D) Testing focused on usability and interface design Answer: A 81. What type of testing is commonly done to evaluate the performance of the system in handling large volumes of data? o A) Stress testing o B) Load testing o C) Recovery testing o D) Unit testing Answer: B 82. Which of the following is an example of functional testing? o A) Stress testing o B) Regression testing o C) Equivalence partitioning o D) Load testing Answer: C 83. What is the goal of boundary value analysis? o A) To test the internal logic of the system o B) To test the software at the edges of input ranges o C) To test whether user interfaces work correctly o D) To test the performance of the system under load Answer: B 84. Which of the following types of testing is focused on validating how well software interfaces interact with each other? o A) Unit testing o B) Integration testing o C) Regression testing o D) Stress testing Answer: B 85. Which test type is typically performed last before software release? o A) Unit testing o B) Integration testing o C) System testing o D) Acceptance testing Answer: D 86. What type of testing checks the software’s ability to handle exceptional conditions? o A) Usability testing o B) Stress testing o C) Unit testing o D) Regression testing Answer: B 87. Which testing technique is designed to reduce the number of test cases by dividing input data into partitions? o A) Path testing o B) Boundary value analysis o C) Equivalence partitioning o D) Basis path testing Answer: C 88. What does "big bang integration testing" refer to? o A) Testing individual units of the system in isolation o B) Testing where all modules are integrated simultaneously o C) Stress testing the system under high loads o D) Testing the system's functional boundaries Answer: B 89. What is the main goal of recovery testing? o A) To verify if the software recovers gracefully from crashes o B) To test the system under high loads o C) To ensure all modules interact smoothly o D) To test for regression issues Answer: A 90. What is a primary characteristic of usability testing? o A) It tests the software’s performance under load o B) It evaluates how user-friendly the system is o C) It ensures the system can handle exceptional inputs o D) It validates the software’s external interfaces Answer: B 91. Which type of testing focuses on evaluating a system’s scalability? o A) Stress testing o B) Load testing o C) Performance testing o D) Unit testing Answer: C 92. Which testing method aims to ensure each independent path in a program’s logic is executed? o A) Unit testing o B) Basis path testing o C) Functional testing o D) Boundary value analysis Answer: B 93. What is the primary goal of functional testing? o A) To test the system’s performance under load o B) To verify the software’s behavior against its specifications o C) To test the ease of use of the system o D) To ensure that modules are correctly integrated Answer: B 94. Which of the following focuses on testing the non-functional aspects of software, such as performance, scalability, and security? o A) Regression testing o B) Black-box testing o C) Performance testing o D) White-box testing Answer: C 95. What is "acceptance testing" primarily concerned with? o A) Testing internal code logic o B) Validating the system against business requirements o C) Testing the user interfaces o D) Testing under stress conditions Answer: B o 96. In which scenario would recovery testing be most useful? o A) When verifying the user interface o B) When testing system response after unexpected failures o C) When checking the system's performance under load o D) When integrating multiple modules Answer: B 97. What is "big bang" integration testing known for? o A) Being the most efficient type of testing o B) Testing all components in one phase o C) Testing the system under high-stress conditions o D) Testing individual components in isolation Answer: B 98. Which of the following best defines performance testing? o A) Testing how well the system behaves under maximum load o B) Testing individual modules or components o C) Testing how well the system recovers from failures o D) Testing user inputs and outputs Answer: A 99. Which testing method involves inputting values just inside and just outside boundary values? o A) Path testing o B) Equivalence partitioning o C) Boundary value analysis o D) Functional testing Answer: C 100. What is the goal of load testing? A) To evaluate system behavior under typical user load B) To test all possible inputs exhaustively C) To ensure the system operates efficiently under maximum load D) To verify system responses during crashes Answer: A