VB.NET

Description: Visual Basic.NET
Number of Questions: 25
Created by:
Tags: VB.Net Programming
Attempted 0/25 Correct 0 Score 0

Which of the following applications runs on a web server, but its user interface is displayed in a web browser on the client machine?

  1. Framework Class Library

  2. Web Forms Application

  3. Windows Forms Application

  4. None of these


Correct Option: B
Explanation:

A web form application runs on a web server, but its user interface is displayed in a web browser on the client machine.

Which of the following data types is passed to methods by passing an exact copy?

  1. Value type

  2. Reference type

  3. Implicit data type

  4. Explicit data type


Correct Option: A
Explanation:

Value types are passed to methods by passing an exact copy.

______________ is a self-contained unit that combines code and data.

  1. Class

  2. Instantiation

  3. Object

  4. None of these


Correct Option: C
Explanation:

An object is a self-contained unit that combines code and data.

_________________ is a component of CLR that ensures that all .NET applications use the same data types regardless of what programming languages were used to develop the application.

  1. Common Type System

  2. Common Language Runtime

  3. .NET Framework Class Library

  4. None of these


Correct Option: A
Explanation:

Common Type System is a component of CLR that ensures that all .NET applications use the same data types regardless of what programming languages were used to develop the application.

 

Which of the following are the operations that an object can perform?

  1. Properties

  2. Methods

  3. Events

  4. None of these


Correct Option: B
Explanation:

 Methods are the operations that an object can perform.

Which text box control property determines whether characters entered in the text box should be left as entered or converted to upper or lowercase?

  1. HideSelection

  2. CharacterCasting

  3. MaxLength

  4. Multiline


Correct Option: B
Explanation:

CharacterCasting control property determines whether characters entered in the text box should be left as entered or converted to upper or lowercase.

_____________ control property determines if the text in the text box is hidden when the control loses focus.

  1. UseMnemonic

  2. AcceptReturn

  3. HideSelection

  4. PasswordChar


Correct Option: C
Explanation:

 HideSelection control property determines if the text in the text box is hidden when the control loses focus.

_____________ is used to manage and display the files and projects in a solution.

  1. Form Design Window

  2. Code Editor Window

  3. Solution Explorer

  4. None of these


Correct Option: C
Explanation:

Solution Explorer is used to manage and display the files and projects in a solution.

Which of the following allows us to create and edit visual basic source code?

  1. Form Design Window

  2. Code Editor Window

  3. Solution Explorer

  4. None of these


Correct Option: B
Explanation:

Code Editor Window lets us to create and edit visual basic source code.

Which of the following is stored on disk in an assembly that contains references to the classes that the application requires?

  1. Common Language Runtime (CLR)

  2. Integrated Development Environment (IDE)

  3. Microsoft Inter-mediate Language (MSIL)

  4. None of these


Correct Option: C
Explanation:

Microsoft Inter-mediate Language is stored on disk in an assembly that contains references to the classes that the application requires.

Which of the following contains other types of files, such as sound files, image files or simple text files?

  1. Project

  2. Source files

  3. Solution

  4. None of these


Correct Option: A
Explanation:

A project contains other types of files, such as sound files, image files or simple text files.

Which of the following provides pre-written code in the form of classes that are available to all of the .NET programming languages?

  1. Common Type System

  2. Common Language Runtime

  3. .NET Framework Class Library

  4. Windows Forms Application


Correct Option: C
Explanation:

The .NET Framework Class Library provides pre-written code in the form of classes that are available to all of the .NET programming languages. This class library consists of hundreds of classes.

__________ are signals by which an object can notify other objects that something noteworthy has occurred.

  1. Events

  2. Class

  3. Methods

  4. None of these


Correct Option: A
Explanation:

  Events are signals by which an object can notify other objects that something noteworthy has occurred.

Which of the following control properties is a character which is displayed in place of each character into the text box?

  1. MaxLength

  2. CharacterCasting

  3. PasswordChar

  4. None of these


Correct Option: C
Explanation:

PasswordChar is a character, which is displayed in place of each character into the text box. It is used to provide security for entering passwords.

Which of the label control properties determines whether an ampersand(&) in the text property of the control identifies an access key or a text character?

  1. Text

  2. AcceptsReturn

  3. Multiline

  4. UseMnemonic


Correct Option: D
Explanation:

UseMnemonic label control property determines whether an ampersand(&) in the text property of the control identifies an access key or a text character.

Which property of exception holds a list of the pending method calls at the point at which the exception was detected?

  1. HideSelection

  2. StackTrace

  3. Text

  4. None of these


Correct Option: B
Explanation:

StackTrace is a list of the pending method calls at the point at which the exception was detected.

Which control property determines whether the lines in a multiline text box are wrapped automatically when the end of each line is reached?

  1. Scrollbars

  2. WordWrap

  3. ReadOnly

  4. None of these


Correct Option: B
Explanation:

WordWrap control property determines whether the lines in a multiline text box are wrapped automatically when the end of each line is reached.

Which of the following statements is FALSE with respect to Single-Document Interface?

  1. Each form runs in its own application window.

  2. A container form called Parent Form contains one or more Child Forms.

  3. Each form can have its own menus and toolbars.

  4. It has a main form called a Startup form.


Correct Option: B
Explanation:

This statement is false with respect to SDI because there is no parent - child form present in SDI. This statement can be true in case of MDI (Multiple Document Interface).

____________ property returns the exception object reference to a nested exception.

  1. Message

  2. TargetSite

  3. InnerException

  4. StackTrace


Correct Option: C
Explanation:

InnerException property returns the exception object reference to a nested exception.

___________ control property determines whether the user can change the text in the text box.

  1. ReadOnly

  2. AcceptReturn

  3. Text

  4. None of these


Correct Option: A
Explanation:

ReadOnly control property determines whether the user can change the text in the text box.

Which of the following begins a section of code in which an exception might be generated from a code error?

  1. Catch

  2. Finally

  3. Try

  4. Throw


Correct Option: C
Explanation:

Try begins a section of code in which an exception might be generated from a code error.

Which of the following representatives of classes extends exception results when there is no enough memory to carry out an operation?

  1. OutOfMemoryException

  2. XmlException

  3. InvalidOperationException

  4. None of these


Correct Option: A
Explanation:

OutOfMemoryException is the representative of the classes that extends exception results when there is not enough memory to carry out an operation.

Which method of form object loads the form if it is not already loaded, and then displays the form by setting its visible property to true?

  1. Show

  2. Hide

  3. BringToFront

  4. SendToBack


Correct Option: A
Explanation:

Show method of the form object loads the form if it is not already loaded, and then displays the form by setting its visible property to true.

_______ property of exception is a string that contains a description of the error, suitable for displaying to users.

  1. HelpLink

  2. InnerException

  3. Message

  4. None of these


Correct Option: C
Explanation:

Message property of exception is a string that contains a description of the error, suitable for displaying to users.

___________ provides access to the collection of items in a list box or combo box list.

  1. Sorted

  2. SelectedIndex

  3. DropDownStyle

  4. Items


Correct Option: D
Explanation:

Items provide access to the collection of items in a list box or combo box list.

- Hide questions