Visual Basic.Net MCQ Quiz – 2

Visual Basic.Net MCQ Quiz - 2 VB.net

Visual Basic.Net MCQ Quiz with Answers

Return to Programming Language Quiz List

Candidates who are preparing for the exams based on VB.Net can use this post and collect the VB.Net Questions and Answers. The aspirants can score good marks in the examinations easily by practising the VB.NET MCQ quiz.

It has important thirty basic questions about .Net language. Let’s start with the Visual Basic.Net MCQ quiz.

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

(A) Private method

(B) Destructor

(C) Constructor

(D) Function

View Answer
(C) Constructor

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

(A) Methods

(B) Attributes

(C) Classes

(D) Properties

View Answer
(B) Attributes

Question 3: Microsoft Windows uses a GUI environment. GUI (pronounced “gooey”) stands for _______.

(A) Graphical User Interface

(B) Geometrical Upper Intelligence

(C) Grammatical User Incorporation

(D) Geographical User Interchange

View Answer
(A) Graphical User Interface

Question 4: The ________ enable us to pass data between a program and a class.

(A) Variables

(B) Functions

(C) Procedures

(D) Properties

View Answer
(D) Properties

Question 5: Which 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 declares them?

(A) Default

(B) Friend

(C) ByRef

(D) ByVal

View Answer
(B) Friend

Question 6: Visual Studio .NET provides which feature:

(A) Application Deployment

(B) Syntax checking

(C) Debugging

(D) All of the above

View Answer
(D) All of the above

Question 7: Which is not a main component of the Visual Studio IDE?

(A) Designer window

(B) Start menu

(C) Solution Explorer

(D) Toolbox

View Answer
(B) Start menu

Question 8: Which task is accomplished in the Code editor?

(A) Adding controls to the title

(B) Adding controls to the form

(C) Adding event procedures to the form

(D) Adding forms to the project

View Answer
(C) Adding event procedures to the form

Question 9: An object is composed of:

(A) Events

(B) Properties

(C) Methods

(D) All of the above

View Answer
(D) All of the above

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

View Answer
(C) Both (A) and (B)

Question 11: Which is not a property of the Common control class?

(A) Show

(B) Font

(C) ForeColor

(D) BackColor

View Answer
(A) Show

Question 12: Which property determines whether a control is displayed to the user?

(A) Enabled

(B) Visible

(C) Show

(D) Hide

View Answer
(B) Visible

Question 13: The Java and Visual Basic .NET belong to which type of programming language?

(A) High-level programming language

(B) Machine language

(C) Object-oriented programming language

(D) Assembly language

View Answer
(D) Assembly language

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

(A) Properties Window

(B) Windows Form Designer

(C) Class Library

(D) Solution Explorer

View Answer
(C) Class Library

Question 15: It translates all high-level instructions into machine code first before running the program.

(A) Compiler

(B) Interpreter

(C) Language

(D) Translator

View Answer
(A) Compiler

Question 16: VB.Net is _____.

(A) Forward compatible

(B) Backward compatible

(C) Platform Independent

(D) Compiler Language

View Answer
(B) Backward compatible

Question 17: VB.Net supports _____.

(A) Unstructured error handling

(B) Structured error handling

(C) Both

(D) None

View Answer
(B) Structured error handling

Question 18: New keyword is used with the_____.

(A) Destructor

(B) Constructor

(C) Both

(D) None

View Answer
(B) Constructor 

Question 19: Out of the following, which is NOT a type of Authentication?

(A) Passport Authentication

(B) Windows Authentication

(C) Forms Authentication

(D) Web Authentication

View Answer
(D) Web Authentication

Question 20: Language which is NOT supported by VB.Net

(A) Perl

(B) ASP

(C) COBOL

(D) C#

View Answer
(B) ASP

Question 21: What is used to store decimal data in .NET?

(A) BinaryWriter

(B) DecimalWriter

(C) HexaWriter

(D) OctalWriter

View Answer
(A) BinaryWriter

Question 22: Which Loop structure does not support by VB.Net?

(A) For ………………. Next

(B) Do ……………. Loop

(C) Do ……………. While

(D) For Each ………… While

View Answer
(C) Do ……………. While

Question 23: The _____ model does not offer a model for source code reuse.

(A) COM+

(B) COM

(C) DCOM

(D) .Net

View Answer
(B) COM

Question 24: The corresponding .Net FCL type for Short is ___________.

(A) System.Int30

(B) System.Int32

(C) System.Int64

(D) System.Int16

View Answer
(D) System.Int16

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

(A) Object

(B) Shared

(C) Class

(D) Method

View Answer
(B) Shared

Question 26: The ___________ method converts an OLE automation date value to a DateTime Instance.

(A) FromOADate

(B) TimeOfDay

(C) Today

(D) Now

View Answer
(A) FromOADate

Question 27: Every optional argument in the procedure definition must specify a _________ value which must be a constant expression.

(A) Default

(B) Integer

(C) Constant

(D) Character

View Answer
(A) Default

Question 28: The ______ group classes according to their common services.

(A) Inheritance

(B) Objects

(C) Namespaces

(D) Programs

View Answer
(C) Namespaces

Question 29: The ________ is a systematic class framework used for the development of system tools and utilities.

(A) .Net tools

(B) .Net Framework Class Library (FCL)

(C) Visual Basic 6

(D) Visual Basic 2005

View Answer
(B) .Net Framework Class Library (FCL)

Question 30: Which of the following directive defines conditional compiler constants?

(A) #Const

(B) #Region

(C) #ExternalSource

(D) #If…Then…#Else

View Answer
(A) #Const