Explore topic-wise MCQs in Technical Programming.

This section includes 623 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.

51.

Which of the following accesss modifier allows you to pass an arbitrary number of arguments to the procedure?

A. Overridable
B. Overrides
C. ParamArray
D. Partial
Answer» D. Partial
52.

Which of the following is/are the public methods of TextBox objects.i) Clear    ii) Paste   iii) LoadFile   iv) Paste

A. i, ii and iii only
B. ii, iii and iv only
C. i, ii and iv only
D. All i, ii, iii and iv
Answer» D. All i, ii, iii and iv
53.

Which of the following statement declares the operator symbol, operands, and code that define an operator procedure on a class or structure?

A. Sub
B. Declare
C. Operator
D. Property
Answer» D. Property
54.

The _________________ enable us to pass data between a program and a class.

A. Properties
B. Procedures
C. Variables
D. Functions
Answer» B. Procedures
55.

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?

A. Shadows
B. Shared
C. Static
D. Unicode
Answer» B. Shared
56.

………………. namespace in vb.net provides an interface to many of the protocols used on the internet.

A. System
B. System.collections
C. System.NET
D. System.Reflection
Answer» D. System.Reflection
57.

Which of the following Collection class of VB.NET represents a first-in, first out collection of object?

A. Queue
B. BitArray
C. SortedList
D. Stack
Answer» B. BitArray
58.

Which of the following statement declares an enumeration and defines the values of its members?

A. Dim
B. Const
C. Enum
D. Class
Answer» D. Class
59.

Windows forms public object property, …………….. gets or sets the bounding rectangle for the form.

A. Clientsize
B. Size
C. DesktopBounds
D. Bounds
Answer» E.
60.

Type casting in VB.Net is implemented by means of ____________ statement.

A. Type()
B. TypeDef()
C. Btype()
D. Ctype()
Answer» E.
61.

Which of the following converts the expression to Object data type in VB.NET?

A. CSng(expression)
B. CShort(expression)
C. CObj(expression)
D. CSByte(expression)
Answer» D. CSByte(expression)
62.

Which of the following is a true about Object in VB.NET?

A. Object variable size is 4 bytes on 32-bit platform
B. Object variable size is 8 bytes on 64-bit platform
C. Any type can be stored in a variable of type Object
D. All of the above
Answer» E.
63.

………………… is a signed count of the number of rotation of the mouse wheel.

A. Alfa
B. Delta
C. Wheel rotation
D. Rotation count
Answer» C. Wheel rotation
64.

The keyword ……………………, gives variables protected access, which means they are accessible only from within their own class.

A. Protected
B. Friend
C. Protected Friend
D. Private
Answer» B. Friend
65.

Which of the following keyword of VB.NET is used to throw an exception when a problem shows up?

A. Try
B. Catch
C. Finally
D. Throw
Answer» E.
66.

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?

A. Try
B. Catch
C. Finally
D. Throw
Answer» D. Throw
67.

______________ can be accessed from all types within the assembly, but not from outside the assembly.

A. Public
B. Private
C. Friend
D. Protected
Answer» D. Protected
68.

Form’s ………………. property is used to specify t he initial position on the screen.

A. InitialPosition
B. StartPosition
C. StartScreen
D. InitialScreen
Answer» C. StartScreen
69.

Which of the following is NOT the MessageBoxButtons enumeration value.

A. Ok
B. OkCancel
C. None
D. YesNo
Answer» D. YesNo
70.

Using a ________ variable does not enable us to create read-only properties that are often required by a class.

A. private
B. public
C. friend
D. protected
Answer» C. friend
71.

Which of the following is NOT the public events of TextBox objects.

A. Autosize changed
B. Readonly Changed
C. Click
D. Link Clicked
Answer» E.
72.

The ______________________ group classes according to their common services.

A. Namespaces
B. inheritance
C. programs
D. objects
Answer» B. inheritance
73.

……………. function in vb.net converts string to number data type.

A. Chr
B. Val
C. Asc
D. Str
Answer» C. Asc
74.

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
Answer» C. SortedList
75.

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?

A. Dim
B. Const
C. Enum
D. Class
Answer» E.
76.

Which of the following property of Array class in VB.NET checks whether the Array is readonly?

A. IsFixedSize
B. IsReadOnly
C. Length
D. None of the above
Answer» C. Length
77.

Which of the following directive is used for indicating a mapping between specific lines of source code and text external to the source?

