Software Testing MCQ Quiz - Objective Question with Answer for Software Testing - Download Free PDF

Last updated on Mar 15, 2023

Latest Software Testing MCQ Objective Questions

Software Testing Question 1:

Which of the following testing processes is used to test the functionally of a software?

  1. Black box testing
  2. White box testing
  3. Unit testing
  4. Regression testing

Answer (Detailed Solution Below)

Option 1 : Black box testing

Software Testing Question 1 Detailed Solution

Black-box testing is a method of software testing that examines the functionality of an application without peering into its internal structures or workings. This method of test can be applied virtually to every level of software testing: unit, integration, system and acceptance. White-box testing (also known as clear box testing, glass box testing, and transparent box testing, and structural testing) is a method of testing software that tests internal structures or workings of an application, as opposed to its functionality. Unit Testing is a level of software testing where individual units/components of software are tested.

Software Testing Question 2:

What values should be included in the test case in Boundary Value Analysis Testing Method if we want to design a test case that computes the square root of an integer value from 1 to 4000?

  1. [1, 2, 4000, 4001]
  2. [0, 1, 3999, 4000]
  3. [1, 2, 3999, 4000] 
  4. [0, 1, 4000, 4001]

Answer (Detailed Solution Below)

Option 3 : [1, 2, 3999, 4000] 

Software Testing Question 2 Detailed Solution

Boundary Value Analysis is a testing technique that focuses on testing the values at the boundaries of input domains, where the behaviour of the system may change. The technique involves selecting input values that are at the upper and lower boundaries of the input domain, as well as values that are just inside the boundaries.

For computing the square root of an integer value from 1 to 4000, the lower boundary value is 1, and the upper boundary value is 4000. The values just inside the boundaries are 2 and 3999.

Therefore, the correct set of test cases for this scenario would be - [1, 2, 3999, 4000]

Software Testing Question 3:

What is COUPLING in software design?

  1. Coupling is a measure of the degree of functional interdependence between two modules
  2. Coupling is a measure of the degree of functional non-dependence between two modules
  3. Coupling is a measure of the functional robustness of a software modules
  4. Coupling is a measure of the degree of functionally connected dependence between two modules

Answer (Detailed Solution Below)

Option 1 : Coupling is a measure of the degree of functional interdependence between two modules

Software Testing Question 3 Detailed Solution

Option 1 is the correct answer. Coupling in software design refers to the degree of functional interdependence between two software modules. It measures how closely related two modules are, in terms of their functionality and how much one module relies on another.

A high degree of coupling between modules means that they are closely related, and changes in one module may affect the other. In contrast, a low degree of coupling means that the modules are more independent, and changes in one module are less likely to impact the other.

Coupling can be classified into different types, such as content coupling, common coupling, control coupling, stamp coupling, and data coupling, based on the nature of the interdependence between modules.

Reducing coupling between modules is desirable because it makes the software design more modular, flexible, and easier to maintain. High coupling can make software difficult to change, test, and debug, leading to higher costs and longer development cycles.

Software Testing Question 4:

Equivalence partitioning is a ______.

  1. Comparison testing method
  2. White box testing method
  3. Black box testing method
  4. Loop testing method 

Answer (Detailed Solution Below)

Option 3 : Black box testing method

Software Testing Question 4 Detailed Solution

The correct answer is Black Box testing method.
 
Key Points-

  • Equivalence partitioning is a black box testing method. It is used to divide the input domain of a software system into equivalence classes or partitions, where each partition represents a group of inputs that are expected to behave similarly. This helps to reduce the number of test cases required to test the software system while ensuring that all possible scenarios are covered. In this method, test cases are designed to cover each partition at least once.
     

Therefore the correct answer is Black Box testing method.

Software Testing Question 5:

Fault base testing technique is

  1. Unit testing
  2. Beta testing
  3. Stress testing
  4. Mutation testing

Answer (Detailed Solution Below)

Option 4 : Mutation testing

Software Testing Question 5 Detailed Solution

Correct answer is Option 4

Explanation:

  • Fault-based testing aims to detect certain classes of known faults.
  • Example: security testing for buffer overflows
  • Mutation Testing Fault-based testing strategy
  • It is used to evaluate test suite adequacy
  • Measures the effectiveness of test cases
  • Leads to creation of more effective tests
  • Mutation Testing Faults are introduced into the program by creating versions of the program called mutants.

Top Software Testing MCQ Objective Questions

A multimedia project is said to be _________ and user-interactive when users are given navigational control.

  1. Hypertext
  2.  Non-linear
  3. Linear
  4. Secure

Answer (Detailed Solution Below)

Option 2 :  Non-linear

Software Testing Question 6 Detailed Solution

Download Solution PDF

Concept:

Mutlimedia means combination of text, audio, video, graphics, and animation. Mutlimedia project are the multimedia materials which are presented on computer screen.

Explanation:

