inf 3121 / inf 4121testing av programvare …...1.9 if the temperature falls below 18 degrees, the...

15
INF 3121 / INF 4121Testing av programvare /Software testing 1/15 Day of exam: May 31th, 2017 Exam hours: 14:30 - 18:30 Permitted materials: None Read this page thoroughly The assignment consists of four parts. Part 1 - Multiple Choice questions • 15 multiple choice questions • 2 points for each correct answer • Maximum score for part 1: 30 points Part 2 - Short questions • 10 questions to be answered briefly and accurately • The number of points may vary from question to question. • Maximum score for part 2: 30 points Part 3 - Use of test techniques • Two test cases • 10 points for the correct solution of each case. • Maximum score for part 3: 20 points • In this part (task 3.1 and 3.2) you can draw sketches as a supplement to your text answers. Read the last paragraph of this title page thoroughly. Part 4 - essay • Maximum score for part 3: 20 points If any tasks are unclear, you can make your own prerequisites. If so, please explain them. Sketching in this exam, you are permitted to make drawings/use sketching for task 3.1 and 3.2. You are to use the sketching paper handed to you in the exam room. You can use more than one sketching sheet per task. See instructions for filling out sketching sheets on your desk. You may NOT hand in sketching sheets for any other tasks than task 3.1 and 3.2. You will NOT be given extra time to fill out the sketching sheets (task codes, candidate number etc.) 1.2 Consider the following list of test process activities: 1 Analysis and design 2 Test closure activities 3 Evaluating exit criteria and reporting 4 Planning and control 5 Implementation and execution Which of the following places these in their logical sequence? Select an alternative: 4, 1, 5, 3, 2 1, 4, 5, 3, 2 4, 1, 5, 2, 3 1, 2, 3, 4, 5 Maximum marks: 2

Upload: others

Post on 26-Apr-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

INF3121/INF4121Testingavprogramvare/Softwaretesting

1/15

Dayofexam:May31th,2017Examhours:14:30-18:30Permittedmaterials:NoneReadthispagethoroughlyTheassignmentconsistsoffourparts.

Part1-MultipleChoicequestions•15multiplechoicequestions•2pointsforeachcorrectanswer•Maximumscoreforpart1:30points

Part2-Shortquestions•10questionstobeansweredbrieflyandaccurately•Thenumberofpointsmayvaryfromquestiontoquestion.•Maximumscoreforpart2:30points

Part3-Useoftesttechniques•Twotestcases•10pointsforthecorrectsolutionofeachcase.•Maximumscoreforpart3:20points•Inthispart(task3.1and3.2)youcandrawsketchesasasupplementtoyourtextanswers.Readthelastparagraphofthistitlepagethoroughly.

Part4-essay•Maximumscoreforpart3:20points

Ifanytasksareunclear,youcanmakeyourownprerequisites.Ifso,pleaseexplainthem.Sketchinginthisexam,youarepermittedtomakedrawings/usesketchingfortask3.1and3.2.Youaretousethesketchingpaperhandedtoyouintheexamroom.Youcanusemorethanonesketchingsheetpertask.Seeinstructionsforfillingoutsketchingsheetsonyourdesk.

YoumayNOThandinsketchingsheetsforanyothertasksthantask3.1and3.2.YouwillNOTbegivenextratimetofilloutthesketchingsheets(taskcodes,candidatenumberetc.)

1.2 Considerthefollowinglistoftestprocessactivities:1Analysisanddesign2Testclosureactivities3Evaluatingexitcriteriaandreporting4Planningandcontrol5ImplementationandexecutionWhichofthefollowingplacestheseintheirlogicalsequence?Selectanalternative:

4,1,5,3,2

1,4,5,3,2

4,1,5,2,3

1,2,3,4,5

Maximummarks:2

INF3121/INF4121Testingavprogramvare/Softwaretesting

2/15

Maximummarks:2

1.3 AccordingtotheISTQBGlossary,whichofthefollowingisatesttype?Selectanalternative:

Componenttesting

Systemtesting

