Question 7

AQA Computer Science November 2020 Paper 1 (7517/1)A level4 marks

On the specification

7.1
3.1 Fundamentals of programming
7.2
3.1 Fundamentals of programming
7.3
4.1 Fundamentals of programming
7.4
3.1 Fundamentals of programming
Question text

7 This question is about the Outlet class. 7.1 State the name of a method in the Outlet class that uses string concatenation. [1 mark] 7.2 State the name of a local variable in a method in the Outlet class. [1 mark] 7.3 The Outlet class contains some protected attributes. Explain the difference between protected and private attributes. [1 mark] 7.4 In the Outlet class the constant value 100 has been used when calculating the initial value of DailyCosts in the constructor method. Explain what problem will occur if this value in the constructor is changed and no other changes are made. [1 mark]