0% found this document useful (0 votes)
16 views16 pages

VbnetQ&A

The document contains a series of questions and answers related to VB.Net programming concepts, covering topics such as collection classes, access modifiers, data types, and the Visual Studio IDE. Each question is followed by a correct answer, providing a quiz-like format for learning and assessment. The content is aimed at individuals seeking to test or enhance their knowledge of VB.Net programming.

Uploaded by

Amidu Mansaray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views16 pages

VbnetQ&A

The document contains a series of questions and answers related to VB.Net programming concepts, covering topics such as collection classes, access modifiers, data types, and the Visual Studio IDE. Each question is followed by a correct answer, providing a quiz-like format for learning and assessment. The content is aimed at individuals seeking to test or enhance their knowledge of VB.Net programming.

Uploaded by

Amidu Mansaray
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Q1. Which of the following collection class of VB.

Net represents
first-in,first-out collection of objects?
A. Queue
B. BitArray
C. SortedList
D. Stack
Ans: A

Q2. Which of the following access modifier specifies that a property


can be written but not read?
A. Widening
B. WriteEvents
C. WriteOnly
D. ReadOnly
Ans: C

Q3. It is a comprehensive, object-oriented collection of reusable types


that you can use to develop applications?
A. Class Library
B. Solution Explorer
C. Properties Window
D. Windows Form Designer
Ans: A

Q4. Which does the solution explorer not display?


A. Form Properties
B. Reference Folder
C. Form Files
D. Assembly Files
Ans: A

Q5. The button control can be activated


A. By Clicking the button with the mouse
B. programatically through the click event
C. both (a) and (b)
D. With the forms defaultButton property
Ans: C

Q6. Keyword which is not used in VB.Net


A. Int32
B. Int
C. Both
D. None
Ans: C

Q7. Which of the following access modifier allows you to pass an arbitrary
number of arguments to a procedure?
A. Overrideable
B. Overides
C. ParamArray
D. Partial
Ans: C
Q8. Which of the following access modofier specifies that a property or
procedure
overrides an identically named property or procedure inherited from a base
class?
A. Overrides
B. Overridable
C. ParamArray
D. Partial
Ans: A

Q9. The Java and Visual Basic.NET belong to this type of programming
language
A. Assembly Language
B. Machine Language
C. High Level Programming Language
D. Object Oriented Programming Language
Ans: A

Q10. It translates all high level instructions into machinecode first


before running the program.
A. Interpreter
B. Compiler
C. Translator
D. Language
Ans: B

Q11. Which of the following converts expressions to Sbyte data type in


VB.Net
A. CObj(expression)
B. CSByte(expression)
C. CShort(expression)
D. CSng(expression)
Ans: B

Q12. Which of the following converts expressions to Decimal data type in


VB.Net
A. CDbl(expression)
B. CDec(expression)
C. CInt(expression)
D. CLng(expression)
Ans: B

Q13. What does IDE Stands for?


A. Integrated Design Environment
B. Integrated Development Environment
C. Interior Design Environment
D. Interior Development Environment
Ans: B

Q14. Which of the following converts expressions to Long data type in


VB.Net
A. CDbl(expression)
B. CDec(expression)
C. CInt(expression)
D. CLng(expression)
Ans: D

Q15. The ___ is a systematic framework used for the development of system
tools and utilities?
A. .Net Tools
B. Visual basic 6
C. Visual Basic 2005
D. .Net Framework class Library
Ans: D

Q16. Which are not true about forms and controls in visual basic.net?
A. They are prebuilt
B. They are graphical objects
C. Buttons can be created with the drag and drop method
D. New versions of the classes must be created with each project
Ans: D

Q17. Every optional argument in a procedure definition must specify ____


value
which must be a constant expression.
A. Integer
B. Constant
C. Default
D. Character
Ans: C

Q18. In VB.Net language which is not an integer value?


A. 12
B. 23
C. 10
D. 100
Ans: B

19. Which statement about object is true?


A. One class is used to create one object
B. One class can create many objects
C. One object is used to create one class
D. One object can create many classes
Ans: B

Q20. Which of the following access modifier specifies that one or more
declared
member variables refer to an instance of a class that can raise an event?
A. Widening
B. WithEvents
C. WriteOnly
D. ReadOnly
Ans: B

Q21. .Net class library:


A. Uses namespaces to manage all of the classes
B. Contains over 2500 classes
C. Both (a) and (b)
D. Has the System.form namespace for classes used in windows-based
applications
Ans: C

Q22. Which is true about the name and text property of a control?
A. The text property changes to match any changes in the name property
B. They are the same when the control is first created
C. They are never the same unless the programmer makes it that way
D. The name property changes to match any changes in the text property.
Ans: B

