Photo AI

Exhibitors must register with the committee to ensure that no double bookings occur - NSC Information Technology - Question 5 - 2016 - Paper 2

Question icon

Question 5

Exhibitors-must-register-with-the-committee-to-ensure-that-no-double-bookings-occur-NSC Information Technology-Question 5-2016-Paper 2.png

Exhibitors must register with the committee to ensure that no double bookings occur. 5.1.1 The electronic form below was designed to be used for online registration... show full transcript

Worked Solution & Example Answer:Exhibitors must register with the committee to ensure that no double bookings occur - NSC Information Technology - Question 5 - 2016 - Paper 2

Step 1

5.1.1(a) Critically comment on the layout of the components of the form, by indicating TWO ways in which the layout can be improved.

96%

114 rated

Answer

To enhance the layout of the registration form, the following improvements can be made:

  1. Grouping Related Information: The information on the form should be grouped logically. For example, personal information and exhibition details should be in separate sections to avoid confusion for users filling out the form.

  2. Improving Navigation: A clear submission button should be prominently placed at the bottom right corner of the form. Additionally, all required fields should be marked clearly to prevent users from missing any inputs.

Step 2

5.1.1(b) Critically evaluate the components on the form that are used to obtain data from the user. Identify TWO poorly chosen components and suggest a more suitable component in EACH case. Motivate EACH suggestion.

99%

104 rated

Answer

  1. Checkbox for Gender Selection: The radio buttons for gender selection would be better suited than checkboxes, as users can select only one option instead of multiple. This makes the intention clear and avoids any confusion.

  2. Field Type for Number of Tables: Instead of a plain text field, a drop-down list should be provided for the number of tables. This ensures that users select a valid number, reducing errors during form filling.

Step 3

5.1.2 Using the above form, draw a UML (unified modelling language) diagram for the objStand object class.

96%

101 rated

Answer

The UML diagram for the objStand object class includes the following elements:

  • Attributes:

    • StallCode: string
    • ExhibitorName: string
    • PlugPoint: boolean
    • NumTables: integer
    • NumAssistants: integer
  • Accessor Method:

    • +getStallCode(): string
  • Mutator Method:

    • +setPlugPoint(pp: boolean)

Step 4

5.2.1 Write pseudocode to generate the random number and calculate the answer for the sequence generated. DO NOT DISPLAY the sequence of terms.

98%

120 rated

Answer

randNum ← generate random number in the range 1 to 10
Answer ← 0

// Loop to generate sequence based on randNum
for index from 1 to randNum do
    Answer ← Answer + index
end for

Step 5

5.2.2 Copy and complete the trace table below to determine what the output of this program segment will be.

97%

117 rated

Answer

AIs A>3?BAstringIs B>A?Display
1No2""No
2No2""No
3No2""No
4Yes0""Yes""
5Yes1""Yes""
6Yes2""Yes""

Join the NSC students using SimpleStudy...

97% of Students

Report Improved Results

98% of Students

Recommend to friends

100,000+

Students Supported

1 Million+

Questions answered

;