VB.Net MCQ Quiz Hub

VB NET MCQ SET 3

Choose a topic to test your knowledge and improve your VB.Net skills

Which of the following accesss modifier specifies that one or more declared programming elements are accessible only from within their own class or from a derived class?





✅ Correct Answer: 3

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?





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 4

Which of the following accesss modifier specifies that a class cannot be used as a base class?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

Which of the following accesss modifier indicates that a conversion operator (CType) converts a class or structure to a type that can hold all possible values of the original class or structure?





✅ Correct Answer: 1

Which of the following operator uses short-circuit evaluation to conditionally return one of two values?





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 2

Which of the following accesss modifier specifies that the type is covariant?





✅ Correct Answer: 3

Which of the following accesss modifier indicates that a class or structure declaration is a partial definition of the class or structure?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

Which of the following operator is applied to an operand in an asynchronous method or lambda expression to suspend execution of the method until the awaited task completes?





✅ Correct Answer: 2

Which of the following property of Array class in VB.NET gets the rank (number of dimensions) of the Array?





✅ Correct Answer: 1

Which of the following block of VB.NET identifies a place to catch an exception with an exception handler at the place in a program where you want to handle the problem?





✅ Correct Answer: 2

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?





✅ Correct Answer: 2

Which of the following statement declares a user-defined event?





✅ Correct Answer: 1

Which of the following Collection class of VB.NET represents an array of the binary representation using the values 1 and 0?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Which of the following accesss modifier specifies that a property or procedure redeclares one or more existing properties or procedures with the same name?





✅ Correct Answer: 4

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

In Vb.net, data is handled through ………………… which facilitates development of web applications.





✅ Correct Answer: 4

A …………………… is a collection of one or more record sets as well as the relationships between those tables or record sets.





✅ Correct Answer: 1

Both COM and distributed COM(DCOM) technology has been replaced by the .NET framework, although you still have access to COM through what VB.NET calls ……………





✅ Correct Answer: 3

………………… is built on a disconnected data model that uses snapshots of data that are isolated from the data source.





✅ Correct Answer: 4

………………. are based on XML schema, so they can be strongly typed.





✅ Correct Answer: 4

………… is the ability to create procedures that can operate on objects of different types.





✅ Correct Answer: 3

……… is the process by which you can derive new classes from other classes.





✅ Correct Answer: 4

……. namespace in vb.net includes classes and interfaces that return information about types, methods and fields and also have the ability to dynamically create and invoke types.





✅ Correct Answer: 4

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





✅ Correct Answer: 3

……… namespace in vb.net includes essential classes and base classes that define commonly used data types, events and event handlers, interfaces, attributes, exceptions and so on.





✅ Correct Answer: 1

The file extension …………….. in vb.net represents a global application class, used to handle global application class, used to handle global ASP.NET application level events.





✅ Correct Answer: 4

The file extension ……………… in vb.net represents a web form.





✅ Correct Answer: 3

When you save a solution, it’s give the file extension .sln and all the projects in the solution are saved with the extension ……………





✅ Correct Answer: 1

The .NET platform and the .NET framework class library were developed in an effort to address these weakness of ………………….





✅ Correct Answer: 3

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





✅ Correct Answer: 2

A …………… is a reference type that represents a strongly typed function pointer.





✅ Correct Answer: 3

Most of the primitive data types; Boolean, Byte, Char etc. defined in FCL are implemented as …………





✅ Correct Answer: 4

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

……… datatype in .Net FCL corresponds integer data type in vb.net.





✅ Correct Answer: 1

The data data type in visual basic .net equivalent to ……………… data type in .net FCL.





✅ Correct Answer: 2

………………… are symbols used to perform operations; like +, which performs addition operations, -, which performs subtraction operations and so on.





✅ Correct Answer: 2

………… are symbolic names given to values stored in memory and declared with the Dim keyword.





✅ Correct Answer: 3

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





✅ Correct Answer: 1

The variables in ………………. access means they are accessible only from within their declaration context, including any nested procedures.





✅ Correct Answer: 4

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





✅ Correct Answer: 2

The ……………… variable are accessible from within the program that contains their declaration, as well as anywhere else in the same assembly.





✅ Correct Answer: 2

…………….. is used to declare arrays; which gives upper sounds of the dimensions of an array variable.





✅ Correct Answer: 3

……….. function in vb.net is used to convert character code to character.





✅ Correct Answer: 4

function in vb.net converts character to character code.





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 4

The string handling function, “Mid” in visual basic .net is used to …………….. i) get a substring ii) insert a substring iii) remove text iv) format string





✅ Correct Answer: 4

The …………… property in array class of vb .net, returns an integer indicating the number of dimensions of the array.





✅ Correct Answer: 3

State the following statements are True or False for arrays in visual basic .net are i) Array are objects in vb .net ii) Array variables can have the public, protected, friend, private or protected friend specifier





✅ Correct Answer: 3

In Int32structure ……………….. function converts the string representation of a number of its Int32 equivalent.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

………………… property on windows forms, gets or sets the size and location of the form on the windows desktop.





✅ Correct Answer: 3

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





✅ Correct Answer: 4

………………. method on windows forms public object methods, gets the child control that is located at the specified co-ordinates.





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 2

In the new sub procedure of windows forms, the code calls a procedure named ………………., which adds and arranges the controls in the form.





✅ Correct Answer: 1

…………….. keyword is used to refer to the current object. a. b. c. d.





✅ Correct Answer: 2

The possible values for the FormBorderStyle property is/are the following i) Fixed3D ii) None iii) FixedSingle iv) VariableDialog





✅ Correct Answer: 1

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





✅ Correct Answer: 2

We can assign form’s start position property values from the FormStartPosition enumeration, with the following values. i) Certerpart ii) CenterScreen iii) Manual iv) Location





✅ Correct Answer: 1

Which of the following is the correct way of assigning value “centerscreen” for form’s startposition property.





✅ Correct Answer: 3

………….. class is built into the .Net Framework to display messages and accept input from the user.





✅ Correct Answer: 2