Ticker

6/recent/ticker-posts

VB .Net Multiple Choice Questions 250+ .Net Mcqs

 



[1] .NET Framework Is An Internal _____ Component That Supports The Execution Of Applications Created By Using Various Programming Languages.

Internet

Windows

Hardware

language

Ans. Windows


[2] What Is CLR?

Common language runtime

Compiler language runtime

Compiler library runtime

Common library runtime

Ans. Common language runtime


[3] Which Is The Following Is Not A Component Of The CLR?

Class loader

Garbage collector

.NET Framework

JIT Compiler

Ans. .NET Framework


[4] Which Of The Following Provides Automatic Memory Management And Resolves The Issue Of Memory Leaks And Invalid Memory References

Security engine

Garbage collector

JIT compiler

Debugger

Ans. Garbage collector


[5] What Is CTS?

Common type specification

Common type-safe

Compiler type structure

Common type system

Ans. Common type system


[6] What Is CLS?

Compiler library specification

Common library specification

Compiler language specification

Common language specification

Ans. Common language specification


[7] What Is DLL

Dynamic-link language

Direct link language

Dynamic-link library

Direct link library

Ans. Dynamic-link library


[8] Which Of The Following Namespace Provides The Classes That Allow You To Debug Your Application Step By Step?

System

System .Diagnostics

System.Object

System.Security

Ans. System .Diagnostics


[9] What Is GAC?

Garbage collector

Global assembly collector

Global access cache

Global assembly cache

Ans. Global assembly cache


[10] What Is COM?

Component object model

Common object model

Computer oriented model

Common oriented model

Ans. Component object model


Q11. ——- are reserved words that are used to perform specific tasks in VB.NET applications.

Keywords

Literal s

Constants

Variables

Ans. Keywords


Q12. Which of the following is not a keyword in VB.NET?

Case

Catch

Class

Name

Ans. Name


Q13. Which of the following makes variables/constants accessible only within their own class or from a class derived from that class?

Friend

Protected

Protected Friend

Private

Ans. Protected


Q14.To declare a variable in VB.NET, you use the ____ statement.

New

Dim

Var

Initialize

Ans. Dim


Q15. A variable is declared as constant by using the ___ keyword.

Var

Constant

Const

Dim

Ans. Const


Don't MissBasics of Management (BOM) 150+ Mcqs for Polytechnic Diploma Students


Q16. Which of the following is not an arithmetic operator?

*

%

+

=

Ans. =


017. Which of the following is not an operator in VB.NET?

MemoryOf

AddressOf

Like

AndAlso

Ans. MemoryOf


Q18. The ___ statement helps in creating dynamic array.

arr

Dynarr

Redim

Var

Ans. Redim


Q19. Which of the following statements transfer the program control from one block of code to another?

Selection

Jump

Iteration

Declaration

Ans. Jump


Q20. Which of the following statement allows you to compare an expression with different values?

The Select Case statement

The While statement

The For statement

The Continue statement

Ans. The Select Case statement


Q21. Which of the following continues to execute the loop body for each element in an array or object collection?

The Break statement

The While statement

The For statement

The For Each statement

Ans. The For Each statement


022. Which of the following transfers the program control directly to a labelled statement?

The Break statement

The Continue statement

The GoTo statement

The Return statement

Ans. The GoTo statement


Q23 Which of the following statement is used to include a namespace in a VB.NET application?

Namespace

Using

Include

Imports

Ans. Imports


Q24. Which of the following keyword is used to create a structure in VB.NET?

Dim

Structure

ReDim

Struct

Ans. Structure


Q25.The block always executes, irrespective of the fact whether an error has occurred or not and is generally used for doing any clean-up process.

Finally

Try

Catch

Throw

Ans. Finally


Q26. which of the following event occurs when the mouse pointer is over the control and a mouse button is pressed?

MouseEnter

MouseMove

MouseDown

MouseUp

Ans. MouseDown.


Q27. which of the following is not a property of the MouseEventArga object?

Buttons

X

Y

Z

Ans. Z


Q28. which of the following event occurs when the mouse pointer moves to and fro over the control?

MouseMove

