VB.Net/VB NET MCQ SET 3 Sample Test,Sample questions

Question:
	
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 ……………

1.COM technlogy

2. COM framework

3.COM interoperability

4. COM distribution

Posted Date:-2022-06-12 04:35:54


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

1.Enumeration

2.Interface

3.Delegate

4.Structure

Posted Date:-2022-06-12 04:53:46


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

1.XML

2.HTML

3. COM

4. DCOM

Posted Date:-2022-06-12 04:50:11


Question:
	
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

1.i and ii

2.ii and iii

3. iii and iv

4. i and iii

Posted Date:-2022-06-12 05:12:21


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

1.Protected

2.Friend

3.Protected Friend

4.Private

Posted Date:-2022-06-12 05:03:34


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

1. Overridable

2.Overrides

3.ParamArray

4.Partial

Posted Date:-2022-06-12 04:17:11


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

1.MustInherit

2.MustOverride

3.Narrowing

4.NotInheritable

Posted Date:-2022-06-12 04:04:38


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

1.NotOverridable

2.Optional

3.Out

4.Overloads

Posted Date:-2022-06-12 04:15:48


Question:
	
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?

1.Shadows

2.Shared

3.Static

4.Unicode

Posted Date:-2022-06-12 03:58:53


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

1.CDbl(expression)

2.CDec(expression)

3.CInt(expression)

4.CLng(expression)

Posted Date:-2022-06-12 04:14:48


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

1.CObj(expression)

2.CSByte(expression)

3.CShort(expression)

4.CSng(expression)

Posted Date:-2022-06-12 04:30:23


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

1.Event

2.Delegate

3.Operator

4.Property

Posted Date:-2022-06-12 04:26:56


Question:
	
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

1. i, ii and iii only

2. ii, iii and iv only

3. i, iii and iv only

4. All i, ii, iii and iv

Posted Date:-2022-06-12 05:11:19


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

1.Enumeration

2.Interface

3.Delegate

4.Structure

Posted Date:-2022-06-12 04:52:34


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

1.dataset

2.datatable

3.recordset

4. relationshipset

Posted Date:-2022-06-12 04:34:57


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

1.Enumerations

2.Interfaces

3.Delegates

4.Structures

Posted Date:-2022-06-12 04:51:19


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

1.System

2. System.collections

3.System.NET

4.System.Reflection

Posted Date:-2022-06-12 04:41:07


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

1.System.Int32

2.System.Int64

3.System.Int16

4.System.Number

Posted Date:-2022-06-12 04:57:46


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

1.Abstraction

2.Encapsulation

3.Polymorphism

4.Inheritance

Posted Date:-2022-06-12 04:40:06


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

1.System

2.System.collections

3.System.NET

4.System.Reflection

Posted Date:-2022-06-12 04:43:30


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

1.Char.

2.Format

3.Convert

4.Chr

Posted Date:-2022-06-12 05:07:44


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

1.Keywords

2.Operators

3.Variables

4.Expressions

Posted Date:-2022-06-12 05:01:11


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

1.Abstraction

2.Encapsulation

3.Polymorphism

4.Inheritance

Posted Date:-2022-06-12 04:39:13


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

1.Attributes

2.Structures

3.Exception

4.Data type

Posted Date:-2022-06-12 04:56:35


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

1.Msgbox

2.MessageBox

3.InputBox

4.DisplayBox

Posted Date:-2022-06-12 11:40:32


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

1.Keydown

2.Keypress

3.Keyup

4.KeyEnter

Posted Date:-2022-06-12 11:24:11


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

1.Chr

2.Val

3.Asc

4.Str

Posted Date:-2022-06-12 05:10:20


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

1.PointClient

2.GetClient

3.PointToClient

4.FocusClient

Posted Date:-2022-06-12 11:20:53


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

1.System

2.System.collections

3.System.NET

4.System.Reflection

Posted Date:-2022-06-12 04:42:07


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

1.bound

2. bound array

3.bound list

4.bound table

Posted Date:-2022-06-12 05:06:53


Question:
…………….. keyword is used to refer to the current object.
a.	

b.	

c.	

d.	

1.Current

2.Me

3.This

4.ThisForm

Posted Date:-2022-06-12 11:27:59


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

1.DAO

2.RDO

3.ADO

4.ADO.NET

Posted Date:-2022-06-12 04:38:18


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

1.Date CONV

2.TO OA Date

3. OLE Date

4.Auto Date

Posted Date:-2022-06-12 11:14:46


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

1.GetChildAtPoint

2.GetNextControl

3.GetChildControl

4.GetChildPoint

Posted Date:-2022-06-12 11:18:26


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

1.Keywords.

2.Operators

3.Variables

4.Expressions

Posted Date:-2022-06-12 04:59:59


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

1.DAO

2.RDO

3.ADO

4.ADO.NET

Posted Date:-2022-06-12 04:36:46


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

1.Clientsize

2.Size

3.DesktopBounds

4.Bounds

Posted Date:-2022-06-12 11:15:49


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

1.InitialPosition

2.StartPosition

3.StartScreen

4.InitialScreen

Posted Date:-2022-06-12 11:33:37


Question:
function in vb.net converts character to character code.

1.Chr

2.Val

3.Asc

4.Str

Posted Date:-2022-06-12 05:08:43


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

1.parse

2.reverse

3.rank

4.index of

Posted Date:-2022-06-12 11:13:50


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

1.InitializeComponent

2.AddComponet

3.NewComponet

4.SubComponent

Posted Date:-2022-06-12 11:25:20


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

