R4RIN
MCQS
VB.Net MCQ Quiz Hub
VB NET MCQ SET 2
Choose a topic to test your knowledge and improve your VB.Net skills
1. JIT stands for
Just In Type
Just In Time
Just In Thread
Just In Text
2. Out of following which is NOT type of assembly?
Local
Private
Public
None
3. Assembly is ______grouping of all units
Arithmatical
Logical
Physical
Binary
4. New keyword is used with the
Destructor
Constructor
Both
None
5. Out of following,which is NOT a type of Authentication?
Windows Authentication
Web Authentication
Passport Authentication
Forms Authentication
6. What is CLR?
Current LanguageRuntime
Common Language Runtime
Common LanguageRealtime
Current LanguageRealtime
7. IL stands for
Internal Language
Internet Language
Intermediate Language
Interpreted Language
8. What is CTS?
Common Type Server
Control Type System
Common Type System
Control Type Server
9. What is CLS?
Current Language Specifics
Common Language Specification
Common Language Specialization
Current Language System
10. Language which is NOT supported by VB.Net
ASP
COBOL
Perl
C#
11. What is used to store decimal data in .NET?
BinaryWriter
DecimalWriter
OctalWriter
HexaWriter
12. Language which is NOT supported by .Net
Java
VB
Perl
COBOL
13. To declare an integer variable in VB.NET language, which one of the following statements is true?
Dim x As Integer
x As Integer
Dim x As Single
None of These
14. In VB.NET language, Which one is not the integer value?
12
23
10
100
15. Which of the following Loop structure does not supported by VB.Net?
Do ................ Loop
For ................... Next
Do ................ While
For Each ............ While
16. The _____ model does not offer a model for source code reuse.
COM+
DCOM
COM
.Net
17. ____ allow custom items of information about a program element to be stored with an assembly's metadata.
Properties
Attributes
Methods
Classes
18. The corresponding .Net FCL type for Short is ___________.
System.Int16
System.Int32
System.Int64
None
19. The member "clear" of the Array class that sets a range of array elements to zero, false or null reference is a _____________ method.
Method
Class
Shared
Object
20. The ___________ method converts an OLE automation date value to a DateTime Instance.
Today
Now
TimeOfDay
FromOADate
21. Every optional argument in the procedure definition must specify a _________ value which must be a constant expression.
integer
constant
default
character
22. Type casting in VB.Net is implemented by means of ____________ statement.
Type()
TypeDef()
Btype()
Ctype()
23. Using a ________ variable does not enable us to create read-only properties that are often required by a class.
private
public
friend
protected
24. A ___________ performs invisible tasks even if you write no code.
destructor
constructor
function
private method
25. The ___________________________________ does not describe inherited member functions, inherited operators, and overridden virtual member functions.
Library
Objects
Classes
Class Library Reference
26. The ______________________ group classes according to their common services.
Namespaces
inheritance
programs
objects
27. Whenever an application is created, a ______ is added.
Class
Object
Form
Property
28. _____ are interactive objects that you place in dialog boxes or other windows to carry out user actions.
Forms
Controls
Classes
Objects
29. The _______________ class provides static methods to start, stop, or filter Windows messages in an application.
Forms
Control
Windows
Application
30. The ___________is a systematic class framework used for the development of system tools and utilities.
.Net tools
Visual Basic 6
Visual Basic 2005
Net Framework Class Library (FCL)
31. The ______________ method converts the value of this instance to a double representing the OLE automation date.
Now
Today
TO OA Date
From OA Date
32. The _________________ enable us to pass data between a program and a class.
Properties
Procedures
Variables
Functions
33. Which of the following is a basic data type in VB.NET?
Boolean
Byte
Char
All of the above
34. Which of the following converts the expression to Object data type in VB.NET?
CSng(expression)
CShort(expression)
CObj(expression)
CSByte(expression)
35. Which of the following accesss modifier specifies that an attribute at the beginning of a source file applies to the current assembly module?
Key
Module
Iterator
In
36. Which of the following accesss modifier specifies that a property or procedure overrides an identically named property or procedure inherited from a base class?
Overrides
Overridable
ParamArray
Partial
37. Which of the following accesss modifier specifies that a property can be written but not read?
Widening
WithEvents
WriteOnly
ReadOnly
38. Which of the following directive defines conditional compiler constants?
#Const
#ExternalSource
#If...Then...#Else
#Region
39. Which of the following directive conditionally compiles selected blocks of Visual Basic code?
#Const
#ExternalSourc
#If...Then...#Else
#Region
40. Which of the following property of Array class in VB.NET checks whether the Array has a fixed size?
IsFixedSize
IsStatic
Length
None of the above
41. Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated?
Try
Catch
Finally
Throw
42. Which of the following is correct about VB.NET?
VB.NET has complete support for object-oriented concepts. VB.NET has complete support for object-oriented concepts.
Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies.
All objects inherits from the base class Object.
All of the above
43. Which of the following accesss modifier specifies that a procedure argument can be omitted when the procedure is called?
NotOverridable
Optional
Out
Overloads
44. Which of the following accesss modifier specifies that a declared programming element redeclares and hides an identically named element, or set of overloaded elements, in a base class?
Shadows
Shared
Static
Unicode
45. Which of the following statement declares the name of a class and introduces the definition of the variables, properties, events, and procedures that the class comprises?
Dim
Const
Enum
Class
46. Which of the following directive is used for indicating a mapping between specific lines of source code and text external to the source?
#Const
#ExternalSource
#If...Then...#Else
#Region
47. Which of the following operator declares the parameters and code that define a function lambda expression?
AddressOf b. c. d.
Await
GetType
Function Expression
48. Which of the following Collection class of VB.NET represents ordered collection of an object that can be indexed individually?
ArrayList
Hashtable
SortedList
Stack
49. Which of the following block of VB.NET is used to execute a given set of statements, whether an exception is thrown or not thrown?
Try
Catch
Finally
Throw
50. Which of the following converts the expression to String data type in VB.NET?
CStr(expression)
CSByte(expression)
CShort(expression)
CSng(expression)
Submit