MouseHover

MouseWheel

MouseLeave

Ans. MouseHover.


Q29. which of the following event occurs when a key is pressed down while the control has focus?

KeyDown

KeyUp

KeyPress

KeyRelease

Ans. KeyDown


Q30 which of the following namespace contains the Form Class?

SystemObject

System.Windows.Forms

System.Windows.Forms.Controls

System.Windows

Ans. System.Windows.Forms


Q31. which of the following store’s binary executables?

Obj

AssemblyInfo.vb

Resources.resx

Bin

Ans. Bin


Q32. which of the following disables a Windows Form?

Text

Hide

Enabled

Disabled

Ans. Enabled


Q33. The _____ method is used to display the dialog box at run time.

ShowDialog()

DisplayDialog()

Show()

Display()

Ans. ShowDialog()


Q34. The _____ control opens the browse for folder dialog box which lets the user select a folder.

OpenFileDialog

SaveFileDialog

FontDialog

FolderBrowserDialog

Ans. FolderBrowserDialog


Q35. Which of the following control enables the user to check if a file exists and then opens it?

OpenFileDialog

SaveFileDialog

FontDialog

FolderBrowserDialog

Ans. OpenFileDialog


Q36. The _____ property indicates whether the read-only checkbox is selected.

ReadOnly

ShowReadOnly

ReadOnlyChecked

CheckedReadOnly

Ans. ReadOnlyChecked


Q37. Which of the following property of the SaveFileDialog control retrieves or sets a value specifying whether or not the dialog box asks the user if it should create a file if the user specifies a non-existent file?

OverwrirePrompt

CreatePrompt

OpenPrompt

Prmpt

Ans. CreatePrompt


Q38. Which of the following property of the ColorDialog class retrieves or sets a value specifying whether or not the dialog box displays all available colors in the set of basic colors?

ShowColor

CustomColors

Color

AnyColor

Ans. AnyColor


Q39. Which of the following property obtains or sets the time (in milliseconds) before the tooltip appears?

AutomaticDelay

AutoPopDelay

IntialDelay

ReshowDelay

Ans. AutomaticDelay


Q40. Which of the following property specifies the period of time the ToolTip text remains visible if the pointer is kept over a control?

AutomaticDelay

AutoPopDelay

IntialDelay

ReshowDelay

Ans. AutoPopDelay


Q41. What is the storage Size of Boolean type?

1 byte

2 bytes

8 bytes

16 bytes

Ans. 2 bytes


Q42. Which of the following method Is used to find the length of the string?

Mid()

Format()

Len()

Asc()

Ans. Len()


Q43. Which of the following class Is not Included in the System.lO namespace?

String

File

Path

FileStream

Ans. String


Q44. Which of the following class Is used to access the file?

BinaryReader

StreamReader

Path

FileStream

Ans. FileStream


Q45. Which of the following method release all resources used by a TextReader object?

Close()

Dispose()

Finalize()

ReadToEnd()

Ans. Dispose()


Q46. which of the following class allows you to access items by a key?

Hastable

ArrayList

Stack

Queue

Ans. Hastable


Q47. which of the following class follows the Last In First Out (LIFO) order, which means the item added last to a stack object is read first?

LinkedList(Of T)

HashSet(Of T)

Queue (Of T)

Stack (Of T)

Ans. Stack (Of T)


Q48. Which of the following class follows the First In First Out (FIFO) order?

Hastable

ArrayList

Stack

Queue

Ans. Queue


Q49. Which of the following class follows the Last In First Out (LIFO) order?

Hastable

ArrayList

Stack

Queue

Ans. Stack


Q50. Which of the following class enables you to create collections that act as double linked lists?

LinkedList(Of T)

List(Of T)

Dictionary(Of TKey, TValue)

Sorted Dictionary(Of TKey, TValue)

Ans. LinkedList(Of T)


051. Which of the following class enables you to create generic collections that store pairs of keys and values?

Linked List(Of T)

List(Of T)

Dictionary(Of TKey. TValue)

Sorted Dictionary(Of TKey, TValue)

Ans. Dictionary(Of TKey. TValue)