Q23. What is CLR?


A. Current LanguageRuntime
B. Common Language Runtime
C. Common LanguageRealtime
D. Current LanguageRealtime
Ans: B

Q24. Language which is not supported by VB.Net?


A. ASP
B. COBOL
C. Perl
D. C#
Ans: A

Q25. Which is not a property of the Common control class?


A. Form
B. Show
C. Forecolor
D. Backcolor
Ans: B

Q26. Which of the following access modifier specifies that one or more
declared
programming elements are accessible from within the assembly that contains
their
declarations not only by the component that
A. ByRef
B. ByVal
C. Default
D. Friend
Ans: D

Q27. Which of the following statement declares an enumeration and defines


the
values of its members?
A. Dim
B. Const
C. Enum
D. Class
Ans: C

Q28. Which of the following collection class of VB.Net represents


ordered collection of objects that can be indexed individually?
A. ArrayList
B. HashTable
C. SortedList
D. Stack
Ans: A

29. Visual Studion .Net provide which feature:


A. Debugging
B. Application deployment
C. syntax checking
D. All the above
Ans: D

Q30. Which of the following access modifier specifies that an attribute


at the beginning of a source file applies to the current assembly module?
A. Key
B. Module
C. Iterator
D. In
Ans: B

Q31. A GUI
A. Uses buttons, menus and icons
B. Should be easy for a user to manipulate
C. both(a) and (b)
D. Stands for graphic use interactio
Ans: C

Q32. hich of the following access modifier specifies that a class cannot
be used as a base class?
A. MustInherit
B. MustOverride
C. Narrowing
D. NotInheritable
Ans: D

Q33. ___ are interactive objects that you can place in dialog boxes
or other windows to carry out user actions?
A. Forms
B. Controls
C. Classes
D. Objects
Ans: B

Q34. What is CTS


A. Common Type Server
B. Control Type System
C. Common Type System
D. Control Type Server
Ans: C

Q35. Which of the following access modifier specifies that a property


procedure cannot be overriden in a derived class?
A. NotOverridable
B. Optional
C. Out
D. Overloads
Ans: A

Q36. Which of the following converts expressions to Boolean data type in


VB.Net
A. CBool(expression)
B. CByte(expression)
C. CChar(expression)
D. CDate(expression)
Ans: A

Q37. Which of the following operators declares the parameter and code that
define
a function lambda expression?
A. AddressOf
B. Await
C. GetType
D. Function Expression
Ans: D

Q38. Which of the following access modifier specifies that a convertion


operator
(CType) converts a class or structure to a type that might not be able to
hold
some of the possible values of the original classs or structure?
A. MustInherit
B. MustOverride
C. Narrowing
D. NotInheritable
Ans: C

Q39. Which type of project can a developer choose in the New project
dialog box?
A. Visual Basic Projects
B. Visual C++ Project
C. Visual C# Project
D. All the above
Ans: D

Q40. The ___ enables use to pass data between program and class?
A. Properties
B. Procedures
C. Variables
D. Functions
Ans: A

Q41. Which of the following directives conditionally complies selected


blocks of visual basic codes?
A. #Const
B. ExternalSource
C. #If..Then..#Else
D. #Region
Ans: C

Q42. Which of the following access modifier identifies a property as a


default
property of its class, structure or interface?
A. ByRef
B. ByVal
C. Default
D. Friend
Ans: C

Q43. Which of the following access modifier specifies a property or


procedure
redeclares one or more existing properties or procedures with the same
name?
A. NotOverridable
B. Optional
C. Out
D. Overloads
Ans: D

Q44. Which of the following statements declares the operator


symbol,operands
and code that define the operator procedure on a class or structure?
A. Sub
B. Declare
C. Operator
D. Property
Ans: C

Q45. The corresponding .Net FCL Type for Short is_____


A. System.Int16
B. System.Int32
C. System.Int64
D. None
Ans: A

Q46. Which of the following access modifier specifies that a procedure


argument
can be omitted when the procedure is called?
A. NotOverridable
B. Optional
C. Out
D. Overloads
Ans: B

Q47. Which of the following is correct about VB.Net?


A. VB.Net has complete support for Object Oriented concepts.
B. Everthing in VB.Net is an object, including all the primitive types
(short,integer,long,string,Boolean etc) and user-defined types,events and
even assemblies.
C. All Objects inherit from the base class object.
D. All the above
Ans:D
Q48. Which is an example of visual basic Object?
A. ASP.Net
B. ADO.Net
C. Control Objects
D. All the above
Ans: D

