The document outlines an examination for a university degree in information technology or software development. It includes 4 questions - the first being compulsory, and students must choose two of the other three. Question 1 has multiple parts testing knowledge of variables, data types, modules, and Option Strict/Explicit in Visual Basic.NET. Question 2 tests error identification and control functions. Question 3 examines custom controls, deployment options, debugging tools, and events. Question 4 provides an exercise to build a program calculating circle properties from user input.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
54 views2 pages
Bbit Exam4
The document outlines an examination for a university degree in information technology or software development. It includes 4 questions - the first being compulsory, and students must choose two of the other three. Question 1 has multiple parts testing knowledge of variables, data types, modules, and Option Strict/Explicit in Visual Basic.NET. Question 2 tests error identification and control functions. Question 3 examines custom controls, deployment options, debugging tools, and events. Question 4 provides an exercise to build a program calculating circle properties from user input.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2
UNIVERSITY EXAMINATIONS: 2023/2024
EXAMINATION FOR THE DEGREES OF BACHELOR OF SCIENCE IN
INFORMATION TECHNOLOCY/SOFTWARE DEV./ APPLIED COMPUTING/ BUSINESS I.T BIT 2105/ BBIT 2105/ BAC 1304/ BSD 1305: APPLICATION PROGRAMMING FULL TIME/PART TIME/DISTANCE LEARNING ORDINARY EXAMINATION DATE: DECEMBER, 2023 TIME: 2 HOURS
INSTRUCTIONS: Question One is Compulsory, Choose Two Other Questions
QUESTION ONE (20 marks) Compulsory
a) Explain the concept of variables in Visual Basic.NET. Provide examples of different variable types and their usage. (4marks) b) Write a Visual Basic.NET code snippet to declare a variable, assign a value to it, and then display the value on the console. (5marks) c) What is the purpose of "Option Strict" and "Option Explicit" in Visual Basic.NET? How do they affect your code? (4marks) d) Describe the differences between value types and reference types in Visual Basic.NET (4marks) e) Define a module. Visual Basic stores code in three different modules. List and explain these modules. (3 marks)
Question TWO (15 marks)
(a) Identify the errors, if any, in the following program, and suggest how you would solve them. Dim strTest, 123str As String strTest = 34 messageBox.Show(“Welcome to VB programming”) “testing” = strTest txtTest.Text = strTest Dim intVar As Integer (6 marks) (b) Explain the function of the following controls (i) Listbox (ii) Frame (4 marks) (c) Write a visual basic program to calculate the sales tax when the calculate button is clicked. (5marks)
QUESTION THREE (15 marks)
a) How can you create and use custom controls in Visual Basic.NET? (2 marks) b) What are the various ways to deploy a Visual Basic.NET application to end-users? (3 marks) c) Discuss the importance of debugging and testing in software development, and explain the debugging tools available in Visual Studio for Visual Basic.NET (5 marks) d) Explain the concept of event-driven programming in Visual Basic.NET. Provide an example of handling a button click event in a Windows Forms application. (5marks) QUESTION 4 (15 MARKS) (a) A program is required that can accept the radius as input through a textbox (txtRadius) and to calculate the Perimeter and Area of a Circle, and the Volume of a sphere. The perimeter will be displayed in label lblPerimeter, Area in lblArea and Volume in lblVolume. Required: Write three functions each for calculating the perimeter, area and volume. Use a button btnCalculate to invoke the three functions and display the results. (10 marks) (b) Write a program to accept a sentence in lower case and convert it to upper case. Show an interface that you would use for the problem. (5 marks)