052. Which of the following class enables high-performance set operations?

Stack(Of T)

Queue (Of T)

HashSet(Of T)

List(Of T)

Ans. HashSet(Of T)


Q53. The class is used to manage an array of the binary representation of the values 1 and 0.

BitArray

ArrayList

Stack

Queue

Ans. BitArray

Q54. What is the extension of the files compressed with the GZipStream class?

zip

rar

cab

gz

Ans. gz


Q55. The ______ class provides methods to create, copy, delete, move, and open files.

FileStream

FileInfo

StreamReader

File

Ans. FileInfo


TOP 20 MCQS ON THE FUNDAMENTALS OF .NET FRAMEWORK


1. The ___ is the execution engine for .NET applications and servers as the interface between .NET applications and the operating system.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

Ans. Common Language Runtime (CLR)


2. The .NET Framework Class Library (FCL) is also known as …

A) Base Class Library (BCL)

B) Common Class Library (CCL)

C) Global Class Library (GCL)

D) Public Class Library (PCL)

Ans. Base Class Library (BCL)


3. State whether the following statements about .NET Frameworks are TRUE or FALSE.

i) The .NET FCL is object-oriented.

ii) The CLR is the platform on which applications hosted and executed.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

Ans: i-True, ii-True

 

4. The .NET ____ is a collection of reusable types that are integrated with the CLR.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

Ans. Framework Class Library (FCL)


5. ___ is an agreement among language designers and class library designers to use a common subset of basic language features that all languages have to follow.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

Ans: Common Language Specifications (CLS)


6. ___ describes how types are declared, used, and managed in the runtime.

A) Common Language Specifications (CLS)

B) Common Language Runtime (CLR)

C) Common Type System (CTS)

D) Framework Class Library (FCL)

Ans: Common Type System (CTS)


7. State which of the following statements about the .NET framework are TRUE.

i) CTS helps developers to develop applications in a single language.

ii) Data and XML classes extend the FCL to support data management and XML manipulation.

iii) XML classes support various operations on XML data like searching, translations, modifying, etc.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

Ans: ii and iii only


8. _____ is a code that consists of CPU and platform-independent set of instructions, which can be easily converted to native code.

A) JIT

B) FCL

C) DLL

D) MSIL

Ans: MSIL

 

9. State whether the following statements about the Microsoft Intermediate Language (MSIL) are TRUE or FALSE.

i) The MSIL code includes instructions to load, initialize and invoke methods on objects.

ii) The MSIL code is collected and assembled in the form of byte codes and is converted to a .NET assembly.

A) i-True, ii-False

B) i-False, ii-True

C) i-True, ii-True

D) i-False, ii-False

Ans: i-True, ii-True


10. The main function of ____ is to convert the managed code into native code and then execute the code.

A) CLR

B) CTS

C) CLS

D) FCL

Ans: CLR


11. Which of the following is/are the modules of Common Language Runtime(CLR).

i) Thread Support

ii) Type Checker

iii) Security Engine

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

Ans: All i, ii and iii


12. ____ will verify types used in the application with CTS or CLS standards supported by CLR.

A) Exception manager

B) Type checker

C) Code manager

D) Class loader

Ans: Type checker


13. The ______ is responsible for allocating, freeing, and compacting memory.

A) garbage collector

B) type checker

C) code manager

D) memory manager

Ans: garbage collector


14. The ______ compiles the applications to Microsoft Intermediate Language (MSIL) and not the machine code.

A) CLR

B) CTS

C) CLS

D) FCL

Ans: CLR


15. State whether the following statements about the managed and unmanaged code are TRUE or FALSE.

i) Managed code is the code that is executed directly by the CLR.

ii) Managed code directly compiles to the machine code and runs on the machine where it has to be compiled.

iii) Unmanaged code does not have services such as security or memory management.

A) i-True, ii-False, iii-False

B) i-False, ii-True, iii-False

C) i-True, ii-False, iii-True

D) i-False, ii-False, iii-True

Ans: i-True, ii-False, iii-True


16. _______ ensures complete interoperability among applications, regardless of the language used to create the application.

A) CLR

B) CLS

C) CTS

D) FCL

Ans: CLS


17. State which of the following statements about the Namespace are TRUE.

i) All the classes and types of .NET FCL are organized in the namespace.

ii) Namespaces correspond to file or directory names.

iii) It is the grouping of logically related identifiers or classes.

A) i and ii only

B) ii and iii only

C) i and iii only

D) All i, ii and iii

Ans: i and iii only


18. The … namespace includes classes and interfaces that define the various collections of objects such as lists, queues, hash tables, arrays, etc.

A) system.collection

B) system

C) system.data

D) system.drawing

Ans: system.collection


19. The … namespace includes classes that allow us to debug our application and to step through our code.

A) system.collection

B) system.security

C) system.diagnostics

D) system.threading

Ans: system.diagnostics


20. The … namespace includes classes and interfaces that return information about types, methods, and fields.

A) system

B) system.security

C) system.data

D) system.reflection

Ans: system.reflection


SOLVED MCQ ON FUNDAMENTALS OF VISUAL BASIC.NET SET-1


1. Which of the following Loop structure does not supported by VB.Net?

A. Do ……………. Loop

B) For ………………. Next

C) Do ……………. While

D) For Each ………… While

Ans. Do ……. While


2. The _____ model does not offer a model for source code reuse.

A. COM+

B. DCOM

C. COM

D. .Net

Ans. COM


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

A.Properties

B.Attributes

C. Methods

D. Classes

Ans. Attributes


4. The corresponding .Net FCL type for Short is _______.

A.System.Int32

B.System.Int64

C.System.Int16

D.System.Object

Ans. System.Int16


5. The member “clear” of the Array class that sets a range of array elements to zero, false or null reference is a ________ method.

A. Shared

B. Method

C. Class

D. Object

Ans. Shared


6. The _______ method converts an OLE automation date value to a DateTime Instance.

A. Today

B. TimeOfDay

C. Now

D. FromOADate

Ans. From OA Date


7. The function procedures are ___________ by default.

A. public

B. private

C. protected

D. inherited

Ans. public


8. Every optional argument in the procedure definition must specify a _____ value which must be a constant expression.

A. constant

B. default

C. integer

D. character

Ans. default


9. Type casting in VB.Net is implemented by means of _____statement.

A. Type()

B. TypeDef()

C. Btype()

D. Ctype()

Ans. Ctype()

 

10. State whether the statement true or false.

i) Function procedures are public by default.

ii) Function procedure return values whereas sub procedures cannot return a value to the calling procedure.

A. True, True

B. True, False

C) False, True

D) False, False

Ans. True, True


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

A) DAO

B) RDO

C) ADO

D) ADO.NET

Ans. ADO.NET


12.  The heart of ADO.NET is ……………. where all data is represented in …………… format and exchanged that way.

A) XML

B) HTML

C) COM

D) DCOM

Ans. XML


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

A) dataset

B) datatable

C) recordset

D) relationshipset

Ans. dataset


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

A) COM technlogy

B) COM framework

C) COM interoperability

D) COM distribution

Ans. COM interoperability


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

A) DAO

B) RDO

C) ADO

D) ADO.NET

Ans. ADO.NET


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

A) DAO

B) RDO

C) ADO

D) ADO.NET

Ans. ADO.NET


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

A) Abstraction

B) Encapsulation

C) Polymorphism

D) Inheritance

Ans. Polymorphism


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

A) Abstraction

B) Encapsulation

C) Polymorphism

D) Inheritance

Ans. Inheritance


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

A) System

B) System.collections

C) System.NET

D) System.Reflection

Ans. System.Reflection


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

Ans. System.NET


MCQ QUESTIONS ON FUNDAMENTALS OF VISUAL BASIC .NET SET-2


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

A. public

B. private

C. protected

D. friend

Ans: public


2. A …….performs invisible tasks even if you write no code.

A. destructor

B. private method

C. constructor

D. function

Ans: constructor


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

A. Class Library Reference

B. Library

C. Objects

D. Classes

Ans: Class Library Reference


4. The ……. group classes according to their common services.

A. objects

B. inheritance

C. Namespaces

D. programs

Ans: Namespaces

 

5. Whenever an application is created, a ……………. is added.

A. Form

B. Class

C. Property

D. Object

Ans: Form


6. ……………. are interactive objects that you place in dialog boxes or other windows to carry out user actions.

A. Controls

B. Objects

C. Classes

D. Forms

Ans: Controls


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

A. Forms

B. Windows

C. Application

D. Control

Ans: Application


8. The ……… is a systematic class framework used for the development of system tools and utilities.

A. .Net Framework Class Library (FCL)

B. .Net tools

C. Visual Basic 2005

D. Visual Basic 6

Ans: .Net Framework Class Library (FCL)


9. The ……….. method converts the value of this instance to a double representing the OLE automation date.

A. From OA Date

B.TO OA Date

C. Today

D. Now

Ans: TO OA Date

 

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

A. Functions

B. Properties

C. Procedures

D. Variables

Ans: Properties


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

A) System

B) System.collections

C) System.NET

D) System.ReflectionK

Ans: System


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

A) .asp

B) .asmx

C) .aspx

D) .asax

Ans:  .asax


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

A) .asp

B) .asmx

C) .aspx

D) .asax

Ans: .aspx


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

A) .vbproj

B) .vbdisco

C) .vbs

D) .vb

Ans: .vbproj


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

A) XML

B) HTML

C) COM

D) DCOM

Ans: COM


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

Ans:  Interfaces


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

A) Enumeration

B) Interface

C) Delegate

D) Structure

Ans: Delegate


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

A) Enumeration

B) Interface

C) Delegate

D) Structure

Ans: Structure


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

Ans: System.Reflection


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

Ans: Attributes


VB .NET MCQS 120+


1 . Which language is not a true object-oriented programming language?

A. VB 6 B. VB.NET

C. JAVA D. C++

Answer: A


2 . A GUI is

A. uses buttons, menus, and icons

B. should be easy for a user to manipulate

C. both (a) and (b)

D. stands for Graphic Use Interaction

Answer: C


3 . Visual Studio .NET provides which feature:

A. debugging

B. application deployment

C. syntax checking

D. All of the above

Answer: D


4 . What does IDE stand for?

A. Integrated Design Environment

B. Integrated Development Environment

C. Interior Design Environment

D. Interior Development Environment

Answer: B


5 . Which type of project can a developer choose in the New Project dialog box?

A. Visual Basic Projects

B. Visual C++ Projects

C. Visual C# Projects

D. All of the above

Answer: D


6 . Which is not a main component of the Visual Studio IDE?

A. start menu         B. Tool box

C. designer window D. Solution Explorer

Answer: A


Don't MissADBMS Mcq Type Questions 500+ for BTech, Polytechnic Diploma


7 . Which does the solution explorer not display?

A. Form Properties B. Reference Folder

C. Form File         D. Assemble File

Answer: A


8 . Which is true about the name and text property of a control?

A. The text property changes to match any changes in the name property.

B. They are the same when the control is first created.

C. They are never the same unless the programmer makes it that way.

D. The name property changes to match any changes in the text property.

Answer: B


9 . For which task does the IDE provide multiple ways to accomplish the task?

A. Putting a control on the form

B. Running the program

C. Activating the property window for a control

D. All of the above

Answer: D


10 . Which are the standard prefixes for the Button and Combo box controls respectively?

A. bto and cbo B. bto and chb

C. btn and cbo D. btn and chb

Answer: C


11 . Which are the standard prefixes for the text box and label controls respectively?

A. txb and lbl B. txb and lab

C. tex and lbl D. tex and lab

Answer: A


12 . Which task is accomplished in the Code editor?

A. Adding forms to the project

B. Adding controls to the form

C. Adding controls to the title

D. Adding event procedures to the form

Answer: D


13 . Which is not a feature of a GUI that makes learning a program easy for users?

A. Detailed key strokes and commands

B. WYSIWYG formatting

C. Dialog boxes

D. Online help

Answer: A


14 . An object is composed of:

A. properties B. events

C. methods         D. All of the above

Answer: D


15 . Which statement about objects is true?

A. One class is used to create one object.

B. One class can create many objects.

C. One object is used to create one class.

D. One object can create many classes.

Answer: B


16 . Which is not true about forms and controls in Visual Basic?

A. They are pre-built.

B. They are graphical objects.

C. Buttons can be created with the drag and drop method.

D. New versions of the classes must be created with each project.

Answer: D


17 . Which is an example of Visual Basic Objects?

A. ASP.NET         B. ADO.NET

C. Control objects D. All of the above

Answer: D


18 . The .Net class library:

A. uses namespaces to manage all of the classes.

B. contains over 25,000 classes.

C. both (a) and (b)

D. has the System.Form namespace for classes used in Windows-based application.

Answer: C


19 . Which is not a property of the Common control class?

A. Font         B. show

C. ForeColor D. BackColor

Answer: B


20 . Which property determines whether a control is displayed to the user?

A. Visible B. Enabled

C. Show D. Hide

Answer: A


21 . The Button control can be activated:

A. by clicking the button with the mouse.

B. programmatically through the click event.

C. both (a) and (b)

D. with the form’s DefaultButton property.

Answer: C


22 . The CancelButton property belongs to which object?

A. Form B. Button

C. Label D. TextBox

Answer: A


23 . A click event procedure stud for the label control can be created by:

A. selecting the object and event from the code editor window’s drop-down boxes.

B. typing the code in the code editor window.

C. by double clicking the control.

D. All of the above

Answer: D


24 . In event-driven programming an event is generated by:

A. the system           B. a user’s action

C. the program itself   D. All of the above

Answer: D


25 . The Java and Visual Basic .NET belong to this type of programming language.

A. Assembly language

B. Machine language

C. High level programming language

D. Object oriented programming language

Answer: A


26 . It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications.

A. Class Library

B. Solution Explorer

C. Properties Window

D. Windows Form Designer

Answer: A


27 . It translates all high level instructions into machine code first before running the program.

A. Interpreter B. Compiler

C. Translator D. Language

Answer: B


28 . A window that lists the solution name, the project name and all the forms used in the project.

A. Properties Window

B. Solution Explorer

C. Windows Form Designer

D. Project Window

Answer: B


29 . VB.Net is

A. Platform Independent B. Compiler Language

C. Forward compatibale D. Backward compatible

Answer: D


30 . VB.Net supports

A. Structured error handling

B. Unstructured error handling

C. Both

D. None

Answer: A


31 . JIT stands for

A. Just In Type         B. Just In Time

C. Just In Thread D. Just In Text

Answer: B


32 . Out of following which is NOT type of assembly?

A. Local B. Private

C. Public D. None

Answer: A


33 . Assembly is ______ grouping of all units

A. Arithmatical B. Logical

C. Physical         D. Binary

Answer: C


34 . New keyword is used with the

A. Destructor B. Constructor

C. Both         D. None

Answer: B


35 . Keyword which is NOT used in VB.Net.

A. Int32 B. Int

C. Both D. None

Answer: C


36 . Out of following, which is NOT a type of Authentication?

A. Windows Authentication

B. Web Authentication

C. Passport Authentication

D. Forms Authentication

Answer: B


37 . What is CLR?

A. Current LanguageRuntime

B. Common Language Runtime

C. Common LanguageRealtime

D. Current LanguageRealtime

Answer: B


38 . IL stands for

A. Internal Language

B. Internet Language

C. Intermediate Language

D. Interpreted Language

Answer: C


39 . What is CTS?

A. Common Type Server

B. Control Type System

C. Common Type System

D. Control Type Server

Answer: C


40 . What is CLS?

A. Current Language Specifics

B. Common Language Specification

C. Common Language Specialization

D. Current Language System

Answer: B


41 . Language which is NOT supported by VB.Net

A. ASP       B. COBOL

C. Perl       D. C#

Answer: A


42 . What is used to store decimal data in .NET?

A. BinaryWriter     B. DecimalWriter

C. OctalWriter     D. HexaWriter

Answer: A


43 . Language which is NOT supported by .Net

A. Java       B. VB

C. Perl       D. COBOL

Answer: A


44 . To declare an integer variable in VB.NET language, which one of the following statements is true?

