Professional Documents
Culture Documents
2021 Paper 3 Marking Scheme
2021 Paper 3 Marking Scheme
2021 Paper 3 Marking Scheme
Question 1
Public Class Form1
Private Sub OUTPUT_Click(sender As Object, e As EventArgs) Handles OUTPUT.Click
Dim name As String
name = TXTINPUTNAME.Text
MessageBox.Show("HELLO " & name, "Name Output", MessageBoxButtons.AbortRetryIgnore,
MessageBoxIcon.Information)
End Sub
End Class
Question 2
Public Class Form1
Private Sub btnAdd_Click(sender As Object, e As EventArgs) Handles btnAdd.Click
txtResult.Text = Val(txtFirstNum.Text) + Val(txtSecondNum.Text)
lblResult.Text = "Sum of two numbers is : "
End Sub
End Sub
End Class
SOLUTION COMPUTER SCIENCE 4021/03 [NOV 2021]
Question 3
Public Class Form1
Private Sub btnLength_Click(sender As Object, e As EventArgs) Handles
btnLength.Click
Dim txtWord As String
txtWord = Len(txtString.Text)
txtResult.Text = txtWord
End Sub
Question 4 (a)
SOLUTION COMPUTER SCIENCE 4021/03 [NOV 2021]
Question 4 (b)
Question 4 (c)
SOLUTION COMPUTER SCIENCE 4021/03 [NOV 2021]
Question 4 (d)
Question 4 (d)
SOLUTION COMPUTER SCIENCE 4021/03 [NOV 2021]
Question 5
<HTML>
<HEAD>
<title>MAKWATI SECONDARY SCHOOL</title>
</HEAD>
<BODY>
<center>
<h1>MAKWATI SECONDARY SCHOOL</h1>
</center>
<p>Makwati secondary school is a boys high school aiming at empowering the boy child.<br>
Our pride is in nurturing and producing the best world class leaders of tomorrow. Be<br>
that may be, Our Moto is "Pray, Work, Play".</p>