Back to
Download the Software Testing Lab Manual from here


Question Bank - Unit Test 1

Experiment No. 1
Experiment No. 1 - Questions
Experiment No. 2
Experiment No. 2 - Questions
Experiment No. 2 - Program Code
Experiment No. 2 - Output
Experiment No. 3
Experiment No. 3 - Questions
Experiment No. 3 - Program Code
Experiment No. 3 - Output
Experiment No. 4
Experiment No. 4 - Laboratory Practices
Experiment No. 4 - Questions
Experiment No. 4 - Program Code
Experiment No. 4 - Output

Disclaimer:- Students are advised not to copy blindly from here, this website should only be used as a reference and not for completion. I am not responsible for the accuracy of the content provided on this site. This website is in no way related to any Educational Institute or Board, it has been created by a student to provide help and give guidance to other students.

Question Bank - Unit Test 1


Aim:- To understand the concept of software testing for bug free Software.

As this webpage was created on 09/01/2012 and this experiment has already been corrected so I am not posting the answers online now, you can copy them from most of the people present in the lab...:-P

We dont have to do any program in this experiment...:-)


Aim:- To study the system specification to report bugs.

Q1. What is System Specification?
Ans. It is a written document using words and pictures prepared by software development team to describe the intended system. System specifications are prepared with the help of usability studies, focus groups, marketing input.

Q2. Explain Static Black Box Testing.
Ans. Black-box testing is a method of testing software without knowledge of internal working of the system. Static Testing refers to testing something that's not running. Static Black-Box Testing is testing the specification.

Q4. What is the difference between verification and validation?
Verification Validation
i) It is the process confirming that software meets its specification i) It is the process confirming that software meets the user's requirements
ii) Verification is done during static testing. ii) Validation is done during dynamic testing.
iii)Verification takes place before validation. iii)Validation takes place after verification.

Q6. Why system specifications are important for software testing?
Ans. The original requirement objectives are written in system specification when we test the product using Static Black-Box Testing for bug free product we check the system does meet the original requirements and objectives which are written in specification are important for software testing.


 * Program for Expt2
 * Name: Paawan Chaudhary
 * Roll No: 12
 * Class: TYCO - Ist Shift
 * Important:- Use the form given below this program and then use this code on that form's code. But this program is incomplete...:-(
Dim chr

Private Sub Command1_Click()
If Text1.Text = "Munni" And Text2.Text = "Munni" Then
MsgBox ("Correct")
MsgBox "Wrong"
End If
End Sub

Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Command1.Enabled = False

End Sub

Private Sub Form_Load()
Text2.PasswordChar = "*"
Command1.Enabled = False
Text2.Enabled = False

End Sub

Private Sub Text1_Change()
If (chr = 77) And (chr = 117) And (chr = 110) And (chr = 110) And (chr = 105) Then
Text2.Enabled = True
End If
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
chr = KeyAscii
Text2.Enabled = True

End Sub

Private Sub Text2_Change()
If (chr = 77) And (chr = 117) And (chr = 110) And (chr = 110) And (chr = 105) Then
Command1.Enabled = True
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
Command1.Enabled = True
End Sub
Expt2 Output


Aim:- To understand how to write Test Cases for any application such as Login form.

Q1. What is Dynamic Black Box Testing?
Ans. Testing software without having an insight into the details of underlying code is dynamic black-box testing. It's dynamic because the program is running and it's black-box because tester is testing it without knowing exactly how it works.

Q3. What do you mean by Test Case?
Ans. These are the specific inputs that are to be tried and the procedures that are to be followed while testing the software.

Q4. What is Equivalence Partitioning and why it is necessary?
Ans. It is the process of methodically reducing the huge set of possible test cases into a much smaller, but still equally effective set.

Q8. Give the advantages of manual testing for software re-testing.
And:- Advantages:-
i) Faults and drawbacks can be removed.
ii) It puts a check on all documents.
iii) An overview of all tests is possible.

Same as last program. Use the following table to fill details of the test conducted on the program created in Expt no. 2. But this will be there in the manual so you can directly fill the values in the Manual!!!:-)

Expt3 Output


Aim:- To understand the concept of Static White Box Testing.

Laboratory Practices:- (pg.23)
1. Write the script in AutoIt v3 to add two numbers and display the sum.

dim $a, $b, $c
$a = InputBox("Addition","Enter the 1st no.")
$b = InputBox("Addition","Enter the 2nd no.")
$c = $a + $b
MsgBox(0, "Addition","Addition of two nos is" & $c)

2. Write the script in AutoIt v3 to find whether the year entered by user is Leap Year or not.
dim $a, $b
$a = InputBox("Leap Year", Enter The Year")
$b = Mod($a, 4)
if $b<1 Then
	MsgBox(0,"Leap Year","The entered year is a Leap Year")
	MsgBox(0,"Leap Year","The entered year is not a Leap Year")

NOTE:- As we have to write only 4 answers and there are two pages in the manual for writing answers, I wrote slightly lengthy answers to fill my pages, but they can be cropped before writing.

Q1. What is Static White Box Testing?
Ans. Static White Box Testing is the process of carefully and methodically reviewing the software design, architecture, or code for bugs without executing it. It's sometimes referred to as structural analysis.

Q4. State the difference between static white box testing and static black box testing.
Ans. Static Testing is testing something that is not running. Static Black-Box Testing is without knowledge of internal working of the system and refers to testing the specifications. While, Static White Box Testing is the process of carefully and methodically reviewing the software design, architecture, or code for bugs i.e. Structural Analysis without executing the code.

Q9. List advantage of automated testing.
Ans. Advantages of Automated Testing:-
i) Reliable: Tests perform precisely the same operations each time they are run, thereby eliminating human error.
ii) Reusable: Tests can be reused on different versions of an application, even if the user interface changes.
iii) Fast: Automated Tools run tests significantly faster than human users.

Q10. List disadvantages of manual testing.
Ans. Following are the disadvantages of Manual Testing:-
1. Time-consuming and Tedious
2. Requires heavy investment of human resources.
3. It is impossible for a man to test every feature thoroughly before the software is released.

View MyStats