Pearson BTEC Level 3 National In Computing

Transcription

PearsonBTEC Level 3 NationalinComputingUnit 1: Principles of ComputerScienceSampleAssessmentMaterials (SAMs)For use with: Extended Certificate, Foundation Diploma and ExtendedDiploma in Computing Diploma in Computing Diploma in Creative Computing Diploma in Computer Science Diploma in Computer Systems and Network Support Diploma in Business Information SystemsFirst teaching from September 2016Issue 2

Edexcel, BTEC and LCCI qualificationsEdexcel, BTEC and LCCI qualifications are awarded by Pearson, the UK’s largest awarding bodyoffering academic and vocational qualifications that are globally recognised and benchmarked.For further information, please visit our qualifications website at qualifications.pearson.com.Alternatively, you can get in touch with us using the details on our contact us page atqualifications.pearson.com/contactusAbout PearsonPearson is the world's leading learning company, with 35,000 employees in more than 70 countriesworking to help people of all ages to make measurable progress in their lives through learning. Weput the learner at the centre of everything we do, because wherever learning flourishes, so dopeople. Find out more about how we can help you and your learners at qualifications.pearson.comReferences to third-party material made in this specification are made in good faith. We do notendorse, approve or accept responsibility for the content of materials, which may be subject tochange, or any opinions expressed therein. (Material may include textbooks, journals, magazinesand other publications and websites.)All the material in this publication is copyright Pearson Education Limited 2019

ContentsSummary of Sample Assessment Material changesiQuestion paper1Set Task21Mark Scheme27Summary of Pearson BTEC Level 3 Nationals in Computing Sample AssessmentMaterials for Unit 1: Principles of Computer Science Issue 1 to 2 changesSummary of changes made between previous issues and thiscurrent issuePagenumbersThis Sample Assessment Material has been refocussed to removereference to particular programming languages:Question paper17Question 4 (a) Reference to Guvinder’s code replaced with Guvinder’spseudocode.Information booklet25Reference to code replaced with pseudocode.Mark schemeQuestion 4 (a) Reference to the sleep function when ‘calculatingaverage score’ replaced with WAIT.40

Pearson BTEC Level 3 NationalsWrite your name hereSurnameLearner Registration NumberForenameCentre NumberLevel3ComputingUnit 1: Principles of Computer ScienceExtended Certificate /Foundation Diploma /Diploma /Extended Diplomain ComputingDiplomas in Computing for Creative Industries, Computer Science, ComputerSystems and Network Support, Business Information SystemsSample assessment material for first teaching September 2016Time: 2 hoursTotalYou must have:Insert (enclosed)marksInstructionsUse black ink or ball-point pen.Fill in the boxes at the top of this page with your name,centre number and learner registration number.Answer all questions.Answer the questions in the spaces provided– there may be more space than you need.InformationThe total mark for this paper is 90.The marks for each question are shown in grey boxes– use this as a guide as to how much time to spend on each question.Additional information and stimulus material needed to answer the questionscan be found in the additional information booklet.You may use a calculatorAdviceRead each question carefully before you start to answer it.Try to answer every question.Check your answers if you have time at the end.Paper referenceXXXX/XXS50696A 2019 Pearson Education Ltd.*S50696A0120*Turn over1/1/1/1/1Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 20191

BLANK PAGE22*S50696A0220*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

Please refer to the Information Booklet in order to answer Question 1.Reyha is creating a 2D maze-based computer game.A design for the Level 1 screen and the Level 1 design criteria are given in Section1 of the Information Booklet.1 Lives and score will be given as variables.(a) Identify three other features of the game proposal that would be represented asa variable.3 marks1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .The position of sprites onscreen will be set using X and Y co-ordinates.The player will use the arrow keys to control sprite A.*S50696A0320*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 201933Turn over

(b) Produce pseudocode that describes the movement of sprite A when the userpresses a key to move it to the right.3 marks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .During play, the player moves sprite A to the door with 3 lives and 13 seconds oftime left.(c) Calculate the points the player will be awarded.You are advised to show your working.2 marksAnswer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44*S50696A0420*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

Reyha has written some pseudocode to show how sprite B will be controlled in Level 1.BEGINMOVE upwards until touching wallWHEN touching wallMOVE downwardsENDCheck the code against the Level 1 design criteria.(d) Explain three improvements that can be made to the pseudocode to better meetthe criteria when programming sprite B.6 marks1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*S50696A0520*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 201955Turn over

Programmers can use flow charts to plan the logic for their programs.Reyha’s flow chart must show the logic for:ÂÂactions when sprite A touches an enemy spriteÂÂchecking when the game has endedÂÂsetting the level completion criteriaÂÂchecking if the level completion criteria have been met.(e) Complete the flow chart to show the logic for actions for this screen.8 marks66*S50696A0620*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

Move sprite A using arrow keysSet player start positionTotal for Question 1 22 marks*S50696A0720*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 201977Turn over

Tony has been employed to write a computer program that will store and processinformation for a small business.The program will store personal and employment details, including name, date ofbirth, employee number and pay details.Tony writes the program using an object-oriented language.2 (a) Explain how the structure of an object-oriented language would be used tomanage the data in the program.4 marks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .88*S50696A0820*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

Tony creates a section of code to calculate how much money should be deductedfrom a staff member’s weekly pay to be paid into the pension scheme.The table shows an example of data that will be processed.NameMaria CortezWeek beginning07/09/2016Hours worked37In pension schemeYesValidation checks are used to ensure that data is suitable and to reduce dataentry errors.(b) Explain how a different validation check would be used for each field.6 marksWeek beginning. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Hours worked. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .In pension scheme. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .*S50696A0920*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 201999Turn over

Tony needs to create code to calculate staff annual holiday entitlement.Holiday entitlement is calculated using the following criteria.Full-time staff working five days a week are entitled to 28 days’ holiday per year.Part-time staff are entitled to a proportion of 28 days’ holiday per year, based on thenumber of days they work each week.(c) Develop a function, using pseudocode, that calculates the holiday entitlement forfull-time and part-time staff.4 marks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1010*S50696A01020*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

(d) Analyse how the features of object-oriented languages will be of benefit to Tonyand the company when developing the program.6 marks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Total for Question 2 20 marks*S50696A01120*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 20191111Turn over

Megan organises a charity run in a local park.She needs a computer program to process the runners’ data.Runners can start at any time between 09:00 and 14:00.Start and finish times will be recorded. The fastest three runners will each receivea prize.The table shows the data for ten runners.1212RunnernumberNameStart timeFinish timeAgeRunning clubmember1Jones T09:3010:1032No2Smith J10:0010:2524Yes3Irwin S09:1010:0056No4Patel P11:0011:4552No5Murphy M10:4011:4076Yes6Owen K12:1012:4019No7Drew L12:5513:5045No8Abdi N10:5011:1822Yes9Stein V10:1510:5039No10Tailor B09:3910:0517Yes*S50696A01220*Pearson BTEC Level 3 Nationals in Computing – Unit 1 – Final Sample Assessment MaterialsIssue 2 – June 2019 Pearson Education Limited 2019

The data for each runner will be stored as a record.3 (a) Explain how two characteristics of a record make it a suitable structure to storethis data.4 marks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Answer all questions. Answer the questions in the spaces provided . A design for the Level 1 screen and the Level 1 design criteria are given in Section . Programmers can use flow charts to plan the logic for their programs. Rey