SlideShare a Scribd company logo
1 of 1
Computing Homework
ValidationandVerification
Explainwhatthe difference between ValidationandVerificationisandwhyitisused
Findan example of each,take ascreenshotandexplain.
Programmingtask
Create a programme to ask the userto entera word.If the wordhas more than 20 characters or 0
characters enteredgive anerrormessage.
1) Firstdesign a flowchartand explainthis
2) Create the Code
3) Create a testtable and testthe code (youshouldhave at least3 differenttests)
4) Extendyourcode
5) Annotate onyourcode using#
6) Evaluate yourcode,what’sgoodabout itand whatcouldbe improved.Whatpractical uses
doesyourcode have?
Sample code
Sample test table
Testnumber Purpose of test Testdata ExpectedResult
Each test should have
a numberto identify
it.
Whatis it that you are
checking?Are you
checking the
validation of an input,
or whethera loop
terminatesat the right
point?
What data will you
use?Thisshouldbe
markedas typical (T),
boundary(B) or
erroneous(E).
What youthinkshould
happen?

More Related Content

Viewers also liked

Viewers also liked (14)

Pancarta publicitaria
Pancarta publicitariaPancarta publicitaria
Pancarta publicitaria
 
Dzban
DzbanDzban
Dzban
 
Критическое мышление , лекция 2, 2013 (Клейнер Игорь)
Критическое мышление , лекция 2, 2013 (Клейнер Игорь)Критическое мышление , лекция 2, 2013 (Клейнер Игорь)
Критическое мышление , лекция 2, 2013 (Клейнер Игорь)
 
Definicionsoftware
DefinicionsoftwareDefinicionsoftware
Definicionsoftware
 
Converting denary binary
Converting denary binaryConverting denary binary
Converting denary binary
 
Redes
RedesRedes
Redes
 
Apresentação Linx
Apresentação LinxApresentação Linx
Apresentação Linx
 
Informe de cumplimiento de responsabilidades profesionales
Informe de cumplimiento de responsabilidades profesionalesInforme de cumplimiento de responsabilidades profesionales
Informe de cumplimiento de responsabilidades profesionales
 
Tecnología celular (1)
Tecnología celular (1)Tecnología celular (1)
Tecnología celular (1)
 
Portal Cautivo - PfSense
Portal Cautivo - PfSensePortal Cautivo - PfSense
Portal Cautivo - PfSense
 
Göz mobil[1]
Göz mobil[1]Göz mobil[1]
Göz mobil[1]
 
What is Docker
What is DockerWhat is Docker
What is Docker
 
Teacher Training Seminar on TEYL
Teacher Training Seminar on TEYLTeacher Training Seminar on TEYL
Teacher Training Seminar on TEYL
 
Cc code cards
Cc code cardsCc code cards
Cc code cards
 

Similar to Computing homework validation

CMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LABCMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LABHamesKellor
 
The relationship between test and production code quality (@ SIG)
The relationship between test and production code quality (@ SIG)The relationship between test and production code quality (@ SIG)
The relationship between test and production code quality (@ SIG)Maurício Aniche
 
Istqb advanced practioner_level_practice_exam_1
Istqb advanced practioner_level_practice_exam_1Istqb advanced practioner_level_practice_exam_1
Istqb advanced practioner_level_practice_exam_1fkhry
 
Testers Desk Presentation
Testers Desk PresentationTesters Desk Presentation
Testers Desk PresentationQuality Testing
 
Coding and testing In Software Engineering
Coding and testing In Software EngineeringCoding and testing In Software Engineering
Coding and testing In Software EngineeringSatya Bhushan Verma
 
Estimating test effort part 2 of 2
Estimating test effort part 2 of 2Estimating test effort part 2 of 2
Estimating test effort part 2 of 2Ian McDonald
 
Unit testing (workshop)
Unit testing (workshop)Unit testing (workshop)
Unit testing (workshop)Foyzul Karim
 
How to complement TDD with static analysis
How to complement TDD with static analysisHow to complement TDD with static analysis
How to complement TDD with static analysisPVS-Studio
 
