CTFL-Foundation Exam Questions

Total 327 Questions

Last Updated Exam : 6-Apr-2025

Topic 21: Mix Questions Set A

Consider the following pseudo code:
1 Begin
2 Read Time
3 If Time < 12 Then
4 Print(Time, "am")
5 Endif
6 If Time > 12 Then
7 Print(Time 12, "pm")
8 Endif
9 If Time = 12 Then
10 Print (Time, "noon")
11 Endif
12 End
If the test cases Time = 11 and Time = 15 were input, what level of decision coverage
would be achieved?


A.

100% or 6/6


B.

50% or 3/6


C.

 67% or 4/6


D.

83% or 5/6





D.
  

83% or 5/6



Test case 1 exercises the decision outcomes True, False, False
Test case 2 exercises the decision outcomes False, True, False
This leaves the True outcome of decision 3 not exercised.
Of the 6 possible decision outcomes, 5 have been exercised, so the decision coverage is
5/6 (about 83%).

Which of the following, if observed in reviews and tests, would lead to problems (or conflict)
within teams?


A.

Testers and reviewers are not curious enough to find defects.


B.

Testers and reviewers are not qualified enough to find failures and faults.


C.

Testers and reviewers communicate defects as criticism against persons and not
against the software product.


D.

Testers and reviewers expect that defects in the software product have already been
found and fixed by the developers





C.
  

Testers and reviewers communicate defects as criticism against persons and not
against the software product.



Incorrect form of Logic coverage is:


A.

Statement Coverage


B.

Pole Coverage


C.

Condition Coverage


D.

Path Coverage





B.
  

Pole Coverage



Which of the following are most characteristic of structure-based testing?
(i) Information about how the software is constructed is used to derive test cases.
(ii) Statement coverage and/or decision coverage can be measured for existing test cases.
(iii) The knowledge and experience of people are used to derive test cases.
(iv) Test cases are derived from a model or specification of the system.


A.

i) and (ii)


B.

(ii) and (iii)


C.

(ii) and (iv)


D.

(i) and (iii)





A.
  

i) and (ii)



Test Implementation and execution has which of the following major tasks?
i. Developing and prioritizing test cases, creating test data, writing test procedures and
optionally preparing the test harnesses and writing automated test scripts.
ii. Creating the test suite from the test cases for efficient test execution.
iii. Verifying that the test environment has been set up correctly.
iv. Determining the exit criteria.


A.

i, ii, iii are true and iv is false


B.

 i, iv are true and ii is false


C.

 i, ii are true and iii, iv are false


D.

ii, iii, iv are true and i is false





A.
  

i, ii, iii are true and iv is false



Hand over of Testware is a part of which Phase:


A.

Test Analysis and Design


B.

Test Planning and control


C.

Test Closure Activities


D.

Evaluating exit criteria and reporting





C.
  

Test Closure Activities



The purpose of requirement phase is:


A.

To freeze requirements


B.

To understand user needs


C.

 To define the scope of testing


D.

All of the above





D.
  

All of the above



When a defect is detected and fixed then the software should be retested to confirm that
the original defect has been successfully removed. This is called:


A.

Regression testing


B.

Maintenance testing


C.

Confirmation testing


D.

None of the above





C.
  

Confirmation testing



Which of the following is most likely to be a benefit of using static techniques?


A.

Fewer performance defects.


B.

Productivity improvements in the development process.


C.

More efficient regression testing.


D.

Quick return on investment in static analysis tools.





B.
  

Productivity improvements in the development process.



Although the other options might be seen as benefits they are not amongst the most likely
benefits. Option (B) is the benefit that is most likely to be realized

Tests are prioritized so that:


A.

You shorten the time required for testing


B.

You do the best testing in the time available


C.

You do more effective testing


D.

You find more faults





B.
  

You do the best testing in the time available




Page 11 out of 33 Pages
Previous