Functionaltesting

Acceptancetesting

Maximummarks:2

1.4 Completethefollowingsentence:Aregressiontest…Selectanalternative:

...willalwaysbeautomated.

…willcheckunchangedareasofthesoftwaretoseeiftheyhavebeenaffected.

...isonlyrunonce.

…willcheckchangedareasofthesoftwaretoseeiftheyhavebeenaffected.

Maximummarks:2

1.5 Whichstatementabouttestingistrue?Selectanalternative:

Testingshouldstartasearlyaspossibleinthelifecycle.

Testingismosteconomicallydoneattheendofthelifecycle.

Testingcanonlybedonebyanindependenttestteam.

Testingshouldstartafterthecodeiswrittensothatwehaveasystemwithwhichtowork.

Maximummarks:2

1.6 Whatisthemaindifferencebetweenawalkthroughandaninspection?

Selectanalternative:

INF3121/INF4121Testingavprogramvare/Softwaretesting

3/15

Selectanalternative:

Authorsarenotpresentduringinspections,whiletheyareduringwalkthroughs.

Awalkthroughisledbytheauthor,whileaninspectionisledbyatrainedmoderator.

Aninspectionisledbytheauthors,whileawalkthroughisledbyatrainedmoderator.

Aninspectionhasatrainedleader,whileawalkthroughhasnoleader.

Maximummarks:2

1.7 Whatisthebestdescriptionofstaticanalysis?Selectanalternative:

Thereviewingoftestplans

Theanalysisofprogramcodeorothersoftwareartifacts

Theuseofblack-boxtesting

Theanalysisofbatchprograms

Maximummarks:2

1.8 Whichofthefollowingcouldbeusedtoassessthecoverageachievedforstructure-based(white-box)testtechniques?1Decisionoutcomesexercised2Partitionsexercised3Boundariesexercised4Conditionsormultipleconditionsexercised5StatementsexercisedSelectanalternative:

2,3,5

1,2,4

2,3,4

1,4,5

Maximummarks:2

1.9 Ifthetemperaturefallsbelow18degrees,theheatingisswitchedon.Whenthetemperaturereaches21degrees,theheatingisswitchedoff.Whatistheminimumsetoftestinputvaluestocoverallvalidequivalencepartitions?

Selectanalternative:

INF3121/INF4121Testingavprogramvare/Softwaretesting

4/15

Selectanalternative:

17,18,20and21grader

18,20and22grader

16and26grader

15,19and25grader

Maximummarks:2

1.10 Whatdoesitmeanifasetoftestshasachieved90%statementcoverage?Selectanalternative:

9outof10testshavebeenrunonthismodulofthesoftware.

9outof10decisionoutcomeshavebeenexercisedbythissetoftests.

9outof10statementshavebeenexercisedbythissetoftests.

9outof10requirementsstatementsaboutthesoftwarearecorrect.

Maximummarks:2

1.11 Whichtwospecification-based(black-Box)testingtechniquesaremostcloselyrelatedtoeachother?Selectanalternative:

Decisiontablesandboundaryvalueanalysis

Equivalencepartitioningandstatetransitiontesting

Decisiontablesandstatetransitiontesting

Equivalencepartitioningandboundaryvalueanalysis

Maximummarks:2

1.12 Whichofthefollowingisanadvantageofindependenttesting?Selectanalternative:

Independenttesterssometimesquestiontheassumptionsbehindrequirements,designsandimplementations.

Theothersonaprojectcanpressuretheindependenttesterstoacceleratetestingattheendoftheschedule.

Programmerscanstopworryingaboutthequalityoftheirworkandfocusonproducingmorecode.

Independenttestersdon'thavetospendtimecommunicatingwiththeprojectteam.

Maximummarks:2

INF3121/INF4121Testingavprogramvare/Softwaretesting

5/15

1.13 Whichofthefollowingmetricswouldbemostusefultomonitorduringtestexecution?Selectanalternative:

Numberoftestenvironmentsremainingtobeconfigured.