TDD (Test Driven Design)
TDD (Test Driven Design)TDD (Test Driven Design)
TDD (Test Driven Design)nedirtv
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Developmentguestc8093a6
 
Expressive Testing ...and your Code For Free?
Expressive Testing ...and your Code For Free?Expressive Testing ...and your Code For Free?
Expressive Testing ...and your Code For Free?ESUG
 
Software testing foundation
Software testing foundationSoftware testing foundation
Software testing foundationAnirudh503501
 
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)Maurício Aniche
 
Test Design For Everyone
Test Design For EveryoneTest Design For Everyone
Test Design For EveryoneAlan Page
 

Similar to Computing homework validation (20)

CMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LABCMIS 102 WEEK 5 HANDS-ON LAB
CMIS 102 WEEK 5 HANDS-ON LAB
 
The relationship between test and production code quality (@ SIG)
The relationship between test and production code quality (@ SIG)The relationship between test and production code quality (@ SIG)
The relationship between test and production code quality (@ SIG)
 
Istqb advanced practioner_level_practice_exam_1
Istqb advanced practioner_level_practice_exam_1Istqb advanced practioner_level_practice_exam_1
Istqb advanced practioner_level_practice_exam_1
 
Testers Desk Presentation
Testers Desk PresentationTesters Desk Presentation
Testers Desk Presentation
 
SD & D analysis
SD & D analysisSD & D analysis
SD & D analysis
 
Coding and testing In Software Engineering
Coding and testing In Software EngineeringCoding and testing In Software Engineering
Coding and testing In Software Engineering
 
Estimating test effort part 2 of 2
Estimating test effort part 2 of 2Estimating test effort part 2 of 2
Estimating test effort part 2 of 2
 
Lesson 2....PPT 1
Lesson 2....PPT 1Lesson 2....PPT 1
Lesson 2....PPT 1
 
Unit testing (workshop)
Unit testing (workshop)Unit testing (workshop)
Unit testing (workshop)
 
TDD Best Practices
TDD Best PracticesTDD Best Practices
TDD Best Practices
 
Unit testing - An introduction
Unit testing - An introductionUnit testing - An introduction
Unit testing - An introduction
 
How to complement TDD with static analysis
How to complement TDD with static analysisHow to complement TDD with static analysis
How to complement TDD with static analysis
 
Testing techniques
Testing techniquesTesting techniques
Testing techniques
 
Unit test
Unit testUnit test
Unit test
 
TDD (Test Driven Design)
TDD (Test Driven Design)TDD (Test Driven Design)
TDD (Test Driven Design)
 
Test Driven Development
Test Driven DevelopmentTest Driven Development
Test Driven Development
 
Expressive Testing ...and your Code For Free?
Expressive Testing ...and your Code For Free?Expressive Testing ...and your Code For Free?
Expressive Testing ...and your Code For Free?
 
Software testing foundation
Software testing foundationSoftware testing foundation
Software testing foundation
 
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
What Do the Asserts in a Unit Test Tell Us About Code Quality? (CSMR2013)
 
Test Design For Everyone
Test Design For EveryoneTest Design For Everyone
Test Design For Everyone
 

Computing homework validation

  • 1. Computing Homework ValidationandVerification Explainwhatthe difference between ValidationandVerificationisandwhyitisused Findan example of each,take ascreenshotandexplain. Programmingtask Create a programme to ask the userto entera word.If the wordhas more than 20 characters or 0 characters enteredgive anerrormessage. 1) Firstdesign a flowchartand explainthis 2) Create the Code 3) Create a testtable and testthe code (youshouldhave at least3 differenttests) 4) Extendyourcode 5) Annotate onyourcode using# 6) Evaluate yourcode,what’sgoodabout itand whatcouldbe improved.Whatpractical uses doesyourcode have? Sample code Sample test table Testnumber Purpose of test Testdata ExpectedResult Each test should have a numberto identify it. Whatis it that you are checking?Are you checking the validation of an input, or whethera loop terminatesat the right point? What data will you use?Thisshouldbe markedas typical (T), boundary(B) or erroneous(E). What youthinkshould happen?