A. Dim x As Integer B. x As Integer

C. Dim x As Single D. None of these

Answer: A


45 . In VB.NET language, Which one is not the integer value?

A. 12 B. '23'

C. 10 D. 100

Answer: B


46 . Which of the following Loop structure does not supported by VB.Net?

A. Do ................ Loop

B. For ................... Next

C. Do ................ While

D. For Each ............ While

Answer: C


47 . The _____ model does not offer a model for source code reuse.

A. COM+ B. DCOM

C. COM D. .Net

Answer: C


48 . _____ allow custom items of information about a program element to be stored with an assembly's metadata.

A. Properties B. Attributes 

C. Methods D. Classes

Answer: B


49 . The corresponding .Net FCL type for Short is ______.

A. System.Int16 B. System.Int32 

C. System.Int64 D. None

Answer: A


50 . The member "clear" of the Array class that sets a range of array elements to zero, false or null reference is a _____________ method.

A. Method B. Class

C. Shared D. Object

Answer: C


51 . The ___________ method converts an OLE automation date value to a DateTime Instance.

A. Today B. Now

C. TimeOfDay D. FromOADate 

Answer: D


52 . The function procedures are ___________ by default.

A. public B. private

C. protected D. inherited

Answer: A


53 . Every optional argument in the procedure definition must specify a _______ value which must be a constant expression.

A. integer B. constant

C. default D. character

Answer: C


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

A. Type() B. TypeDef()

C. Btype() D. Ctype()

Answer: D


55 . 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: B


56 . A ________ performs invisible tasks even if you write no code.

A. destructor B. constructor 

C. function D. private method

Answer: B


57 . 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: D


58 . The _________ group classes according to their common services.

A. Namespaces B. inheritance

C. programs D. objects

Answer: A


59 . Whenever an application is created, a ______ is added.

A. Class B. Object

C. Form D. Property

Answer: C


60 . _________ are interactive objects that you place in dialog boxes or other windows to carry out user actions.

A. Forms B. Controls 

C. Classes D. Objects

Answer: B


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

A. Forms B. Control

C. Windows D. Application 

Answer: D


62 . 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: D


63 . The ______ method converts the value of this instance to a double representing the OLE automation date.

A. Now B. Today

C. TO OA Date D. From OA Date

Answer: C


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

A. Properties B. Procedures

C. Variables D. Functions

Answer: A


65 . Which of the following is a basic data type in VB.NET?

A. Boolean B. Byte

C. Char D. All of the above

Answer: D


66 . 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: C


67 . Which of the following access modifier specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the ca

A. ByVal B. ByRef

C. Friend D. Default

Answer: A


68 . Which of the following access modifier specifies that an attribute at the beginning of a source file applies to the current assembly module?

A. Key B. Module

C. Iterator D. In

Answer: B


69 . Which of the following access modifier specifies that a property or procedure overrides an identically named property or procedure inherited from a base class?

A. Overrides B. Overridable

C. ParamArray D. Partial

Answer: A


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

A. Widening B. WithEvents

C. WriteOnly D. ReadOnly

Answer: C


71 . Which of the following directive defines conditional compiler constants?

A. #Const B. #ExternalSource

C. #If...Then...#Else D. #Region

Answer: A


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

A. #Const                   B. #ExternalSourc

C. #If...Then...#Else   D. #Region

Answer: C


73 . 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: A


74 . Which of the following block of VB.NET identifies a block of code for which particular exceptions will be activated?

A. Try B. Catch

C. Finally D. Throw

Answer: A


75 . Which of the following is correct about VB.NET?

A. VB.NET has complete support for object-oriented concepts. VB.NET has complete support for object-oriented concepts.

B. Everything in VB.NET is an object, including all of the primitive types (Short, Integer, Long, String, Boolean, etc.) and user-defined types, events, and even assemblies.

C. All objects inherits from the base class Object.

D. All of the above

Answer: D


76 . Which of the following access modifier specifies that a procedure argument can be omitted when the procedure is called?

A. NotOverridable B. Optional

C. Out D. Overloads

Answer: B


77 . Which of the following access 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: A