Q49. Which of the following access modifier specifies that an argument is


passed
in such a way that the called procedure or property cannot change the
value
of the variable underlying the argument in the ca?
A. ByRef
B. ByVal
C. Default
D. Friend
Ans: B

Q50. Which is used to store decimal data in .NET?


A. BinaryWriter
B. DecimalWriter
C. OctalWriter
D. HexaWriter
Ans: A

Q51. Which is not a component of the Visual Studio IDE?


A. Start Menu
B. Tool Box
C. Designer Window
D. Solution Explorer
Ans: A

Q52. Which of the following operator returns the address of a procedure?


A. AddressOf
B. Await
C. GetType
D. Function Expression
Ans: A

Q53. Out of the following, which is not a type of authentication?


A. Windows Authentication
B. Web Authentication
C. Passport Authentication
D. Form Authentication
Ans: B

Q54. To declare an integer variable in VB.Net language,Which of the


following
statement is true?
A. Dim X As Integer
B. X as Integer
C. Dim X as Single
D. None of these
Ans: A

Q55. Which of the following operator uses short circuit evaluation to


conditionally
return one of two values?
A. If
B. Await
C. GetType
D. Function Expression
Ans: A

Q56. Which of the following block of VB.NET is used to execute a given set
of
statement whether an exception is thrown or not thrown?
A. Try
B. Catch
C. Finally
D. Throw
Ans: C

Q57. Which of the following property of class in VB.Net gives the rank
(number of dimension) of an array?
A. Rank
B. LongLength
C. Length
D. None of the above
Ans: A

Q58. The ____ does not describe inherited memeber functions, inherited
operators
and overriden virtual member functions
A. Library
B. Objects
C. Classes
D. Class Library Reference
Ans: D

Q59. The CancelButton Property belongs to which object?


A. Form
B. Button
C. Label
D. Textbox
Ans: A

Q60. Every optional argument in a procedure definition must specify


_____value which must be a constatnt expression
A. Integer
B. Constant
C. Default
D. Character
Ans: C

Q61. Which of the following loop structure does not supported by VB.Net
A. Do....Loop
B. For.....Next
C. Do....While
D. For Each...While
Ans: C

Q62. Which of the following access modifier specifies that one or more
declared programming elements are accessible only from within their
own class or from a derived class?
A. Private
B. Public
C. Protected
D. ReadOnly
Ans: C

Q63. The ___ method converts an OLE automation date value to DateTime
Instance?
A. Today
B. Now
C. TimeOfDay
D. FromOADate
Ans: D

Q64. Which of the statement declares a user defined event?


A. Event
B. Delegate
C. Operator
D. Property
Ans: A

Q65. The member "clear" of the Array class that sets a range of array
elements to zero, false or null reference is a ____ method.
A. Method
B. Class
C. Shared
D. Object
Ans: C

Q66. Which of the following directive is used for indicating a mapping


between
specific lines of source code and text externat to the source?
A. #Const
B. #ExternalSource
C. #If..Then..#Else
D. #Region
Ans: B

Q67. IL Stands for?


A. Internal Language
B. Internet Language
C. Intermediate Language
D. Interpreted Language
Ans: C

Q68. What is CTS


A. Common Type Server
B. Control Type System
C. Common Type System
D. Control Type Server
Ans: C

Q69. Which of the following Operator declares the parameter and code that
define a function lambda expression?
A. AddressOf
B. Await
C. GetType
D. Function Expression
Ans: D

Q70. Which of the following feature of a Gui thats makes learning


a program easy for users?
A. Detailed Keystrokes and commands
B. WYSIWYG formatting
C. Dialog Boxes
Ans: A

Q71. Which of the following access modifier specifies that an attribute at


the
beginning of a source file applies to the current assembly moudule?
A. Key
B. Moudule
C. Iterator
D. In
Ans: B

Q72. When ever an application is created,a ____ia added?


A. Class
B. Object
C. Form
D. Property
Ans: C

Q73. ____are interactive objects that you place in dialog boxes or other
windows to carry out user actions
A. Forms
B. Controls
C. Classes
D. Objects
Ans: B

Q74. Using a ____ variable does not enable us create read-only properties
that are often required by a class?
A. Private
B. Public
C. Friend
D. Protected
Ans: B

Q75. Which of the following access modifier is used in generic interfaces


and delegates?
A. In
B. Iterator
C. Key
D. Module
Ans: A

Q76. The ____ groups classes according to their common services


A. Namespaces
B. Inheritance
C. Programs
D. Objects
Ans: A

Q77. Which of the following collection class of VB.Net represents