Percentageofrequirementsforwhichatesthasbeenwritten.

Numberofdefectsfoundandfixed.

Percentageoftestcaseswritten.

Maximummarks:2

1.14 AccordingtotheISTQBGlossary,whatdowecalladocumentthatdescribesanyeventthatoccurredduringtestingwhichrequiresfurtherinvestigation?Selectanalternative:

Abugreport

Anincidentreport

Atestsummaryreport

Adefectreport

Maximummarks:2

1.15 Whichofthefollowingarebenefitsandwhicharerisksofusingtoolstosupporttesting?1Over-relianceonthetool2Greaterconsistencyandrepeatability3Objectiveassessment4Unrealisticexpectations5Underestimatingtheeffortrequiredtomaintainthetestassetsgeneratedbythetool6Easeofaccesstoinformationabouttestsortesting7RepetitiveworkisreducedSelectanalternative:

Benefits:1,2,3and7.Risks:4,5and6.

Benefits:3,4,6and7.Risks:1,2and5.

Benefits:2,3,6and7.Risks:1,4and5.

Benefits:2,3,5and6.Risks:1,4and7.

Maximummarks:2

1.16 ConsiderthefollowingtypesofTools:1Testmanagementtools

INF3121/INF4121Testingavprogramvare/Softwaretesting

6/15

2Staticanalysistools3Modelingtools4Dynamicanalysistools5PerformancetestingtoolsWhichofthefollowingofthesetoolsismostlikelytobeusedbyDevelopers?Selectanalternative:

1,4,and5

1,2and5

3,4and5

2,3and4

Maximummarks:2

2.1 Oneoftheseventestingprinciplestellsusthattestingshouldstartasearlyaspossible.Explainwhythisprincipleisimportant.Fillinyouranswerhere

Words:0

Maximummarks:2

2.2 Whataretheremainingsixprinciples?

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

7/15

Fillinyouranswerhere

Words:0

Maximummarks:6

2.3 Wecangrouptestingintodifferentkindsoftestingtypes,basedonthespecificreasoningorobjectiveforthetesteffort.Whatarethe4testingtypes,accordingtoISTQB’glossary?Fillinyouranswerhere

Words:0

Maximummarks:4

2.4 Explainthemaindifferencebetweenstaticanddynamictestingtechniques.

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

8/15

Fillinyouranswerhere

Words:0

Maximummarks:2

2.5 Whichtwomaingroupscanwedividestatictestingtechniquesinto?Fillinyouranswerhere

Words:0

Maximummarks:2

2.6 Whatisthepurposeofdynamicanalysistools?Giveanexampleofdefectsthatwecandiscoverwiththiskindoftool.

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

9/15

Fillinyouranswerhere

Words:0

Maximummarks:3

2.7 Inordertoexecuteatestcasewithatestexecutiontool,weneedtowriteatestscript.Whatarethetwomostgenerictypesofscriptingtechniques?Explainthedifferencebetweenthem,aswellastheirbenefitsanddisadvantages.Whichofthescriptingtechniquesisthemostgeneric?Justifyyouranswer.Fillinyouranswerhere

Words:0

Maximummarks:4

2.8 Whenconductingariskanalysisforaproject,youshouldprioritisetherisksbylevelofseverity(orharm).Whicharethetwomainfactorsintheassessmentofseverity?

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

10/15

Fillinyouranswerhere

Words:0

Maximummarks:2

2.9 Giveexamplesofthreedifferenttypesoftestautomationtoolsthatareparticularlyusefultodevelopers.Fillinyouranswerhere

Words:0

Maximummarks:3

2.10 Givetwoexamplesofcircumstanceswhereexperience-basedtestingisparticularlyuseful.

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

11/15

Fillinyouranswerhere

Words:0

Maximummarks:2

3.1 Belowyouseeastatediagramforahumanlifecycle,frombirthtodeath.Youshallnotjudgewhetherthestatediagramiscorrectornot,butbaseyouranswersonitasitis.Notethatinthistaskyoucanhandinsketchesasasupplementtoyourtextanswers.Usethesketchingpaperhandedtoyouintheexamroomforthis.Seeinstructionsonyourdesk.

