INTERNATIONAL ADVANCED DIPLOMA
IN
COMPUTER STUDIES
ADVANCED VISUAL BASIC
JUNE 2010 – LOCAL EXAMINATION
SECTION A
Answer all questions in this section.
SECTION B
Answer any two questions in this section.
Time: 2 hours
Clearly cross out surplus answers.
Failure to do this in Section B will result in only the first two answers being marked.
Any reference material brought into the examination room must be handed to the invigilator before the start of the examination.
Advanced Visual Basic
June 2010
Final
© NCC Education Ltd 2010
SECTION A
ANSWER ALL QUESTIONS IN THIS SECTION
Marks
QUESTION 1
Describe the process used by the .Net Framework in executing a Visual Basic .Net program.
4
QUESTION 2
Explain the concept of encapsulation and state ONE (1) advantage of encapsulation.
4
QUESTION 3
The following Visual Basic.Net statement defines a class named WaitingList:
4
Class WaitingList
Dim Limit As Decimal
End Class
Change the above statement so that all instances of WaitingList will automatically have a Limit value of 100 when instantiated.
[Note: Your answer should NOT change the declaration statement for the class-level variable Limit in the class definition.]
QUESTION 4
Explain the effect of declaring variables in a class with Protected access.
4
QUESTION 5
ASP.Net 2.0 provides built-in validation control objects to help validate data entered in a Web form.
Describe FOUR (4) such validation control objects.
QUESTION 6
Write the Visual Basic code to create an instance of the class named MotorVehicle. This newly created object is to be stored in a variable named mv1. [You can assume that the class MotorVehicle has already been defined and is accessible from your code. There is no explicit declaration of a constructor in the class.
You must explicitly declare the variable mv1.]
QUESTION 7
List FOUR types of application that you can create using Visual Studio 2005 .NET.
4
4
4
QUESTION 8
Explain the following concepts:
• Abstraction
•