Science · Paper 2 · 2019
4 questions 🇹🇿 NECTA ✓ Official NECTA answersScience · Paper 2 · 2019
4 questions
3-hour timed simulation · auto-graded · counts toward ranking
Pay & start exam →Section A
Interface description: The time interval for the clock should be 1 second. The font type and size of the time displayed should be “Courier New” and 48 points respectively. The “Alarm On” or “Alarm Off” message should be displayed on the program with font type “MS Sans Serif”. Font size 18 points and bolded. (ii) Write Visual Basic codes which will activate the interface created in part (a) (i) in order to: Produce a sound when the “Alarm On” option is selected. Switch off the alarm sound by clicking the “Alarm Off” option. Display a message that informs a user if the alarm is “On” or “Off” after setting an alarm and clicks the desired option button. (iii) Save your work as “Vb Alarm”.
Upgrade to see model answers.
Section B
(b) (i) Use Visual Basic program to create the following Calendar viewer interface: Hint: Use Month View and TextBox controls to display the calendar and the current date. (ii) Write Visual Basic codes which will display the date picked/clicked by the user in the text box using the format “MM/DD/YYYY” as shown in part (b) (i).
Upgrade to see model answers.