Quelpr

CAPE Computer Science Unit 2 · 2006 · Paper 2 · Question 5(d)

Write the code to instantiate GUI object L, populate it with the numbers 1 to 30, and add it to the GUI.

The mark scheme is shown once you've answered.

Practise this question

Other parts of this question

  1. 5(a)Identify the GUI objects to use in this application and state the purpose of each.[6 marks]
  2. 5(b)Draw the GUI layout and label the GUI components identified in 5(a).[4 marks]
  3. 5(c)Explain TWO events that the program should anticipate.[4 marks]
  4. 5(e)Write code to retrieve user inputs, calculate the Simple Interest, and display the result in the corresponding GUI component.[6 marks]
  5. 5(f)Using the calculated Simple Interest from 5(e), write code to compute the monthly instalment and display it in the appropriate GUI component.[4 marks]

More practice: the rest of this paper · more Systems Analysis and Design questions · all CAPE Computer Science Unit 2 past papers