0% found this document useful (0 votes)
42 views7 pages

Question Bank

Based on the provided multiple choice questions and answers, here are the key points about white-box testing: - White-box testing focuses on the internal logic and structure of the code. - It is not considered a black-box testing technique as black-box testing does not consider the internal logic of the code. - The correct answer for the question "Which testing method focuses on the internal logic and structure of the code?" is b) White-box testing. So in summary, white-box testing examines the internal workings of a system or component, as opposed to just the inputs and outputs like in black-box testing. It helps find errors in program flow, internal data structures and algorithms.

Uploaded by

bebitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views7 pages

Question Bank

Based on the provided multiple choice questions and answers, here are the key points about white-box testing: - White-box testing focuses on the internal logic and structure of the code. - It is not considered a black-box testing technique as black-box testing does not consider the internal logic of the code. - The correct answer for the question "Which testing method focuses on the internal logic and structure of the code?" is b) White-box testing. So in summary, white-box testing examines the internal workings of a system or component, as opposed to just the inputs and outputs like in black-box testing. It helps find errors in program flow, internal data structures and algorithms.

Uploaded by

bebitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1) What is the primary purpose of software testing?

 a) To find and fix bugs


 b) To ensure software meets requirements
 c) To improve software performance
 d) All of the above
 Correct Answer: d) All of the above
2. 2) Question: Which type of testing focuses on internal logic and structure of the code?
 a) Black-box testing
 b) White-box testing
 c) Gray-box testing
 d) Regression testing
 Correct Answer: b) White-box testing
3. Question: What is the main advantage of black-box testing?
 a) Detects hidden errors
 b) Requires knowledge of the internal code
 c) Ensures complete code coverage
 d) Validates internal program logic
 Correct Answer: a) Detects hidden errors

Software Testing Life Cycle

4. Question: What is the correct order of phases in the Software Testing Life Cycle (STLC)?
 a) Test Planning, Test Execution, Test Design, Test Closure
 b) Test Design, Test Execution, Test Planning, Test Closure
 c) Test Planning, Test Design, Test Execution, Test Closure
 d) Test Execution, Test Planning, Test Design, Test Closure
 Correct Answer: c) Test Planning, Test Design, Test Execution, Test Closure

V-model of Software Testing

5. Question: In the V-model of Software Testing, which stage corresponds to the "Unit
Testing" phase?
 a) System Testing
 b) Acceptance Testing
 c) Integration Testing
 d) Unit Testing
 Correct Answer: d) Unit Testing

Program Correctness and Verification


6. Question: What is the goal of program verification in software development?
 a) To identify defects in the code
 b) To ensure the program behaves as intended
 c) To fix bugs in the software
 d) To create test cases
 Correct Answer: b) To ensure the program behaves as intended

Reliability versus Safety

7. Question: Which term is more concerned with the probability of a program performing
its intended functions without failure?
 a) Reliability
 b) Safety
 c) Robustness
 d) Efficiency
 Correct Answer: a) Reliability

Failures, Errors, and Faults (Defects)

8. Question: What is the correct sequence of events in the "Defect Life Cycle"?
 a) Error, Fault, Failure
 b) Fault, Error, Failure
 c) Failure, Fault, Error
 d) Failure, Error, Fault
 Correct Answer: b) Fault, Error, Failure

Software Testing Principles

9. Question: Which principle suggests that exhaustive testing is not possible?


 a) Testing shows the presence of defects
 b) Exhaustive testing is impossible
 c) Early testing
 d) Pesticide paradox
 Correct Answer: b) Exhaustive testing is impossible

Program Inspections

10. Question: What is the primary goal of program inspections?


 a) To identify defects in the code
 b) To execute the program
 c) To review and improve the quality of the program
 d) To create test cases
 Correct Answer: c) To review and improve the quality of the program

Stages of Testing: Unit Testing, Integration Testing, System


Testing

11. Question: Which testing stage focuses on the interactions between different modules or
components?
 a) Unit Testing
 b) Integration Testing
 c) System Testing
 d) Acceptance Testing
 Correct Answer: b) Integration Testing

12 . What does the V-Model emphasize in software development and testing?

a) Agile methodology
b) Sequential and structured approach
c) Randomized testing
d) Waterfall model

Correct Answer: b) Sequential and structured approach

13. Which of the following is the primary goal of software testing?

