Question 1

OCR Computer Science November 2020 Paper 2AS27 marks

On the specification

(a)(i)
2.1 Elements of computational thinking
(a)(ii)
2.1 Elements of computational thinking
(b)(i)
2.2 Problem solving and programming
(b)(ii)
2.2 Problem solving and programming
(b)(iii)
2.2 Problem solving and programming
(c)(i)
2.2 Problem solving and programming
(c)(ii)
1.2 Software and software development
(c)(iii)
3.2 Programming project: Design of the solution3.3 Programming project: Developing the solution
Question text

1 Sally is a classroom teacher. She would like a program to be able to organise where students will sit in her classroom. A plan of her classroom is shown in Fig. 1. Storage Units ZingZing Susan Banks Matthew Alter Foggin Rob Harry Naheed Shah Anderson Jefferies Demmi Alex Oldman Rashida Cunningham Ali Teacher Desk Door White Board Fig. 1 (a) (i) State three ways that Sally has made use of abstraction in Fig. 1. 1 2 3 [3] (ii) Explain two benefits to Sally of using abstraction before creating the programming code. 1 2 [4] (b) Sally would like to increase the security of her program by adding a password to enter the program. She has created the procedure, checkPassword, to do this. 1 procedure checkPassword() 2 correctPassword = "ComputerScience12" 3 check = false 4 while check == false 5 enteredPassword = input("Enter Password") 6 if enteredPassword == correctPassword then 7 check = true 8 endif 9 endwhile 10 endprocedure (i) Identify the programming construct used on lines 06 to 08 in the procedure checkPassword. [1] (ii) Sally has used a while loop on line 04 of the procedure checkPassword. Explain why Sally has used a while loop instead of a for loop. [4] (iii) Sally could have used a do until loop instead of a while loop. Rewrite lines 04 to 09 of the procedure checkPassword using a do until loop instead of a while loop. [3] (c) Sally will make use of an Integrated Development Environment (IDE) to create her program code. (i) Describe three features that are commonly found in IDEs that will help Sally write her program code. 1 2 3 [6] (ii) Sally uses a Rapid Application Development (RAD) approach when creating her program. Describe two benefits of using RAD. 1 2 [4] (iii) Sally will make use of an appropriate test strategy to test her programming code. Compare one difference between black box testing and white box testing. [2]