The comment frequency of the code fragment is 13%. To which ISO 9126 quality attribute does a good level of comment frequency especially contribute?
APortability
BMaintainability
CUsability
DEfficiency
If you are flying with an economy ticket, there is a possibility that you may get upgraded to business class, especially if you hold a gold card in the airlines frequent flier program. If you dont hold a gold card, there is a possibility that you will get bumped off the flight if it is full and you check in late. This is shown in the figure hereafter. Note that each box (i.e. statement) has been numbered.
Three tests have been run:
Test 1: Gold card holder who gets upgraded to business class
Test 2: Non-gold card holder who stays in economy
Test 3: A person who is bumped from the flight
What is the statement coverage of these three tests?
A60%
B70%
C80%
D90%
A component has been analyzed as being highly critical. Which of the following structure-based test design techniques provides the highest level of coverage?
AStatement testing
BDecision testing
CCondition determination testing
DMultiple condition testing
What is the number of nested levels for the code fragment?
A0
B1
C2
D3
Question 9
Testing in Agile
0
Question 10
Requirements Engineering
Question 11
Testing in Agile
Question 12
Requirements Engineering
Question 13
Testing in Agile
Question 14
Testing in Agile
Question 15
Testing in Agile
Question 16
Testing in Agile
Question 17
Testing in Agile
Question 18
Testing in Agile
Question 19
Testing in Agile
Question 20
Testing in Agile
Question 21
Testing in Agile
Question 22
Testing in Agile
Question 23
Testing in Agile
Question 24
Testing in Agile
Question 25
Testing in Agile
Question 26
Testing in Agile
Question 27
Testing in Agile
Question 28
Testing in Agile
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ad
Want a break from the ads?
Become a Supporter and enjoy a completely ad-free experience, plus unlock Learn Mode, Exam Mode, AstroTutor AI, and more.
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
Ask AstroTutor
0
An embedded software company is considering to improve the quality of its software components to be delivered to the integration team. After studying various experience papers that report a higher level of quality for software components, two main alternative techniques are identified: static analysis and dynamic analysis. In deciding which one is most applicable and how they relate to each other a detailed study is performed.
Which of the following are TWO key similarities between static analysis and dynamic analysis?
ABoth are performed using requirements as its major input document
BBoth are usually undertaken by integration testers
CBoth are usually undertaken by development during coding and unit testing
DBoth are related to reviews
EBoth usually use a tool
As part of a risk analysis, technical risks are analyzed. Which TWO factors influence technical risk?
AComplexity of technology
BFrequency of use of the affected failure
CInterfacing and integration issues
DDamage to image
ELack of reasonable workaround
Consider the following fault attack: "Force all possible incoming errors from the software/OS interfaces to the application". Which of the following is the kind of failure you are looking for when using this attack?
AApplication crashes when unsupported characters are pasted into an input field using the windows clipboard
BFront page of the application has incorrect spelling of the company name
CApplication fails to display financial numbers in the correct currency format in reports
DApplication miscalculates total monthly balance due on credit cards
The result of a product risk analysis performed on components I, II and III of the airplane control system shows the following risk matrix:
The project wants to mitigate the risks by defining different types of coverage depending on the risk level of the components. Which of the following would be a meaningful solution for setting the coverage targets?
How many test cases would be needed to achieve 100% decision coverage?
A1
B2
C3
D4
How many test cases would be needed to achieve 100% statement coverage?
A1
B2
C3
D4
Which specification-based technique could be used to enhance coverage for this code fragment?
ABoundary value analysis
BExploratory testing
CState transition testing
DUse case testing
Consider the following code fragment
If (a>b) and (b>c) then -
b = (a+c)/2
endif
Assume that in the following options, each of the three numbers in parenthesis represent the inputs for a test case, where the first number represents variable "a", the second number represents variable "b", and the third number represents variable "c".
Which of the following gives a set of test case inputs that achieves 100% decision coverage for this fragment of code with the minimum number of test cases?
A(5, 3, 2)
B(5, 3, 2); (5, 4, 0)
C(5, 4, 0); (4, 5, 0)
D(4, 5, 0); (5, 4, 5)
For the control flow, what is the correct labelling?
i ii iii
ANodes Link Region
BNodes Region Link
CRegion Link Nodes
DRegion Nodes Link
Which of the following is a valid way to calculate the cyclomatic complexity?
ANumber of decisions + 2
BNumber of enclosed regions - 1
CNumber of statements - 2
DLinks - Nodes + 2
What is the value of statement coverage achieved by test case 1 from test set A?
A? 75% (21/28)
B? 78% (22/28)
C? 85% (24/28)
D? 90% (25/28)
Which TWO additional structure-based test design techniques could be used to dynamically test the code?
ACondition testing
BMultiple condition testing
CEquivalence partitioning
DCause/effect graphing
ECode reviews
How many test cases are needed to test code fragment lines 26 – 32 to achieve 100% condition determination coverage?
A2
B3
C4
D5
The application of multiple condition testing is also being considered.
Which specification-based technique is largely based on the principle of multiple condition testing?
AEquivalence Partitioning
BState Transition Testing
CDecision Table Testing
DUse Cases
How many test cases are needed to test code fragment lines 26 – 32 to achieve 100% multiple condition coverage?
A2
B3
C4
D8
Which additional set of test cases is needed to achieve both 100% statement coverage and 100% decision coverage?
A.
B.
C.
D.
The Bonus Program is perceived by management to be critical. Defects in the program would almost immediately lead to financial loss. In the past an improvement program has been run to implement review based on IEEE 1028. Knowledge and skills on both formal and informal reviews are available. There is also an existing pool of review leaders. Which of the following review types would you choose to review the program?
AInformal review
BInspection
CWalkthrough
DManagement review
You have tested the program and have found that with "bonus" a boundary value has not been implemented according to design. You have written an incident report. Which of the following is the incident report of the highest quality?
ADescription: Boundary value not correctly implemented Priority: High Repeatability: Yes Tester: WVU Test case: 35 (test specification "bonus program"), V1.2
BDescription: Boundary value not correctly implemented for bonus Priority: Medium Tester: WVU Test case: 35 (test specification "bonus program")
CDescription: Boundary value not correctly implemented for bonus (line 26: 10 according to design, now 5 implemented) Priority: High Repeatability: Yes Tester: WVU Test case: 35 (test specification "bonus program"), V1.2
DDescription: Boundary value not correctly implemented for bonus Priority: High Repeatability: Yes Tester: WVU
When performing code reviews, which of the following defect types will be most difficult to find?
ADead code
BVariable used that is not defined
CMemory issues
DConformance to design
During code reviews, it is the author’s responsibility…
Ato address all major and minor defects as stated in the defect log
Bto fix all major and minor defects as stated in the defect log
Cto take action on only improvement suggestions from the defect log
Dto correct source documents that have major defects