a) Writing code
b) Finding bugs
c) Project management
d) Graphic design

Correct Answer: b) Finding bugs

14 . In software testing, which term is primarily concerned with ensuring that the
software does not cause harm or damage?

a) Reliability b) Failures c) Errors d) Safety e) Faults (Defects)

Correct Answer: d) Safety


15 . What is the primary purpose of testing software?

a) To slow down the development process b) To increase the cost of software projects c)
To identify defects and ensure software quality d) To create unnecessary documentation
e) To make the software development process more complicated

Correct Answer: c) To identify defects and ensure software quality

16.What is the main goal of system testing in the software development life cycle?

a) To identify syntax errors in the code

b) To ensure individual components work in isolation

c) To verify the overall system's compliance with specified requirements

d) To test the software's user interface only

e) To conduct performance testing on the system

Correct Answer: c) To verify the overall system's compliance with specified


requirements

17. Which of the following is NOT a characteristic of black box testing?

a) It focuses on the internal logic, structure, and implementation details of the software.
b) Testers do not have knowledge of the internal code or logic of the software. c) Test
cases are derived from specifications and requirements. d) It is also known as functional
testing

18.

You
choose the correct answer for the topic white box testing
ChatGPT
ChatGPT
Certainly! Could you please provide the options for the topic "white box testing" so that I can help
you choose the correct answer?
You
multiple the choice question and answer for the topic Why do we test Software?, Black-Box Testing
and White-Box Testing, Software Testing Life Cycle, V-model of Software Testing, Program
Correctness and Verification, Reliability versus Safety, Failures, Errors and Faults (Defects), Software
Testing Principles, Program Inspections, Stages of Testing: Unit Testing, Integration Testing, System
Testing
ChatGPT
ChatGPT
Sure, I'll provide multiple-choice questions with their answers for each of the mentioned topics.

Why do we test Software?

1. Question: What is the primary reason for testing software?


a) To introduce bugs
b) To make the development process longer
c) To ensure software quality and reliability
d) To increase project cost
Answer: c) To ensure software quality and reliability

Black-Box Testing and White-Box Testing

2. Question: Which testing method focuses on the internal logic and structure of the code?
a) Black-box testing
b) White-box testing
c) Gray-box testing
d) Alpha testing
Answer: b) White-box testing
3. Question: In black-box testing, what is NOT considered?
a) Internal logic of the code
b) Input and output behavior
c) Code structure and implementation
d) User interface
Answer: c) Code structure and implementation

Software Testing Life Cycle

4. Question: Which phase of the Software Testing Life Cycle involves defining test objectives and test
requirements?
a) Test planning
b) Test execution
c) Test closure
d) Test design
Answer: a) Test planning
V-model of Software Testing

5. Question: In the V-model of Software Testing, which phase corresponds to system testing?
a) Coding phase
b) Unit testing
c) Integration testing
d) Validation testing
Answer: d) Validation testing

Program Correctness and Verification

6. Question: What does program correctness refer to?


a) Ensuring the program has no bugs
b) Verifying that the program meets its specifications
c) Confirming that the program is error-free
d) All of the above
Answer: b) Verifying that the program meets its specifications

Reliability versus Safety

7. Question: Which term is associated with the capability of a system to maintain its performance
under specific conditions for a specified period?
a) Reliability
b) Safety
c) Availability
d) Integrity
Answer: a) Reliability

Failures, Errors, and Faults (Defects)

8. Question: What is a fault in the context of software testing?


a) A mistake made by the programmer
b) A deviation from the expected behavior
c) An incorrect result produced by the system
d) All of the above
Answer: a) A mistake made by the programmer

Software Testing Principles

9. Question: Which software testing principle suggests that exhaustive testing is not possible?
a) Defect clustering
b) Pesticide paradox
c) Testing shows the presence of defects
d) Absence of errors fallacy
Answer: b) Pesticide paradox

Program Inspections

10. Question: What is the primary goal of program inspections?


a) To find and fix defects in the code
b) To ensure that the program meets user requirements
c) To increase the development time
d) To reduce the number of testing phases
Answer: a) To find and fix defects in the code

Stages of Testing: Unit Testing, Integration Testing, System Testing

11. Question: Which stage of testing involves testing individual units or components of a software
application?
a) Integration testing
b) System testing
c) Unit testing
d) Acceptance testing
Answer: c) Unit testing

You might also like