Computing 9691 · 20

Further programming

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

Reset
2016 May-June · Paper 33 · Q2(e)(i)

Programming paradigms · 4 marks · official answer ready

(i) Complete the pseudocode. CLASS StackClass PRIVATE TOS : INTEGER Stack : ARRAY[1 : 20] OF STRING PUBLIC PROCEDURE InitialiseStack ENDPROCEDURE PROCEDURE Push(NewItem : STRING) …

2016 May-June · Paper 33 · Q2(e)(ii)

Programming paradigms · 3 marks · official answer ready

(ii) The main program uses a variable MyStack as an instance of StackClass. Write pseudocode statements that would carry out the following sequence: • initialise MyStack • add (pu…

2015 May-June · Paper 31 · Q5(c)(iv)

Programming paradigms · 35 marks

(iv) The rules need to change as follows. A string with a sequence of one or more hash (#) characters is to be allowed as a valid string: 0#1 and 0####1 would both be a valid pack…

2015 May-June · Paper 31 · Q7(a)(i)

Programming paradigms · 11 marks

7 .............................................................................................................................................. [3] 9 3 (a) The following terms ar…

2015 May-June · Paper 31 · Q7(a)(ii)

Programming paradigms · 11 marks

7 .............................................................................................................................................. [3] 9 3 (a) The following terms ar…

2015 May-June · Paper 31 · Q7(b)(i)

Programming paradigms · 16 marks

7 .............................................................................................................................................. [3] 9 3 (b) A company’s website is…

2015 May-June · Paper 31 · Q7(b)(ii)

Programming paradigms · 15 marks

7 .............................................................................................................................................. [3] 9 3 (b) A company’s website is…

2015 May-June · Paper 32 · Q5(c)(iv)

Programming paradigms · 35 marks

(iv) The rules need to change as follows. A string with a sequence of one or more hash (#) characters is to be allowed as a valid string: 0#1 and 0####1 would both be a valid pack…

2015 May-June · Paper 32 · Q7(a)(i)

Programming paradigms · 11 marks

7 .............................................................................................................................................. [3] 9 3 (a) The following terms ar…

2015 May-June · Paper 32 · Q7(a)(ii)

Programming paradigms · 11 marks

7 .............................................................................................................................................. [3] 9 3 (a) The following terms ar…

2015 May-June · Paper 32 · Q7(b)(i)

Programming paradigms · 16 marks

7 .............................................................................................................................................. [3] 9 3 (b) A company’s website is…

2015 May-June · Paper 32 · Q7(b)(ii)

Programming paradigms · 15 marks

7 .............................................................................................................................................. [3] 9 3 (b) A company’s website is…

2014 May-June · Paper 33 · Q3(a)

Programming paradigms · 3 marks

(a) Explain how OOP uses classes and objects. [3]

2014 May-June · Paper 33 · Q3(b)

Programming paradigms · 2 marks · official answer ready

(b) An application is to store and process data for major event venues. Venues include football and cricket stadia and theatres. Three classes are to be designed as shown by the i…

2014 May-June · Paper 33 · Q3(c)(i)

Programming paradigms · 8 marks · official answer ready

(i) Complete the class diagram showing the classes and properties given. Do not attempt to include any methods on the class diagram. EventVenue VenueName : STRING [8] 8

2014 May-June · Paper 33 · Q3(c)(ii)

Programming paradigms · 5 marks · official answer ready

(ii) The following data is for one such venue. Stadio Olympico is in Rome, Italy. It is the home venue for two football teams, Lazio and Roma. The stadium is seating-only and has …

2013 October-November · Paper 31 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Explain the difference between a class and an object. [3] 10

2013 October-November · Paper 31 · Q4(b)

Programming paradigms · 8 marks · official answer ready

(b) The following scenario is to be implemented with object-oriented programming. For Examiner's Use A library has resources (RESOURCE) available for lending out to borrowers. Res…

2013 October-November · Paper 31 · Q4(c)

Programming paradigms · 2 marks · official answer ready

(c) Explain what is meant by encapsulation. For Examiner's Use [2] 12

2013 October-November · Paper 32 · Q4(a)

Programming paradigms · 3 marks · official answer ready

(a) Explain the difference between a class and an object. [3] 10