Last-in,first-out collection of objects?
A. ArrayList
B. HashTable
C. SortedList
D. Stack
Ans: D

Q78. VB.Net is?


A. Platform Independent
B. Compiler Language
C. Forward Compatible
D. Backward Compatible
Ans: D

Q79. Which of the following property class in VB.Net checks whether


the array has a fixed size?
A. IsFixedSize
B. IsStatic
C. Length
D. None of the above
Ans: A

Q80. What is CLS?


A. Current Language Specifics
B. Common Language Specification
C. Common Language Specialization
D. Current language system
Ans: B

Q81. JIT Stands for?


A. Just in Type
B. Just in Time
C. Just in Thread
D. Just in Text
Ans: B

Q82. Which of the following property class in VB.Net checks whether


the array is readonly?
A. IsFixedSize
B. IsReadOnly
C. Length
D. None of the above
Ans: B

Q83. Which of the following converts the expressions to Object data type
in VB.Net
A. CSng(expression)
B. CShort(expression)
C. CObj(expression)
D. CSByte(expression)
Ans: C

Q84. Assembly is ____ grouping of all units


A. Arithmetic
B. Logical
C. Physical
D. Binary
Ans: C

Q85. VB.Net Supports


A. Structured error handling
B. Unstructured error handling
C. Both
D. None
Ans: A

Q86. Which of the following collection class of VB.Net uses a


key as well as index to access items in a list
A. ArrayList
B. HashTable
C. SortedList
D. Stack
Ans: B

Q87. Which of the following converts expressions to Char data type in


VB.Net
A. CBool(expression)
B. CByte(expression)
C. CChar(expression)
D. CDate(expression)
Ans: C

Q88. Which of the following access modifier specifies that one or more
programming elements are accessible only from within their own class
or from a derived class?
A. Private
B. Public
C. Protected
D. ReadOnly
Ans: C

Q89. Which of the following block of VB.NET identifies a place to catch


an exception with an exception handler at the place in the program where
you want to handle the problem?
A. Try
B. Catch
C. Finally
D. Throw
Ans: B

Q90. Which are the standard prefixes for the text box and lable controls
respectively?
A. txb and lbl
B. txb and lab
C. tex and lbl
D. tex and lab
Ans:A

Q91. A ____ performs invisible task even if you write no code.


A. Destructor
B. Constructor
C. Function
D. Private Method
Ans: B

Q92. In event-driven programming, an event is generated by:


A. The system
B. Users action
C. The program itself
D. All the above
Ans: D

Q93. Which of the following access modifier specifies that one or more
declared local variables are to continue to exist and retain their
latest values after termination of the procedure in which they are
declared?
A. Shadows
B. Shared
C. Static
D. Unicode
Ans: C

Q94. Which of the following collection class of VB.Net represents an array


of the binary representation using the values 1 and 0?
A. Queue
B. BitArray
C. SortedList
D. Stack
Ans: B

Q95. The ____ model does not offer a model for source code reuse?
A. COM+
B. DCOM
C. COM
D. .Net
Ans: C
Q96. Which of the following access modifier specifies that one or more
declared
member variables refers to an instance of a class that can raise events?
A. Widening
B. WithEvents
C. WriteOnly
D. ReadOnly
Ans: B

Q97. Which language is not a true object-oreiented programming language?


A. VB 6
B. VB .NET
C. JAVA
D. C++
Ans: A

Q98. Which of the following is a basic dtat type in VB.net


A. Boolen
B. Byte
C. Char
D. All the above
Ans: D

Q99. Which property determines whether a control is displayed to the user?


A. Visible
B. Enable
C. Show
D. Hide
Ans: A

Q100. Which of the following access modifier specifies that the type is
covariant?
A. NotOverridable
B. Optional
C. Out
D. Overloads
Ans: C

Q101. Which of the following directives defines conditional compiler


constants?
A. #Const
B. ExternalSource
C. #If..Then..#Else
D. #Region
Ans: A

Q102. The function procedures are ____ by default


A. Public
B. Private
C. Protected
D. Inherited
Ans: A

Q103.The ____ class provides static methods to start,stop or filter


windows messages in an application
A. Forms
B. Controls
C. Windows
D. Application
Ans: D

Q104. Which are the standard prefixes for the Button and combo box
controls respectively?
A. bto and cbo
B. bto and chb
C. btn and cbo
D. btn and chb
Ans: C

Q105. Which of the following access modifier specifies that a class or


structure
declaration is a partial definition of the class or structure?
A. Overridable
B. Overides
C. ParamArray
D. Partial
Ans: D

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy