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


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


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


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


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


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


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


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

1.NotOverridable

2.Optional

3.Out

4.Overloads


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


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)


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)


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

1.Event

2.Delegate

3.Operator

4.Property


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


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

1.Enumeration

2.Interface

3.Delegate

4.Structure


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


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


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


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

1.System.Int32

2.System.Int64

3.System.Int16

4.System.Number


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

1.Abstraction

2.Encapsulation

3.Polymorphism

4.Inheritance


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


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

1.Char.

2.Format

3.Convert

4.Chr


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

1.Keywords

2.Operators

3.Variables

4.Expressions


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

1.Abstraction

2.Encapsulation

3.Polymorphism

4.Inheritance


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


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


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

1.Keydown

2.Keypress

3.Keyup

4.KeyEnter


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

1.Chr

2.Val

3.Asc

4.Str


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

1.PointClient

2.GetClient

3.PointToClient

4.FocusClient


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


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


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

b.	

c.	

d.	

1.Current

2.Me

3.This

4.ThisForm


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

1.DAO

2.RDO

3.ADO

4.ADO.NET


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


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


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


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


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


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

1.InitialPosition

2.StartPosition

3.StartScreen

4.InitialScreen


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

1.Chr

2.Val

3.Asc

4.Str


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

1.parse

2.reverse

3.rank

4.index of


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


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

1.DAO

2.RDO

3.ADO

4.ADO.NET


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


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


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


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

1.Protected

2.Shared

3.Shadows

4.Friend


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


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


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


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

1..asmx

2..asp

3..aspx

4..asax


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


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


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


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


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


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


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


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


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


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


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


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


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)


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)


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)


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


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


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


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


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

1.AddressOf

2.Await

3.GetType

4.Function Expression


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


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


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


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

1.Dim

2.Const

3.Enum

4. Class


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


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

1.Clientsize

2.Size

3.DesktopBounds

4.Bounds


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
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite 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!