0% found this document useful (0 votes)
427 views8 pages

Dry Run Notes

Uploaded by

namyab2009
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)
427 views8 pages

Dry Run Notes

Uploaded by

namyab2009
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/ 8

Dry Run

A dry run is a testing process where the


effects of a possible failure are
intentionally mitigated.

For example, an aerospace company may


conduct a "dry run" test of a jet's new
pilot ejection seat while the jet is parked
on the ground, rather than while it is in
flight.
Dry Run
A dry run is the process of a programmer manually
working through their source code one step at a time
to trace the value of variables and determines what it
will do when run.
There is no software involved in this process.

Characteristics of a dry run are:


➢ carried out during design, implementation,
testing or maintenance
➢ used to identify logic errors
Dry Run
➢ In dry run you can test your program
without using a computer by dry running it
on paper.

➢ You act as the computer – following the


instructions of the program, recording the
valves of the variables at each stage.

➢ You can do this with the help of a table


called Trace table with the program
variables on the top.
Dry Run
➢ Trace table are used to allow programmers
to trace the value of variables as each line
of code is executed thereby testing the logic
of the program.
➢ The table will have column headed with the
names of the variables in the program .
➢ The entries of each row in the table will be
values of the variables after the execution
of the statement of each line.
Dry Run
First 6 natural numbers in reverse

Write the program code to display first 6 natural


numbers in reverse using for..loop.
Dry Run
First 6 natural numbers in reverse using for…loop
Write the program code to display first 6 natural numbers in reverse. i i>=1 Output
<!doctype html>
<html>
<head>
<title>JavaScript for loop</title>
</head>
<body>
<h1 style="text-align:center;">Natural Numbers in reverse</h1>
<script>
document.write("First 6 Natural numbers in reverse are :- <br>")
for(var i =6;i>=1;i--)
{
document.write(i + "<br>");
}
</script>
</body>
</html>
Dry Run
First 6 natural numbers in reverse using for…loop
Write the program code to display first 6 natural numbers in reverse.
<!doctype html> i i>=1 Output
<html> First 6 Natural
<head> numbers in
<title>JavaScript for loop</title> reverse are :-
</head> 6 T 6
<body> 5 T 5
4 T 4
<h1 style="text-align:center;">Natural Numbers in reverse</h1>
3 T 3
<script>
2 T 2
document.write("First 6 Natural numbers in reverse are :- <br>") 1 T 1
for(var i =6;i>=1;i--) 0 F
{
document.write(i + "<br>");
}
</script>
</body>
</html>

You might also like