Visual Studio Form Flashcards

1
Q

What is FCL?

A

The Framework class library (FCL) is a comprehensive collection of reusable types including classes, interfaces and data types included in the .NET Framework to provide access to system functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Define unmanaged code.

A

Code that is written outside the.NET Framework is known as unmanaged code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is boxing?

A

Boxing: It is the process of converting a value type variable to a reference type variable (object).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to pass variable number of arguments in subroutine?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain MessageBox.Show() function

A

Displays a dialog box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the use of the Filter property of OpenFileDialog control?

A

you access the Filter property. We’ll restrict our users to only opening Text files, those that end in the extension “.txt”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

List out any four mouse events.

A

MouseDown – occurs when a mouse button is pressed.
MouseEnter – occurs when the mouse pointer enters the control.
MouseHover – occurs when the mouse pointer hovers over the control
MouseLeave – occurs when the mouse pointer leaves the control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which keyword is used to overload the subroutine?

A

You can use the Overloads keyword to define a version of the procedure for each parameter list, as follows: VB Overloads Sub post (ByVal custName As String, ByVal amount As Single) ‘

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the use of MustOverride keyword?

A

You can use MustOverride only in a property or procedure declaration statement.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List out methods of data adapter object.

A

Fill: adds or updates the rows to the dataset from the data source.

FillSchema adds a data table with the same schema as in the data source.

Update: it calls insert, update, and delete SQL commands for transferring all the changes from the dataset to the data source.

Dispose of: releases all the resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Explain Save File Dialog Box.

A

VB.NET Dialog Box A Dialog box is a temporary Window for an application that accepts user responses through a mouse or keyboard to open a file, save a file, notifications, alert messages, color, print, open file dialog box, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the use of the MyBase keyword in VB.NET?

A

MyBase is commonly used to call back into the overridden member from the member that overrides it in the derived class. The MyBase keyword can be used to call the constructor of the base class to instantiate a member of that class,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the use of Option Strict statement?

A

prevents program from automatic variable conversions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to create Dynamic Array?

A

Dim myArr() As String
ReDim myArr(3)
myArr(0) = “One”
myArr(1) = “Two”
myArr(2) = “Three”
myArr(3) = “Four”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Define shared variable

A

improved version of global variables called shared variables, which you place inside a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Write difference between Enable and Visible properties.

A

Enable means use can view the control but can’t operate or use control. Visible means user can’t see the control exist.

17
Q

What is CTS?

A

Common Type System known as CTS in .Net Framework, CTS is one of the core architectural part of .Net Framework.

18
Q

What is the use of Command Object?

A

execute select statements

19
Q

What is the scope of Friend members of the class?

A

A friend function does not fall within the scope of the class for which it was declared as a friend.

20
Q

What is the significance of Catch block in Try…Catch statement?

A

may throw an exception. When a specific type of exception occurs, a catch block catches the exception.