Phases of a multimedia project are : planning, designing , testing and delivering. 

Some points about multimedia project : 

  • Interactive mutlimedia gives the navigational controls to the user. It control what elements are to be delivered.
  • It requires creative skills, tools and organization talent to create mutlimedia projects.
  • There are two categories in multimedia : linear and non - linear.
  • Linear multimedia is without any navigational control example cinema.
  • Non - linear provides user interactivity to control progress. Example : computer game.
  • Mutlimedia system must be integrated, handled digitally and usually interactive.
  • Mutlimedia can be delivered using optical disk, web or distributed network.

In context of requirement analysis in software engineering, which of the following is not a type of 'non functional requirements'?

  1. Product Requirements
  2. Organizational Requirements
  3. External Requirements
  4. Umbrella Requirements

Answer (Detailed Solution Below)

Option 4 : Umbrella Requirements

Software Testing Question 7 Detailed Solution

Download Solution PDF

NON-FUNCTIONAL REQUIREMENT (NFR)

It specifies the quality attribute of a software system. They judge the software system based on Responsiveness, Usability, Security, Portability, and other non-functional standards that are critical to the success of the software system

Product requirements

Requirements specify that the delivered product must behave in a particular way, e.g. execution speed, reliability, etc.

Organizational requirements

Requirements which are a consequence of organizational policies and procedures, e.g. process standards used, implementation requirements, etc.

External requirement

Requirements which arise from factors which are external to the system and its development process, e.g. interoperability requirements, a legislative requirement

F1 Raju 4.12.20 Pallavi D2

 

 

Consider a software program that is artificially seeded with 100 faults. While testing this program, 159 faults are detected, out of which 75 faults are from those artificially seeded faults. Assuming that both real and seeded faults are of same nature and have same distribution, the estimated number of undetected real faults is ______.

  1. 28
  2. 175
  3. 56
  4. 84

Answer (Detailed Solution Below)

Option 1 : 28

Software Testing Question 8 Detailed Solution

Download Solution PDF

The correct answer is option 1.

Key Points

  • Total number of faults found = 159
  • Real faults detected among all detected faults = 159 - 75 = 84
  • Since probability distribution is the same, the total number of real  faults is (100/75)*84 = 112
  • Undetected real faults = 112- 84 = 28 

Alternate Method

  • 75% of defects are observed because of 75 of 100 artificially seeded defects. Given that the total faults detected = 159
  • Real faults detected among all detected faults = 159 – 75= 84
  • Since probability distribution is the same, the total number of real faults is (100/75)*84 = 112
    Therefore undetected real faults = 112-84 = 28.

Hence the correct answer is 28.

Debugger is a program that:

  1. Allows to examine and modify the contents of registers
  2. Allows to set breakpoints, execute a segment of program and display contents of register
  3. Does not allow execution of a segment of program
  4. All the options

Answer (Detailed Solution Below)

Option 2 : Allows to set breakpoints, execute a segment of program and display contents of register

Software Testing Question 9 Detailed Solution

Download Solution PDF

Debugger:

  • A debugger is a computer program used to test and debug target programs.
  • The main use of a debugger is to run the target program under controlled conditions that permit the programmer to track its operations in progress and monitor changes in computer resources that may indicate malfunctioning code.
  • Typical debugging facilities include the ability to run or halt the target program at specific points, display the contents of memory, CPU registers or storage, and modify memory or register contents in order to enter selected test data that might be a cause of faulty program execution.

Which of the following is/are behavioral testing technique(s) ?

(A) Equivalence Partitioning

(B) Graph-Based Teating Method

(C) Boundery Value Analysis

(D) Data flow Testing

(E) Loop Testing

Choose the correct answer from the options given below: 

  1. (B) and (D) only
  2. (A), (B) and (C) only
  3. (D) and (E) only
  4. (A), (C) and (E) only

Answer (Detailed Solution Below)

Option 2 : (A), (B) and (C) only

Software Testing Question 10 Detailed Solution

Download Solution PDF

The correct answer is option 2.

Key Points

Black-box testing, also known as behavioural testing, focuses on the software's functional specifications. In other words, black-box testing allows a software developer to create sets of input conditions that completely exercise all of a program's functional requirements. The methods for behavioural testing are as follows.

  1. graph-based testing methods
  2. equivalence partitioning
  3. boundary value analysis
  4. comparison testing
  5. orthogonal array testing

 ∴ Hence the correct answer is (A), (B) and (C) only.

What is the normal order of activities in which traditional software testing is organized ?

(a) Integration Testing

(b) System Testing

(c) Unit Testing

(d) Validation Testing

  1. (c), (a), (b), (d)
  2. (c), (a), (d), (b)
  3. (d), (c), (b), (a)
  4. (b), (d), (a), (c)

Answer (Detailed Solution Below)

Option 2 : (c), (a), (d), (b)

Software Testing Question 11 Detailed Solution

