0% found this document useful (0 votes)
1K views

Desk Checks

A desk check is a manual step-through of code logic using sample inputs to test for correct program output. It involves: 1) Listing variables and assigning line numbers to the algorithm. 2) Creating a table with columns for line number, variables, and output and rows matching algorithm lines. 3) Stepping through the algorithm line-by-line to track how variables are updated on each line and compare output to expectations.

Uploaded by

Irfan Fazail
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)
1K views

Desk Checks

A desk check is a manual step-through of code logic using sample inputs to test for correct program output. It involves: 1) Listing variables and assigning line numbers to the algorithm. 2) Creating a table with columns for line number, variables, and output and rows matching algorithm lines. 3) Stepping through the algorithm line-by-line to track how variables are updated on each line and compare output to expectations.

Uploaded by

Irfan Fazail
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/ 4

+

Desk Check
+
What is a Desk Check?

  A desk check is a tool used to test the logic of a program.


This means that it tests whether the code is in the correct
order and whether the output is what the programmer
expects

  The tester creates some possible inputs and walks through


the algorithm line by line, following the instructions of the
algorithm
+
What should a Desk Check look
like? (eg is Pythagoras Theorem)
Line side1 side2 x hypotenuse Output
Number
2 3

3 4

4 3*3 + 4*4
= 9 + 16
= 25
5 =5

6 5
+
How do you make a Desk Check?

  Step 1) Make a list of all of the variables.

  Step 2) Assign line numbers to your algorithm

  Step 3) Create a table.


  Columns: Label the first column with Line Number, the next columns with each
variable (1 variable per column), and the last column with Output
  Rows: Each row matches up to a line in your algorithm. If the algorithm uses
repetition, a single line in your algorithm may be performed more than once

  Step 4) Consider what input you can use for your variables which will
cover different pathways through your code (you may need to do more
than one desk check table to test all of your code)

  Step 5) Step through the algorithm showing what happens to each


variable on each line

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy