0% found this document useful (0 votes)
14 views3 pages

Assignment 1

Swayam

Uploaded by

Himanshu Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views3 pages

Assignment 1

Swayam

Uploaded by

Himanshu Ranjan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

NOC24-CS91: Software Testing

Week 1 Assignment
Maximum marks: 10, each question carries one mark.

1. An error was detected in a piece of code in the version that was ready
for release, just before the release. The error was successfully fixed by
the concerned software developer who did not test if the entire software
is working correctly with the fix. Which kind of testing did the developer
fail to do?

(a) System testing.


(b) Integration testing.
(c) Regression testing.
(d) Functional testing.

Correct answer: Option 3.


2. When is it that we say that a particular coverage criterion C1 does not
subsume another coverage criterion C2 ?

(a) C1 does not subsume C2 when there is at least one test case that
satisfies C1 that does not satisfy C2 .
(b) C1 does not subsume C2 when there is at least one test case that
satisfies C2 that does not satisfy C1 .

Correct answer: Option 2.


3. Consider the statements regarding testing given below.

ˆ Testing can be used to find all the errors in code.


ˆ Testing can be used to show that a piece of software is fully correct.
ˆ Testing can be used to find real errors in code.
ˆ The purpose of testing is not to show correctness of software but to
show errors.

Which of the following is true about the above-given statements?

(a) All the statements above are correct.


(b) The first and second statements are correct.
(c) The third and fourth statements are correct.
(d) Only the fourth statement is correct.

Correct answer: Option 4 (in the answer options above).

1
4. With reference to the various levels of testing, which level is the most
mature and ideal for reducing errors in software and which level is the
least mature and possibly leads to unknown faults being found after de-
ployment?

(a) Level 4 is the most mature and level 0 is the least mature level.
(b) All the levels are at equal risk, there is no notion of one level being
more mature than the other.
(c) Level 0 is the most mature and level 4 is the least mature level.
(d) Level 4 is the most mature and level 1 is the least mature level, level
0 is of not much use for consideration.

Correct answer: Option 1.


5. A particular software requirement specifies that a piece of software running
on a cloud server needs to respond really fast even when thousands of
users login simultaneously and request for services. Which kind of testing
is done to check for such a requirement?

(a) System testing.


(b) Stress testing.
(c) Performance testing.
(d) Functionality testing.

Correct answer: Option 2.


6. Which of the following is a list of testing phases where both white-box
and black-box techniques are applicable?

(a) Unit testing only.


(b) Unit testing and integration testing only.
(c) Unit testing, integration testing and system testing.
(d) None of the above.

Correct answer: Option 3.


7. State true or false: There are certain phases in the software development
and testing life-cycle where predominantly only black-box testing tech-
niques are used.

(a) True.
(b) False.

Correct answer: Option 1.


8. What are the results of test case execution?

2
(a) There is an explicit message that test case execution has caused an
error in the program.
(b) There is an explicit message that there is no error from the test case.
(c) The test case has either passed or failed.
(d) The program produces an output that is the same as the expected
output.

Correct answer: Option 3.


9. State true or false: Can JUnit be used to pass a collection of test cases
for execution and collating the results?

(a) True.
(b) False.

Correct answer: Option 1.


10. What does the JUnit assertion assertFalse(x1 <= x2) return when x1
is greater than x2?

(a) True.
(b) False.

Correct answer: Option 1.

You might also like