Computer Science 9608 · 20

Further programming

192 questions. Open a question to solve it and check the official answer.

Reset
2016 October-November · Paper 41 · Q1(b)(i)

Programming paradigms · 3 marks · official answer ready

(i) Create() ........................................................................................................................................... ..........................…

2016 October-November · Paper 41 · Q1(b)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) Reset() ........................................................................................................................................... ..........................…

2016 October-November · Paper 41 · Q1(b)(iii)

Programming paradigms · 2 marks · official answer ready

(iii) SetState() ........................................................................................................................................... ......................…

2016 October-November · Paper 41 · Q1(b)(iv)

Programming paradigms · 2 marks · official answer ready

(iv) SetNewCode() ........................................................................................................................................... .....................…

2016 October-November · Paper 41 · Q1(b)(v)

Programming paradigms · 4 marks · official answer ready

(v) The user must enter a 4-digit code. Write program code for a function Valid(s : STRING)that returns: • TRUE if the input string s consists of exactly 4 digits • FALSE otherwis…

2016 October-November · Paper 41 · Q1(b)(vi)

Programming paradigms · 12 marks · official answer ready

(vi) Convert the flowchart to program code for the method StateChange(). Use the properties and methods in the original class definition and the Valid() function from part (v). ME…

2016 October-November · Paper 41 · Q1(b)(vii)

Programming paradigms · 4 marks · official answer ready

(vii) The company needs to write a program to simulate a safety deposit box. The program will create an object with identifier ThisSafe, which is an instance of the class SafetyDe…

2016 October-November · Paper 42 · Q1(b)(i)

Programming paradigms · 3 marks · official answer ready

(i) Create() ........................................................................................................................................... ..........................…

2016 October-November · Paper 42 · Q1(b)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) SetState() ........................................................................................................................................... .......................…

2016 October-November · Paper 42 · Q1(b)(iii)

Programming paradigms · 2 marks · official answer ready

(iii) ReturnCoins() ........................................................................................................................................... ...................…

2016 October-November · Paper 42 · Q1(b)(iv)

Programming paradigms · 3 marks · official answer ready

(iv) Each coin inserted must be one of the following: 10, 20, 50 or 100 cents. Write program code for a function ValidCoin(s : STRING) that returns: • TRUE if the input string is …

2016 October-November · Paper 42 · Q1(b)(v)

Programming paradigms · 2 marks · official answer ready

(v) Write program code for the method CoinInserted() ..............................................................................................................................…

2016 October-November · Paper 42 · Q1(b)(vi)

Programming paradigms · 12 marks · official answer ready

(vi) Convert the flowchart to program code for the method StateChange(). Use the attributes and methods in the original class definition and the ValidCoin() function from part (iv…

2016 October-November · Paper 42 · Q1(b)(vii)

Programming paradigms · 4 marks · official answer ready

(vii) The company needs to write a program to simulate a parking meter. The program will create an object with identifier ParkingMeter, which is an instance of the class TicketMac…

2016 October-November · Paper 43 · Q1(b)(i)

Programming paradigms · 3 marks · official answer ready

(i) Create() ........................................................................................................................................... ..........................…

2016 October-November · Paper 43 · Q1(b)(ii)

Programming paradigms · 2 marks · official answer ready

(ii) Reset() ........................................................................................................................................... ..........................…

2016 October-November · Paper 43 · Q1(b)(iii)

Programming paradigms · 2 marks · official answer ready

(iii) SetState() ........................................................................................................................................... ......................…

2016 October-November · Paper 43 · Q1(b)(iv)

Programming paradigms · 2 marks · official answer ready

(iv) SetNewCode() ........................................................................................................................................... .....................…

2016 October-November · Paper 43 · Q1(b)(v)

Programming paradigms · 4 marks · official answer ready

(v) The user must enter a 4-digit code. Write program code for a function Valid(s : STRING)that returns: • TRUE if the input string s consists of exactly 4 digits • FALSE otherwis…

2016 October-November · Paper 43 · Q1(b)(vi)

Programming paradigms · 12 marks · official answer ready

(vi) Convert the flowchart to program code for the method StateChange(). Use the properties and methods in the original class definition and the Valid() function from part (v). ME…