0% found this document useful (0 votes)
4 views

PROGRAMMING II

Uploaded by

Lionel Sasalande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

PROGRAMMING II

Uploaded by

Lionel Sasalande
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PROGRAMMING II

QUESTION 1

i. What is Visual Basic? (4 Marks)

ii. List two features of Visual Basic (4 Marks)

iii. What is an IDE in the context of Visual Basic? (4 Marks)

iv. Describe the purpose of a 'Form' in Visual Basic (4 Marks)

v. What is a 'Control' in Visual Basic? Give an example (4 Marks)

QUESTION 2

i. What is the Visual Basic Toolbox? (4 Marks)

ii. List two common controls found in the Visual Basic Toolbox (4 Marks)

iii. What is the purpose of the 'Button' control in Visual Basic? (4 Marks)

iv. Describe the use of the 'TextBox' control in Visual Basic (4 Marks)

v. What is the 'Label' control used for in Visual Basic? (4 Marks)

QUESTION 3

Create a simple form in Visual Basic that includes a TextBox, a Button, and a Label. Describe the
steps you took to add these controls to the form and how you configured their properties
Provide a step-by-step explanation of how you added a TextBox, a Button, and a Label to a form in
Visual Basic. Include details on how you configured their properties. (10 Marks)

Write a Visual Basic code snippet that changes the text of a Label control when a Button is
clicked.
Provide a code example that demonstrates how to change the text of a Label control when a Button is
clicked in Visual Basic. (10 Marks)

QUESTION 4
Write a Visual Basic code snippet that calculates the sum of two numbers entered by the user in
TextBox controls and displays the result in a Label control
Provide a code example that demonstrates how to calculate the sum of two numbers entered by the user
in TextBox controls and display the result in a Label control. (10 Marks)
Develop a Temperature Converter Application Task: Create an application in Visual Basic that
converts temperatures between Celsius and Fahrenheit.
 Instructions:
o Add TextBox controls for entering the temperature value.
o Add RadioButton controls to select the conversion direction (Celsius to Fahrenheit or
Fahrenheit to Celsius).
o Add a Button to perform the conversion.
o Add a Label to display the converted temperature.
Write the code to perform the conversion based on the selected direction (10 Marks)

QUESTION 5

Create a Simple Quiz Application


 Task: Develop a quiz application in Visual Basic that presents multiple-choice questions to
the user.
 Instructions:
o Add Labels to display the questions.
o Add RadioButton controls for the answer options.
o Add a Button to submit the answer.
o Add a Label to display the score.
o Write the code to check the selected answer, update the score, and display the next
question. (20 Marks)

You might also like