Download Solution PDF

The correct answer is "option 2".

CONCEPT:

Testing is a process of evaluating software in order to identify any errors contrary to actual requirements

Testing ensures that the software product is defect-free.

EXPLANATION:

The correct order of testing activities in software testing is:

1. Unit testing: It includes the testing of every single module or component of the software. 

2. Integration testing: It includes the testing of two or more combined modules of the software.

3. Validation testing: It answers the question, "Are we building the right product?". It ensures that client's requirements must be fulfilled by the developed software.

4. System testing: In this testing, the whole system is tested as a single component.

Hence, the correct order of testing is Unit testing, Integration testing, Validation testing & System testing.

Additional Information

Some more types of testing are:

  1. Black box testing
  2. White box testing
  3. Alpha testing
  4. Beta testing
  5. Stress testing
  6. Performance testing
  7. Regression testing
  8. Smoke testing

Which of the following is/are the types of testing?

  1. Regression Testing
  2. Smoke Testing
  3. Stress Testing
  4. All of the options

Answer (Detailed Solution Below)

Option 4 : All of the options

Software Testing Question 12 Detailed Solution

Download Solution PDF

Concept:

Regression Testing

It is defined as a type of software testing to confirm that a recent program or code change has not adversely affected existing features. Regression Testing is nothing but a full or partial selection of already executed test cases which are re-executed to ensure existing functionalities work fine

Smoke Testing 

It is a software testing technique performed post software build to verify that the critical functionalities of software are working fine. It is executed before any detailed functional or regression tests are executed.

Stress testing

It is a software testing activity that determines the robustness of software by testing beyond the limits of normal operation. Stress testing is particularly important for "mission critical" software, but is used for all types of software

Hence Option 4 is correct

Which one of the following assertions concerning code inspection and code walkthrough is true?

  1. Code inspection is carried out once the code has been unit tested
  2. Code inspection and code walkthrough are synonyms
  3. Adherence to coding standards is checked during code inspection
  4. Code walkthrough is usually carried out by an independent test team

Answer (Detailed Solution Below)

Option 3 : Adherence to coding standards is checked during code inspection

Software Testing Question 13 Detailed Solution

Download Solution PDF

Concept:

Code inspection:

It is the most formal type of review, which is a kind of static testing to avoid the defect multiplication at a later stage. The main purpose of code inspection is to find defects and it can also spot any process improvement if any.  It usually involves peer examination of the code and each one has a defined set of roles.

Code walkthrough:

It is a peer review in which a programmer leads the review process and the other team members ask questions and spot possible errors against development standards and other issues. This meeting is usually led by the author of the document under review and attended by other members of the team. Review sessions may be formal or informal.

Explanation:

Option 1 (FALSE)

Reason: Unit testing is not necessary before code inspection.

Option 2 (FALSE)

Reason: Code inspection and code walkthrough are not same as explained.

Option 4 (FALSE)

Reason: Code walkthrough is done by programmer lead members or designer of development team or other interested parties.

Option 3 (TRUE)

Reason: Adherence to coding standards is checked during code inspection.

Which of the following testing techniques ensures that the software product runs correctly after the changes during maintenance?

  1. Path Testing
  2. Integration Testing
  3. Unit Testing
  4. Regression Testing

Answer (Detailed Solution Below)

Option 4 : Regression Testing

Software Testing Question 14 Detailed Solution

Download Solution PDF

The correct answer is "option 4".

CONCEPT: 

Testing is a process of evaluating software in order to identify any errors contrary to actual requirements

Testing ensures that the software product is defect-free.

EXPLANATION: 

option1: Path testing is used to design the test cases.

option2: Integration testing includes the testing of two or more combined modules of the software.

option3: Unit testing includes the testing of every single module or component of the software.

option4: Regression testing is used to test modified parts of code & parts affected by the code to ensure that software doesn't have any defect after modifications.

Hence, Regression Testing ensures that the software product runs correctly after the changes during maintenance.

Which of the following is not a key issue stressed by an agile philosophy of software engineering?

  1. The importance of self-organizing teams as well as communication and collaboration between team members and customers.
  2. Recognition that change represents opportunity.
  3. Emphasis on rapid delivery of software that satisfies the customer.
  4. Having a separate testing phase after a build phase.

Answer (Detailed Solution Below)

Option 4 : Having a separate testing phase after a build phase.

Software Testing Question 15 Detailed Solution

Download Solution PDF

The correct answer is "option 4".

CONCEPT: 

An agile philosophy of software engineering stresses four key issues that are:

  1. The importance of self-organizing teams that have control over the work they perform.
  2. Communication and collaboration among team members, practitioners, and their customers.
  3. A recognition that change represents an opportunity.
  4. An emphasis on rapid delivery of software that satisfies the customer.

​​Hence, having a separate testing phase after a build phase is not a key issue in agile methodology.

Get Free Access Now