ExamGecko
Question list
Search
Search

Related questions











Question 221 - CTFL-2018 discussion

Report
Export

How are statement testing and decision testing techniques similar?

A.
Both are specification-based testing techniques
Answers
A.
Both are specification-based testing techniques
B.
Both are experience-based testing techniques
Answers
B.
Both are experience-based testing techniques
C.
Both are structure-based testing techniques
Answers
C.
Both are structure-based testing techniques
D.
Both are black box test design techniques
Answers
D.
Both are black box test design techniques
Suggested answer: C

Explanation:

Statement testing and decision testing techniques are similar because both are structure-based testing techniques. Structure-based testing techniques, also known as white-box testing or code-based testing, are based on analyzing the internal structure and logic of the software code.Structure-based testing techniques aim to achieve a certain level of coverage of the code elements, such as statements, branches, paths, conditions, etc1explains structure-based testing techniques as follows:

Structure-based testing techniques (also known as white-box testing techniques or code-based testing techniques) use the information of the internal structure of the component or system to derive test cases. They are commonly used at component testing and component integration testing levels, but can also be used at system and acceptance levels.

The main advantage of structure-based testing techniques is that they can reveal defects that are not easily found by other techniques, such as logic errors, incorrect assumptions, or incomplete paths. The main disadvantage of structure-based testing techniques is that they require access to the source code, which may not be available or feasible in some situations.

Statement testing is a structure-based testing technique that aims to cover all the executable statements in the code at least once. Decision testing is a structure-based testing technique that aims to cover all the possible outcomes of each decision in the code (true and false) at least once.

A, B, and D are incorrect answers. Specification-based testing techniques, experience-based testing techniques, and black box test design techniques are not similar to statement testing and decision testing techniques. Specification-based testing techniques are based on the requirements and functionality of the software rather than its structure and logic. Experience-based testing techniques are based on the knowledge and intuition of the testers rather than any formal analysis or criteria. Black box test design techniques are based on the external behavior and output of the software rather than its internal structure and logic.

asked 18/09/2024
Raed Alshehri
50 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first