78 . 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: D


79 . 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: B


80 . Which of the following operator declares the parameters and code that define a function lambda expression?

A. AddressOf

B. Await

C. GetType

D. Function Expression 

Answer: D


81 . 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: A


82 . 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: C


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

A. CStr(expression) B. CSByte(expression)

C. CShort(expression) D. CSng(expression)

Answer: A


84 . Which of the following access modifier is used in generic interfaces and delegates?

A. In B. Iterator

C. Key D. Module

Answer: A


85 . Which of the following access modifier specifies that a property or procedure cannot be overridden in a derived class?

A. NotOverridable B. Optional

C. Out D. Overloads

Answer: A


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

A. Private B. Public

C. Protected D. ReadOnly 

Answer: C


87 . Which of the following access 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: D


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

A. AddressOf B. Await

C. GetType D. Function Expression

Answer: A


89 . 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: A


90 . 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: D


91 . 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: C


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

A. CDbl(expression) B. CDec(expression)

C. CInt(expression) D. CLng(expression)

Answer: D


93 . Which of the following access modifier specifies that a class cannot be used as a base class?

A. MustInherit B. MustOverride

C. Narrowing D. NotInheritable

Answer: D


94 . Which of the following access modifier allows you to pass an arbitrary number of arguments to the procedure?

A. Overridable B. Overrides

C. ParamArray D. Partial

Answer: C


95 . Which of the following access 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?

A. Widening B. WithEvents

C. WriteOnly D. ReadOnly

Answer: A


96 . 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: B


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

A. If                 B. Await

C. GetType    D. Function Expression

Answer: A


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

A. ArrayList B. Hashtable

C. SortedList D. Stack

Answer: D


99 . 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: D


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

A. CDbl(expression) B. CDec(expression)

C. CInt(expression) D. CLng(expression)

Answer: B


101 . Which of the following access modifier specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the ca

A. ByRef B. ByVal

C. Default D. Friend

Answer: B


102 . Which of the following access modifier specifies that the type is covariant?

A. NotOverridable B. Optional

C. Out                         D. Overloads

Answer: C


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

A. Overridable B. Overrides

C. ParamArray D. Partial

Answer: D


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

A. Widening B. WithEvents

C. WriteOnly D. ReadOnly

Answer: C


105 . 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: C


106 . 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?

A. AddressOf B. Await

C. GetType     D. Function Expression

Answer: B


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

A. Rank B. LongLength

C. Length D. None of the above

Answer: A


108 . 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?

A. Try         B. Catch

C. Finally D. Throw

Answer: B


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

A. CDbl(expression) B. CDec(expression)

C. CInt(expression) D. CLng(expression)

Answer: D


110 . Which of the following access modifier specifies that one or more declared programming elements are accessible from within the assembly that contains their declaration, not only by the component that

A. ByRef B. ByVal

C. Default D. Friend

Answer: D


111 . Which of the following access modifier specifies that one or more declared local variables are to continue to exist and retain their latest values after termination of the procedure in which they are

A. Shadows B. Shared

C. Static D. Unicode

Answer: C


112 . Which of the following access 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: B


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

A. Event B. Delegate

C. Operator D. Property

Answer: A


114 . 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: A


115 . 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: B


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

A. CBool(expression)

B. CByte(expression)

C. CChar(expression)

D. CDate(expression) 

Answer: A


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

A. CObj(expression) B. CSByte(expression)

C. CShort(expression) D. CSng(expression)

Answer: B


118 . Which of the following access modifier specifies that an argument is passed in such a way that the called procedure or property cannot change the value of a variable underlying the argument in the ca

A. ByRef B. ByVal

C. Default D. Friend

Answer: B


119 . Which of the following access modifier specifies that Visual Basic should marshal all strings to American National Standards Institute (ANSI) values regardless of the name of the external procedure b

A. Ansi         B. Assembly

C. Async D. Auto

Answer: A


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

A. NotOverridable B. Optional

C. Out                         D. Overloads

Answer: D


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

A. Dim         B. Const

C. Enum D. Class

Answer: C


122 . 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: B

Post a Comment

1 Comments