1.DAO

2.RDO

3.ADO

4.ADO.NET

Posted Date:-2022-06-12 04:33:59


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

1.System

2.System.collections

3. System.NET

4.System.Reflection

Posted Date:-2022-06-12 04:55:42


Question:
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

1.True, False

2.False, True

3. True, True

4. False, False

Posted Date:-2022-06-12 11:12:58


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

1.sort

2.reverse

3.rank

4.index of

Posted Date:-2022-06-12 11:12:05


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

1.Protected

2.Shared

3.Shadows

4.Friend

Posted Date:-2022-06-12 05:04:31


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

1.Protected

2.Friend

3.Protected Friend

4.Private

Posted Date:-2022-06-12 05:05:59


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

1.System.Date

2.System.DateTime

3.System.Time

4.System.DateFormat

Posted Date:-2022-06-12 04:59:09


Question:
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.

1..asp

2..asmxx

3.aspx

4.asax

Posted Date:-2022-06-12 04:45:34


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

1..asmx

2..asp

3..aspx

4..asax

Posted Date:-2022-06-12 04:47:49


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

1.Protected

2.Friend

3.Protected Friend

4.Private

Posted Date:-2022-06-12 05:02:24


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

1. i, ii and iii only

2.ii, iii and iv only

3.i, ii and iv only

4.All i, ii, iii and iv

Posted Date:-2022-06-12 11:29:19


Question:
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

1.i, ii and iii only

2.ii, iii and iv only

3.i, ii and iv only

4.All i, ii, iii and iv

Posted Date:-2022-06-12 11:34:34


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

1..vbproj

2. .vbdisco

3. .vbs

4. .vb

Posted Date:-2022-06-12 04:48:47


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

1.Overridable

2.Overrides

3.ParamArray

4.Partial

Posted Date:-2022-06-12 04:05:54


Question:
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?

1.Widening

2.WithEvents

3.WriteOnly

4.ReadOnly

Posted Date:-2022-06-12 04:11:39


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

1.NotOverridable

2.Optional

3.Out

4.Overloads

Posted Date:-2022-06-12 04:31:12


Question:
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?

1.Widening

2.WithEvents

3.WriteOnly

4. ReadOnly

Posted Date:-2022-06-12 04:25:48


Question:
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?

1.Private

2.Public

3.Protected

4.ReadOnly

Posted Date:-2022-06-12 03:58:08


Question:
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?

1.Try

2.Catch

3.Finally

4. Throw

Posted Date:-2022-06-12 04:24:53


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

1.Queue

2.BitArray

3.SortedList

4.Stack

Posted Date:-2022-06-12 04:00:40


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

1.Queue

2.BitArray

3.SortedList

4.Stack

Posted Date:-2022-06-12 04:27:52


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

1.CBool(expression)

2.CByte(expression)

3.CChar(expression)

4.CDate(expression)

Posted Date:-2022-06-12 04:29:26


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

1.CBool(expression)

2.CByte(expression)

3.CChar(expression)

4.CDate(expression)

Posted Date:-2022-06-12 04:02:45


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

1.CDbl(expression)

2.CDec(expression)

3.CInt(expression)

4.CLng(expression)

Posted Date:-2022-06-12 04:03:38


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

1.Object variable size is 4 bytes on 32-bit platform

2.Object variable size is 8 bytes on 64-bit platform

3.Any type can be stored in a variable of type Object

4. All of the above

Posted Date:-2022-06-12 04:13:44


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

1.StartPosition.Form1=FormStartPosition.CenterScreen

2.Form1.StartPosition=CenterScreen.FormStartPosition

3.Form1.StartPosition=FormStartPosition.CenterScreen

4.Form1.StartPosition=FormStartPosition.Location.CenterScreen

Posted Date:-2022-06-12 11:35:39


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

1.Try

2.Catch

3.Finally

4.Throw

Posted Date:-2022-06-12 04:01:26


Question:
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?

1.AddressOf

2.Await

3.GetType

4. Function Expression

Posted Date:-2022-06-12 04:18:49


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

1.AddressOf

2.Await

3.GetType

4.Function Expression

Posted Date:-2022-06-12 04:00:06


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

1.If

2.Await

3.GetType

4.Function Expression

Posted Date:-2022-06-12 04:12:48


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

1.IsFixedSize

2.IsReadOnly

3.Length

4.None of the above

Posted Date:-2022-06-12 04:32:52


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

1.Rank

2.LongLength

3.Length

4.None of the above

Posted Date:-2022-06-12 04:23:59


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

1.Dim

2.Const

3.Enum

4. Class

Posted Date:-2022-06-12 04:31:58


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

1.Sub

2.Declare

3.Operator

4.Property

Posted Date:-2022-06-12 04:17:54


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

1.Clientsize

2.Size

3.DesktopBounds

4.Bounds

Posted Date:-2022-06-12 11:17:39


More MCQS

  1. VB.Net Mcq Question Set 1
  2. VB.Net Mcq Question Set 2
  3. VB.Net Mcq Question Set 3
  4. VB.Net Mcq Question Set 4
  5. VB.Net Mcq Question Set 5
  6. VB.Net Mcq Question Set 6
  7. VB.Net Mcq Question Set 7
  8. VB.Net Mcq Question Set 8
  9. VB.Net Mcq Question Set 9
  10. VB.Net Mcq Question Set 10
  11. VB.Net Mcq Question Set 11
  12. VB NET MCQ SET 1
  13. VB NET MCQ SET 2
  14. VB NET MCQ SET 3
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!