How To Exam?

a knowledge trading engine...


SRM University 2007 B.Tech Information Technology IT208- VISUAL PROGRAMMING - Question Paper

Wednesday, 30 January 2013 08:35Web
10. discuss about different looping statements used in VB.NET.











II UNIT ques.
PART A

1. What is an interface? Write down its purpose.
2. What is constructor? Write down the syntax of a constructor.
3. Is it possible to overload a constructor? If possible, how?
4. Define an Event. Write down its syntax.
5. What is Inheritance? How do you extend a class? Write down the syntax.
6. Write down the application of MyBase keyword.
7. Correct the subsequent coding. discuss the cause why the subsequent code provide fault.
Module Module1
Class Account
Private acc_name As String = "sam"
Public Shared Function disp()
Console.WriteLine(acc_name)
End Function

End Class
Sub main()
Dim p1 As New person
p1.disp()
End Sub
End Module
8. Mention the various kinds of scope available in VB.NET.
9. Define a Delegate.
10. What is a custom attribute?
11. Write down the advantage of a shared member.
12. Mention the usage of delegates.
13. Define overloading and overriding.
14. Write down the usage of ‘sealed’ and ‘virtual’ keywords.
15. What is the purpose of ReadOnly property or WriteOnly property?
16. When can be the ReadOnly property used?
17. Define virtual class, Interface class and Base class.
18. Write about Interface class. Mention the related keywords used in Interface class concept.
19. Explain about Sealed class with its syntax.
20. Will the subsequent code produce accurate output? discuss the output or cause for any fault.
Public Interface IEmployee
……
End Interface

Public Class Employee
Implements IEmployee

Private c_sFirstName As String
Private c_sLastName As String
Private c_dSalary As Decimal
End class
Module Module1
Sub Main()
Dim e1 As New Employee
e1.FirstNameofEmployee = "RAM"
Console.WriteLine(e1.FirstNameofEmployee)
Dim i_e1 As IEmployee = e1
Console.WriteLine(i_e1.FirstName)
End Sub
End Module

21. Can you instantiate the following, if possible, how?
Interface class
Abstract class
22. Describe about the subsequent
a. Inherits
b. NonInheritable
c. MustInherit
23. Will the code provide any fault or output? If there are no errors, what will be the output?
Module Module1
Class person
Private name As String = "sam"
Public Function disp()



( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER SRM University 2007 B.Tech Information Technology IT208- VISUAL PROGRAMMING - Question Paper