Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
VB.NET
>>
Test 3
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Test 3
1 . How do you write the schema of a Dataset to a XML ?
A.
Dataset.WriteXML
B.
Dataset.Writexmlschema
C.
Dataset.AddxmlSchema
D.
None
2 . Which NameSpace is used to access the metadata in an Assembly?
A.
System.XML
B.
System.Assembler
C.
System.Reflection
D.
System.IO
3 . Which of the following functions have been removed in VB.NET from VB 6?
A.
String( )
B.
IsEmpty( )
C.
DoEvents ( )
D.
All of the above
4 . Which of the following statement is wrong in case of Constructors in VB.NET ?
A.
Constructors are always named as New
B.
Constructors do not return anything
C.
Constructors can not be parameterized
D.
Constructors are implicitly called when an object is created
5 . Which of the following NameSpace contains EventLog component?
A.
System.Threading
B.
System.IO
C.
System.Diagnostics
D.
System.XML
6 . What is serialization of an Object?
A.
Writing the Object to a Stream
B.
Reading the Object from a Stream
C.
Adding the Object to a collection
D.
None of the above
7 . Which of the following is not a method of a Connection Object in VB.NET?
A.
Open ( )
B.
BeginTransaction ( )
C.
Execute( )
D.
Commit Transaction( )
8 . Which is the base class for All built in Controls ?
A.
User Control
B.
Custom Control
C.
Control
D.
Activex Control
9 . What are the sequence of events of a webForm Life Cycle ?
A.
Form_Initialize, Form_Load, Form_QueryUnload, Form_Unload
B.
Form_Load, Form_Initialize, Form_QueryUnload, Form_Unload
C.
Form_Initialize, Form_Load, Form_Unload, Form_QueryUnload
D.
Form_Load, Form_Initialize, Form_Unload, Form_QueryUnload
10 . What is Remoting?
A.
Concept which allows code in one AppDomain call on objects of other App Domain
B.
A Concept which transmits the data over network
C.
A Concept which deploys the code in remote server.
11 . Assembly manifest contains
A.
Assembly's Identity
B.
Assembly's Reference List
C.
Both A & B
12 . VbOk,VbCancel,VbAbort are all the enumerated members of
A.
MsgboxStyle Enumeration
B.
MsgboxResult Enumeration
C.
CompareMethod Enumeration
13 . Append,Binary,Input are all the enumerated members of
A.
OpenMode Enumeration
B.
OpenAccess Enumeration
C.
OpenShare Enumeration
14 . Which of the following statements are not true in Vb.NET
A.
Objects are of value Types
B.
Constructors do not return anything
C.
VB.Net Supports Multilevel inheritance
15 . What is the output of the following code in Test class Class Myclass Dim Num as Integer Private Sub New (i as integer) Num=i End sub End class Class Test Sub Main() Dim c as Myclass C=New Myclass (10) End sub End Class
A.
Num variable of Myclass is initialized to 10
B.
Run Time Error
C.
Compiler Error
D.
StackOverflow Exception
16 . What is the output of the messagebox function in following code Class Test Dim A, B, C as Byte, Sub Main() A=200 B=100 C=A+B Console.WriteLine ( C ) End sub End Class
A.
Prints 300 as the output
B.
Prints "C"
C.
Compiler Error
D.
RunTime Error
17 . What is the output of the following code Class _Myclass Public Shared Num as integer Public Sub New (I as integer) {num=i} End sub Public sub New() End sub End Class Class Test Dim Cls1 as _Myclass (100 ) Dim Cls2 as New _Myclass Console.Writeline (Cls2.num) End Class
A.
Prints 0
B.
Prints 100
C.
Prints Null
18 . What is the out put of the following code MustInherit class MyFirstclass Public Dim Num as Integer Public Sub New( I as integer) Num=i End Sub End Class Class Test Dim cls as New MyFirstclass( 100) Console.writeLine (cls.Num) End Class
A.
Can not Create an Instance of MyfirstClass
B.
MyFirstclass is created and 100 is assigned to Num variable
C.
Runtime Error
19 . What is the out put NotInheritable Class A Public sub printA End sub Public sub PrintB End sub End Class Class B Inherits A End Class
A.
Both PrintA & PrintB are available at Class B
B.
Only PrintA is available at Class B
C.
Class B Can not inherit classA as it is not inheritable
20 . Whats the output of following code Class A Public Overridable Sub F() End Sub End Class Class B Inherits A Public Overridable Sub F() End Sub End Class
A.
Runtime Error
B.
Compiler Error
C.
Compiler Throws a warning message
21 . Which of the following is not member of String classs ?
A.
Copy
B.
Concat
C.
Format
D.
Substring
22 . Casting from reference type to value or vice versa is called as
A.
Casting of variables
B.
Boxing/Unboxing
C.
Structure & Class conversion
D.
Stack & Heap Conversion
23 . Web.Config file is of the type
A.
.vb
B.
XML
C.
Resource
D.
Aspx
24 . Which method of VB.NET implements the same functionality of Destructor of C# ?
A.
Dispose
B.
Close
C.
Finalize
D.
Nothing
25 . Which of the following can be used to run other application or batch file from VB.Net ?
A.
System.Diagnostics.Process
B.
System.App.Run
C.
System.Diagnostics.Run
D.
System.Fileapp.Execute
26 . Which interface provides the fast, connected, forward only access to data source ?
A.
IdataRecord
B.
Idatabase
C.
Idatacursor
D.
IdataReader
27 . Examples of Extended Provider are
A.
Dataprovider & Error Handler
B.
Errorprovider & Helpprovider
C.
Errorhandler & Finalizer
D.
None
28 . Which is not a collection type in VB.Net ?
A.
Hashtable
B.
ArrayList
C.
Heap
D.
Stack
29 . Which of the following is incorrect in .NET ?
A.
System.Text.Stringbuilder
B.
System.Collections.Collection
C.
System.Data.oledb.oledbcommand
D.
Microsoft.VisualBasic.Vbmath
30 . Which of the following are the valid method of command object ?
A.
ExecuteNonQuery & ExecuteScalar
B.
ExecuteQuery & ExecuteScalar
C.
ExecuteParameter
D.
None
Test Name :
Test 3
Category :
VB.NET
Number of Question :
30
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007