You are on page 1of 5

9/23/22, 4:37 PM Quiz 3.

1 White-box testing - part 1 (deadline 16:00 Wed 28-Sep): Attempt review

Started on Friday, 23 September 2022, 4:34 PM


State Finished
Completed on Friday, 23 September 2022, 4:37 PM
Time taken 3 mins 7 secs
Grade 10.00 out of 10.00 (100%)

Question 1
Complete

Mark 1.00 out of 1.00

Which of the following is not a Code-Based Test Coverage Metrics(E. F. Miller, 1977 dissertation)?

a. C1p: Every predicate outcome


b. C0: Every statement
c. CMCC: Multiple condition coverage
d. C2: C0 coverage + loop coverage

Question 2
Complete

Mark 1.00 out of 1.00

What is McCabe's Baseline Method?

a. All of the other answers.


b. To get succeeding basis paths, retrace the baseline until you reach a decision node. "Flip" the decision (take another alternative) and
continue as much of the baseline as possible.
c. Pick a "baseline" path that corresponds to normal execution. (The baseline should have as many decisions as possible.)
d. Repeat this until all decisions have been flipped. When you reach V(G) basis paths, you're done.

Question 3
Complete

Mark 1.00 out of 1.00

What is/are strategie(s) for Modified Condition Decision Coverage (MCDC) testing?

a. Rewrite the code as a decision table AND nested IF logic, then calculate the computational complexity
b. Rewrite the code as a decision table OR Rewrite the code as nested IF logic.
c. Rewrite the code as a IF table OR Rewrite the code as nested decision logic.
d. All of the other answers.

https://e-learning.hcmut.edu.vn/mod/quiz/review.php?attempt=42202&cmid=8750 1/5
9/23/22, 4:37 PM Quiz 3.1 White-box testing - part 1 (deadline 16:00 Wed 28-Sep): Attempt review

Question 4
Complete

Mark 1.00 out of 1.00

Which of the following about White-box testing is NOT correct?

a. The testing step can be used to replace the design step in the software development life cycle.
b. The testing is to improve design, usability and security of the software.
c. Possibly, the program has been completely tested when all possible paths (of control flow) are executed.
d. It is also called Clear box testing, Open box testing, Transparent box testing, Code-based testing and Glass box testing.

Question 5
Complete

Mark 1.00 out of 1.00

What of the following is not a requirements of Modified Condition Decision Coverage (MCDC)?

a. All of the other answers.


b. Every non-constant condition in a Boolean expression has been shown to independently affect the outcomes (of the expression).
c. All possible outcomes of every control statement are taken at least twice.
d. Every non-constant condition in a Boolean expression has been evaluated to both True and False outcomes.

Question 6
Complete

Mark 1.00 out of 1.00

What is a DD-Paths ("decision-to-decision")?

a. All other answers are correct.


b. Any chain (of nodes) in the program in between "if then else" blocks (decision-to-decision).
c. A chain (of nodes) such that [Case 1: it consists of a single node with indeg = 0], [Case 2: it consists of a single node with outdeg = 0],
[Case 3: it consists of a single node with indeg ≥ 2 or outdeg ≥ 2], [Case 4: it consists of a single node with indeg = 1 and outdeg = 1],
[Case 5: it is a maximal chain of length ≥ 1].
d. A ordered list of statements of a unit (piece of code) to be executed from the entry point to the end point of the unit.

https://e-learning.hcmut.edu.vn/mod/quiz/review.php?attempt=42202&cmid=8750 2/5
9/23/22, 4:37 PM Quiz 3.1 White-box testing - part 1 (deadline 16:00 Wed 28-Sep): Attempt review

Question 7
Complete

Mark 1.00 out of 1.00

Using Multiple Condition Testing, how many test cases of the expression of "(a<b+c) AND (b<a+c) AND (c<a+b)", when a,b,c > 0?

a. 8, for 2^3 combination of 3 single logic expressions.


b. 3, for 3 single logic expressions.
c. None of the other answers.
d. 4, when some of conditions is impossible.

Question 8
Complete

Mark 1.00 out of 1.00

What is Multiple Condition Testing?

a. Make the truth table of the logical expression and convert the truth table to a decision table.
b. All of the other answers.
c. Develop test cases for each rule of the decision table (except the impossible rules, if any).
d. Consider the multiple condition as a logical proposition, i.e., some logical expression of simple conditions.

Question 9
Complete

Mark 1.00 out of 1.00

What is White-box testing?

a. In this technique, code is visible to testers.


b. Its foundation is to execute every part of the code at least once.
c. A testing technique in which internal structure, design and coding of software are tested.
d. All of the other answers.

https://e-learning.hcmut.edu.vn/mod/quiz/review.php?attempt=42202&cmid=8750 3/5
9/23/22, 4:37 PM Quiz 3.1 White-box testing - part 1 (deadline 16:00 Wed 28-Sep): Attempt review

Question 10
Complete

Mark 1.00 out of 1.00

What is the strategy for loop testing based on Huang’s theorem?

a. All of the other answers.


b. For concatenated loops: use Huang’s Theorem.
c. For nested loops: Test innermost loop first, then “condense” the loop into a single node; work from innermost to outermost loop.
d. For knotted loops: Rewrite!

BÁCH KHOA E-LEARNING

WEBSITE

HCMUT
MyBK
BKSI

CONTACT
 268 Ly Thuong Kiet Street Ward 14, District 10, Ho Chi Minh City, Vietnam

 (028) 38 651 670 - (028) 38 647 256 (Ext: 5258, 5234)

 elearning@hcmut.edu.vn

https://e-learning.hcmut.edu.vn/mod/quiz/review.php?attempt=42202&cmid=8750 4/5
9/23/22, 4:37 PM Quiz 3.1 White-box testing - part 1 (deadline 16:00 Wed 28-Sep): Attempt review

Copyright 2007-2022 BKEL - Power by Moodle

https://e-learning.hcmut.edu.vn/mod/quiz/review.php?attempt=42202&cmid=8750 5/5

You might also like