Explore topic-wise MCQs in Testing Subject.

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

1.

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
2.

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
3.

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
4.

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

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

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
6.

………………. 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
7.

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
8.

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
9.

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

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

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

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

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)
12.

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.
13.

………………… 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
14.

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
15.

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.
16.

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
17.

______________ 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
18.

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
19.

Which of the following is NOT the MessageBoxButtons enumeration value.

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

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
21.

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.
22.

The ______________________ group classes according to their common services.

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

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

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

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
25.

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.
26.

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
27.

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
28.

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
29.

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
30.

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

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

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
32.

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
33.

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

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

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)
35.

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

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

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
37.

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
38.

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.
39.

………………….. 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
40.

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.
41.

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
42.

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.
43.

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.
44.

…………………. 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
45.

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
46.

………………. 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
47.

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.
48.

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

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

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

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

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