Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
VB.NET
>>
Test 4
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Test 4
1 . How do you call non shared methods of a class
A.
Directly invoking the method name
B.
Invoking the method through the instance of that class
C.
None of the above
2 . Events can not be declared as shared in VB.NET
A.
True
B.
False
3 . The underlying mechanism used by the .NET environment for call back methods
A.
Pointers
B.
Delegates
C.
None of the above
4 . Every class we create in VB.NET can act as a base class
A.
True
B.
False
5 . How do you create a subclass
A.
With the help of Inherits keyword
B.
With the help of Using Keyword
C.
With the help of Implements Keyword
6 . The Shadows keyword allows us to replace methods on the base class that the base class designer didn't intend to be replaced
A.
True
B.
False
7 . How do we implement private interfaces
A.
Using Inherits Keyword
B.
Using Implements Keyword
C.
Private interfaces can not be implemented
8 . To implement an interface it is not necessary to implement all the methods and properties defined by the interface.
A.
True
B.
False
9 . What is abstraction?
A.
Hiding the complex behaviors of the object from real world
B.
Exposing the all the behaviors of the object to out side
C.
Binding methods & properties of an object together
10 . Which technique we use to achieve polymorphic behavior of an object
A.
Late Binding
B.
Multiple Interfaces
C.
.NET Reflection
D.
All of the above
11 . How do we refer a namespace to an VB.Net project
A.
With the help of Using Keyword
B.
With the help of Imports keyword
C.
With the help of Inherits keyword
12 . When does an Application Exception occurs
A.
When a non-fatal error occurs
B.
When a Null argument is passed & can not be accepted as null
C.
When a recoverable exception occurs
13 . When does a Missing Number exception occurs?
A.
When there a DLL versioning problem
B.
When 0 is used as a divisor in an arithmetic routine
C.
Occurs when there is not enough memory to continue
14 . Where do you find COMException class
A.
System.Runtime.Interopservices
B.
System.XML
C.
System. Data
15 . Where do you fing Invalid Character Exception
A.
System
B.
System. Data
C.
System.Webservices.Protocols
16 . ON ERROR statement can not be used when a Try Catch block is already present.
A.
True
B.
False
17 . How do you break out of Try Catch block
A.
Exit Try keyword
B.
Close
C.
Exit
18 . How do you comment source coed in VB.NET
A.
REM
B.
/* */
C.
//
D.
'
19 . Which of the following syntax is not allowed in VB.NET?
A.
Sub End sub
B.
{ }
C.
( )
20 . Which method of the XMLdocument class takes xml as string while loading
A.
Loadxml ( )
B.
Load( )
C.
Save ( )
21 . ADO.NET allows VB.NET application to generate XML documents and to use such documents to update persisted data.
A.
True
B.
False
22 . Which is the base class for TypedDataset
A.
DataReader
B.
Dataset
C.
DataAdapter
23 . Which one of the following is the best to retrieve the data multiple time from database and to model a complex a relation ship in memory.
A.
Data Set
B.
Data Reader
C.
DataRow
24 . Which is the best to retrieve Read-Only, Forward-only stream of data from database
A.
Data Set
B.
Typed Data Set
C.
DataReader
25 . If your command contains output parameters or return values they will not be available until the DataReader is closed
A.
True
B.
False
26 . The DataAdapter uses which of the following object to retrieve the data from database
A.
Connection
B.
Command
C.
DataReader
27 . If you create a Dataset Object with no name , it will be given the default name of NewDataSet
A.
True
B.
False
28 . Forms in VB.Net are saved in which of the following files
A.
.frm
B.
.vb
C.
.frx
29 . How do you make a windows Form transparent in VB.NET
A.
With the help of Opacity property of the form
B.
By setting the background color to white
C.
It is not possible to make a windows form transparent
30 . It is possible to have both Autoscroll & IsMDIContainer set to True at the same time
A.
True
B.
False
31 . Which of the method is used to display the form as modal
A.
Activate ( )
B.
Show( )
C.
Showdialog( )
32 . How do you determine if a check box is selected or not in Vb.Net
A.
Using Value Property
B.
Using CheckState Property
C.
Using Option Property
33 . How do you create a Custom Control in Vb.Net
A.
Inherit from another control
B.
Build a composite control
C.
Write a control from scratch
D.
All of the above
34 . The tool provided with .Net framework to register assemblies for use by COM is
A.
Regasm
B.
Regsvr32
C.
ILDASM
35 . TlbExp does the same thing which RegAsm does
A.
True
B.
False
36 . What is the full form WSDL
A.
Web Services Description Language
B.
Web Services Development Language
C.
Web Site Development Language
37 . Which of the following protocol is used in WebServices?
A.
HTTP
B.
SOAP
C.
WSDL
38 . Web services can handle any type of data that can be serialized
A.
True
B.
False
39 . How do you add Web Methods in VB.Net
A.
Add keyword to Method signature
B.
Add [WebMethod] on top of the Method Signature
C.
Add {WebMethod} on top of the Method Signature
40 . Webservices will have the file extension
A.
.asmx
B.
.ascx
C.
.aspx
41 . An Assembly must have a Strong name to be placed in GAC
A.
True
B.
False
42 . Which too l is used to add & remove assemblies from GAC
A.
Regasm
B.
GacUtil
C.
Regsvr32
43 . How do you refer the current class in VB.Net
A.
Me
B.
This
C.
Super
44 . How you refer the parent class in VB.Net
A.
Parent
B.
MyBase
C.
Super
45 . How do you define attributes in Vb.Net
A.
[]
B.
<>
C.
{}
46 . Where do you define attributes in VB.Net
A.
Along with Method signature
B.
On top of the method signature
C.
With in the Method body
47 . The serialization of an Object means that it is written out to a stream
A.
True
B.
False
48 . Which of the following is not a method of Debug class
A.
Assert( )
B.
Flush( )
C.
Open( )
49 . VB.NEt code can be used in Server side scripting of an aspx page
A.
True
B.
False
50 . Vb.Net classes can be derived in C#
A.
True
B.
False
Test Name :
Test 4
Category :
VB.NET
Number of Question :
50
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007