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

3rd Quiz L4-Software Development Techniques

The document discusses software testing techniques. It provides descriptions of whitebox testing, blackbox testing, and unit testing. It also includes a sample function to check if a student passed or failed based on their mark and shows how to do a desk check on it using an example input.

Uploaded by

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

3rd Quiz L4-Software Development Techniques

The document discusses software testing techniques. It provides descriptions of whitebox testing, blackbox testing, and unit testing. It also includes a sample function to check if a student passed or failed based on their mark and shows how to do a desk check on it using an example input.

Uploaded by

Hana Husni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Software Development Techniques

Quiz (3) – L 4
Question 1:

In the table below is a list of THREE (3) test methods used in testing the correctness of
functions. Give a brief description of each test method.

Test method Description of test method

Whitebox testing It allow the testers to examine the workings of software systems and it can

uncover bugs that black box cannot. Its testing based on analysis of the internal

structure of the component of system. it require working through the code to

make sure that the answers is correct from every part of execution. The tester

know the internal design of application and analyzes it during testing.

Blackbox testing It takes input and output in consideration. write the input and then record the

results. You need to see the code in order to do a desk check. its testing a

system without knowledge of its internal workings.

Unit testing This testing is done during the development process by the software developers.

Technique used to test each function alone by plugging input and recording the

outputs.
Question 2:

Below is a function that displays whether a student passed or failed a subject depending
on their mark. Shows the desk checking involving selection using an IF-ELSE.

1 Function displayEvaluation ()
2 output "Please enter the mark"
3 Input mark
4 IF mark >= 50 THEN
5 evaluation = "Pass"
6 Display "Well done"
7 ELSE
8 evaluation = "Not pass"
9 ENDIF
10 Display evaluation
11 End Function

Desk Check:
! Use the following Input: mark = 95

Line Evaluation Mark Conditions Input/Output

1 Null 0

2 Null 0 User output

3 Null 95 User input 95

4 Null 95 If mark (95) is

greater or equal to

50. Go to 5
otherwise go to 7

5 pass 95

8 pass 95 Output “Well done”

9 pass 95

10 pass 95 Output evaluation

You might also like