A. #Const
B. #ExternalSource
C. #If...Then...#Else
D. #Region
Answer» C. #If...Then...#Else
78.

Which of the following directive conditionally compiles selected blocks of Visual Basic code?

A. #Const
B. #ExternalSourc
C. #If...Then...#Else
D. #Region
Answer» D. #Region
79.

The …………….. variable is not associated with a specific instance of a class or structure.

A. Protected
B. Shared
C. Shadows
D. Friend
Answer» C. Shadows
80.

……………. method finds the location of the specified screen point to client co-ordinates.

A. PointClient
B. GetClient
C. PointToClient
D. FocusClient
Answer» D. FocusClient
81.

Each hyperlink is a object of the ………………. class and is stored in a collection called links.

A. HyperLink.Link
B. LinkLabel.Link
C. Link.LinkLabel
D. Link.HyperLink
Answer» C. Link.LinkLabel
82.

Which of the following Collection class of VB.NET represents ordered collection of an object that can be indexed individually?

A. ArrayList
B. Hashtable
C. SortedList
D. Stack
Answer» B. Hashtable
83.

…………….. is a string expression displayed as the message in the dialog box.

A. Prompt
B. Message
C. Expression
D. Dialog
Answer» B. Message
84.

Which of the following converts the expression to Char data type in VB.NET?

A. CBool(expression)
B. CByte(expression)
C. CChar(expression)
D. CDate(expression)
Answer» D. CDate(expression)
85.

…………….. control is generally used for editable text although it can also made read only.

A. TextBoxControl
B. RichTextBox
C. TextBoxBase
D. TextBox
Answer» E.
86.

Specialized classes include the stack class, a last-in first-out structure, the queue class, first-in, first-out structure in the …………………… namespace.

A. System
B. System.collections
C. System.NET
D. System.Reflection
Answer» C. System.NET
87.

Which of the following property of Array class in VB.NET checks whether the Array has a fixed size?

A. IsFixedSize
B. IsStatic
C. Length
D. None of the above
Answer» B. IsStatic
88.

The _______________ class provides static methods to start, stop, or filter Windows messages in an application.

A. Forms
B. Control
C. Windows
D. Application
Answer» E.
89.

………………….. allow custom items of information about a program element to be stored with an assembly’s metadata.

A. Attributes
B. Structures
C. Exception
D. Data type
Answer» B. Structures
90.

The ___________is a systematic class 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 (FCL)
Answer» E.
91.

Which of the following is/are the public properties of LinkLabel objects.i) ActiveLinkColor   ii) LinkSize   iii) LinkBehavior   iv) Links

A. i, ii and iii only
B. i, iii and iv only
C. i, ii and iv only
D. All i, ii, iii and iv
Answer» C. i, ii and iv only
92.

The ___________________________________ does not describe inherited member functions, inherited operators, and overridden virtual member functions.

A. Library
B. Objects
C. Classes
D. Class Library Reference
Answer» E.
93.

Which of the following accesss modifier specifies that Visual Basic should marshal all strings to Unicode values regardless of the name of the external procedure being declared?

A. Shadows
B. Shared
C. Static
D. Unicode
Answer» E.
94.

…………………. are virtual base classes; that is they consist of members; methods, properties and events that have no implementations.

A. Enumerations
B. Interfaces
C. Delegates
D. Structures
Answer» C. Delegates
95.

Which of the following accesss modifier specifies that one or more declared member variables refer to an instance of a class that can raise events?

A. Widening
B. WithEvents
C. WriteOnly
D. ReadOnly
Answer» C. WriteOnly
96.

………………. method converts the value of the instance to a double representing the OLE Automation date.

A. Date CONV
B. TO OA Date
C. OLE Date
D. Auto Date
Answer» C. OLE Date
97.

Which of the following string handling functions and methods are used to compare two strings.i) StrComp ii) String.Compare iii) String.Equals iv) String.CompareTo

A. i, ii and iii only
B. ii, iii and iv only
C. i, iii and iv only
D. All i, ii, iii and iv
Answer» E.
98.

A ___________ performs invisible tasks even if you write no code.

A. destructor
B. constructor
C. function
D. private method
Answer» C. function
99.

……………. event occurs when a key is pressed while the form has the focus.

A. Keydown
B. Keypress
C. Keyup
D. KeyEnter
Answer» C. Keyup
100.

Which of the following accesss modifier specifies that a property can be written but not read?

A. Widening
B. WithEvents
C. WriteOnly
D. ReadOnly
Answer» D. ReadOnly