INF3121/INF4121Testingavprogramvare/Softwaretesting

12/15

a)Basedonthestatediagramabove,youshallsetupatestcaseasapath(sequenceofstates)frombirthtodeath.Youshallonlyfollowvalidtransitionsfromonestatetothenext.Thepathshouldbeasshortaspossible,butstillgothrougheverystate.•Whatisthestatecoverageofthistestcase?•Whatisthetransitioncoverageofthistestcase?b)Basedonthestatediagramabove,isitpossibletocovereveryvalidtransitioninonetestcase?Ifnot,howmanytestcasesdoyouneedtocovereverytransition?Justifyyouranswers.c)Whatisthehighesttransitioncoverageyoucanachieveinonesingletestcase?d)Whyis100%statecoverageinmostcasesnotenoughasanexitcriteriafortesting?

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

13/15

Fillinyouranswerhere

Words:0

Maximummarks:10

3.2 Notethatinthistaskyoucanaswerbothinthetexteditorandwithsketches/drawings.Usethesketchingpaperhandedtoyouintheexamroom.Seeinstructionsonyourdesk.Aninformaticseducationprogram(study)atauniversitycollegeinNorwayhavethefollowingadmissionrequirements:

Toobtainastudyplace,theapplicantmusthaveageneralacademicqualification,themathematiccourseR1fromuppersecondaryschool,andcompetitionpointsabovethelimitoftheyear.Iftheapplicant'scompetitionpointsarebelowthislimit,he/sheisplacedonthewaitinglist,assumingthatthetwofirstconditionsarefulfilled.Iftheapplicanthasageneralqualification,butnottheR1mathematicscourse,theapplicantisofferedapreparatorycourseinmathematics,assumingthatthecompetitionpointsareabovethelimitofthatyear.

a)Drawadecisiontable,whichshowsallthepossiblecombinationsofconditionsforanapplicant.Thedecisiontableshallincludeanactionpart,whichshowswhetherornottheapplicantisofferedastudyplace,isplacedonawaitinglist,orisplacedonapreparatorycourseinmathematics.b)Youshallnowsimplifythedecisiontableandthusreducethenumberofruleswithoutlosinganyofthetestcases.Justifythesimplification.c)Considerthefollowingthreedifferenttestcases:

1. Theapplicanthasgeneralacademicqualification,themathematicscourseR1fromuppersecondaryschool,andcompetitionpointsabovethelimitoftheyear.

2. Theapplicanthasgeneralacademicqualification,themathematicscourseR1fromuppersecondaryschool,andcompetitionpointsbelowthelimitoftheyear.

3. Theapplicanthasgeneralacademicqualificationandcompetitionpointsabovethelimitoftheyear,butnotthemathematicscourseR1fromuppersecondaryschool.

Doweneedtohavemoretestcases?Ifyes,whichshouldtheybe?

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

14/15

Fillinyouranswerhere

Words:0

Maximummarks:10

4.1 Describeandexplaintheissuesandchallengesassociatedwiththeintroductionoftestingtoolsintoatestteamoranorganisation.Youmaybaseyouressayonthefollowingquestionsandissues:

Whatarethemainconsiderations(principles)forselectingatool?Whatarethepotentialbenefitsandrisksassociatedwiththeintroductionanduseofautomatedtools?Howcantheintroductionoftestautomationtoolsinfluencetheworkingenvironment?Whatarethespecialconsiderationsweneedtoaddresswhenintroducing:

-TestexecutionTools-PerformancetestingTools-StaticanalysisTools-TestmanagementTools

Whatjsapilotproject?Whatisthepurposeofapilotproject?Whatdowemeanbytheterm“proofofconcept”?Whichfactorscancontributetosuccess?

Fillinyouranswerhere

INF3121/INF4121Testingavprogramvare/Softwaretesting

15/15

Fillinyouranswerhere

Words:0

Maximummarks:20