NCC EDUCATION

INTERNATIONAL ADVANCED DEGREE OR DIPLOMA

IN

LAPTOP STUDIES

ADVANCED VISUAL SIMPLE

JUNE 2010 – REGIONAL EXAMINATION

SECTION A

Answer all questions with this section.

SECTION B

Answer any two questions with this section.

Period: 2 hours

Clearly cross out surplus answers.

Failure to accomplish this in Section B will result in only the initially two answers being proclaimed.

Any material for consultation brought into the examination space must be handed down to the invigilator before the start of the examination.

Advanced Visual Simple

June 2010

Final

© NCC Education Ltd 2010

SECTION A

ANSWER YOUR CONCERNS IN THIS SECTION

Marks

PROBLEM 1

Identify the process utilized by the. Net Framework in executing a Visual Basic. Net program.

four

QUESTION two

Explain the concept of encapsulation and state ONE (1) advantage of encapsulation.

some

QUESTION several

The following Aesthetic Basic. Net statement specifies a class known as WaitingList:

four

Class WaitingList

Dim Limit As Fraccion

End Class

Change the above statement in order that all cases of WaitingList can automatically possess a Limit worth of 75 when instantiated.

[Note: Your answer should NOT replace the declaration assertion for the class-level adjustable Limit in the class description. ]

QUESTION 4

Explain the effect of proclaiming variables within a class with Protected get.

4

QUERY 5

OR NET. Net installment payments on your 0 supplies built-in validation control items to help confirm data moved into in a Web form. Describe 4 (4) this kind of validation control objects.

QUERY 6

Write the Visual Simple code to produce an instance of the class named MotorVehicle. This kind of newly developed object will be stored in a variable called mv1. [You can easily assume that your class MotorVehicle had been defined and is also accessible from the code. There is not any explicit announcement of a constructor in the school. You must clearly declare the variable mv1. ]

QUESTION several

List 4 types of application that you can create employing Visual Studio 2005. NET.

4

some

4

PROBLEM 8

Clarify the following principles:

• Etre

• Gift of money

4

ISSUE 9

Describe the advantage of having an intermediate CLR level that executes compiled MSIL instructions.

four

Page a couple of of almost 8

Advanced Aesthetic Basic

Summer 2010

Final

© NCC Education Limited 2010

Signifies

QUESTION 15

Explain the between attributes and types of procedures in a course definition

5

Page a few of eight

Advanced Aesthetic Basic

Summer 2010

Final

© NCC Education Limited 2010

SECTION B

SOLUTION ANY TWO QUESTIONS WITH THIS SECTION

PROBLEM 1

Markings

Public Category MyPoint

Exclusive x As Integer

Private y As Integer

Public Sub New(ByVal x Because Integer, ByVal y Because Integer)

Me. x = x

Myself. y sama dengan y

End Sub

End Class

Community Class MyPolygon

Line 1

Protected arrMyPoints As MyPoint()

End Course

a)

Make clear the impact of using the key word " protected” in the code above noticeable as " Line 1”

2

b)

Add a Sub procedure for the above code named DrawShape. This procedure probably should not have virtually any arguments. The procedure should simply display the string " Drawing polygon” in a communication box. This process should be accessible from clients of MyPolygon.

4

c)

Create a class named MySquare that follows from MyPolygon.

2

d)

Write a constructor for MySquare. The constructor has one particular argument called arrMyPoints of the type MyPoint() i. at the. array of MyPoint. Inside the constructor, you will load the class changing arrMyPoints together with the argument arrMyPoints.

8

e)

Write a Bass speaker procedure named DrawShape in the class MySquare. This procedure overrides DrawShape handed down from MyPolygon. Inside this process, display the string " Drawing Square” in a meaning box. Make changes to MyPolygon if needed.

4

f)

Create two more classes named MyTriangle and MyTrapezium. These two classes should also receive assets from MyPolygon and override the DrawShape treatment. The same constructor that you have designed for MySquare also needs to be produced...