Home
Current Affairs January 2024

What is the correct answer?

4

If a button click event is to be fired when the user press the 'Esc' key, set the buttons name against forms _________ property

A. DefaultButton

B. AcceptButton

C. DialogResult

D. CancelButton

Correct Answer :

D. CancelButton


Related Questions

What is the correct answer?

4

FolderBrowserDialog displays

A. File

B. Folder

C. Drives

D. b and c

What is the correct answer?

4

Finally is fired only when error occurs

A. True

B. False

What is the correct answer?

4

The default location of the exe file of your solution is

A. ..../Project folder name

B. .../Project folder name/Bin

C. .../Project folder name/Debug

D. .../Project folder name/Debug/Bin

What is the correct answer?

4

While handling keystrokes if e.Handled=True is set then Visual Basic

A. Will handle the key

B. Will not handle the key

C. Will send the key to Garbage collector

D. None of the above

What is the correct answer?

4

To display multiple columns in ListView the View property must be set to

A. SmallIcon

B. LargeIcon

C. Details

D. List

What is the correct answer?

4

The Apply button automatically appears of the Font Dialog Box is opened

A. True

B. False

What is the correct answer?

4

Get method is used to

A. Assign a value to an user control

B. Read value from an user control

C. Both of the above

D. None of the above

What is the correct answer?

4

To use HelpProvider, the following properties of the form needs to be set

A. HelpButton

B. MaximizeBox

C. MinimizeBox

D. All of the above

What is the correct answer?

4

/*1. OleDataAdapterq1.update(DataSet1,"emp")
2. OleDataAdapterq1.update(DataSet1,"std")
3. DataSet1.Merge(DataSet1)
4. DataSet1.AcceptChanges()
/* The error is in line

A. 2

B. 4

C. 3

D. No Error

What is the correct answer?

4

You create a UserControl having a TextBox and include that in a separate Form. Can you use all the properties of the TextBox in the UserControl from that Form?

A. Yes

B. No

What is the correct answer?

4

If a Label control's AutoSize property is set to True, can you resize the control

A. Yes

B. No

What is the correct answer?

4

On error goto lbl is a

A. Structured error

B. Unstructured error

What is the correct answer?

4

dim arr(10) as string,
the max index of the array is

A. 9

B. 10

C. Can be >10 also

D. None of the above

What is the correct answer?

4

To override Finalize function the scope of the function must be

A. Private

B. Public

C. Protected

D. Static

What is the correct answer?

4

Dim S as Integer=10
Text1=S
Msgbox(Text1.Text)

A. Will return error

B. Will return 10

C. Will return 0

D. Will return Null

What is the correct answer?

4

Set method is used to

A. Assign a value to an user control

B. Read value from an user control

C. Both of the above

What is the correct answer?

4

If an user-defined class have a user-defined event then, the class object is declared as

A. Dim c as new ClassName

B. Dim withEvents c as new ClassName

C. Dim c as ClassName

D. Dim withEvents c as ClassName

What is the correct answer?

4

________ converts to long datatype

A. Clong

B. CLng

C. Lng

D. None of the above

What is the correct answer?

4

To add items stored in an array to a ListView use

A. List1.Add(name of the array)

B. List1.AddItem(name of the array)

C. List1.Items.Add(name of the array)

D. List1.Items.Addrange(name of the array)

What is the correct answer?

4

In ADODB the _____________ property is used to connect to the table

A. RecordSet

B. DataSource

C. RecordSource

D. Connection

What is the correct answer?

4

VB.NET does not support control arrays

A. True

B. False

What is the correct answer?

4

Use a _________ statement to make Visual Basic object the default object for a set of enclosed Visual Basic statements.

A. With

B. Using

C. Import

D. Inherit

What is the correct answer?

4

A thread can be started only once

A. True

B. False

What is the correct answer?

4

If you want to open a file named "a.txt" use

A. System.diagnostics.Start("a.txt")

B. System.Start("a.txt")

C. System.diagnostics.Process.Start("a.txt")

D. System.Process.Start("a.txt")

What is the correct answer?

4

To redimension an array with its previous values intact use ___________ keyword

A. RedimPreserve

B. Preserve

C. Redim

D. Redim Preserve

What is the correct answer?

4

Application.StartupPath actually points to

A. //ProjectName

B. //ProjectName/Bin

C. //ProjectName/Debug

D. //ProjectName/Bin/ProjectName.exe

What is the correct answer?

4

In Class, Me.Show and MyClass.Show are same (Show is method name)

A. True

B. False

What is the correct answer?

4

A DataSet can be updated only when the connection is open

A. True

B. False

What is the correct answer?

4

Data from DataSet is accessed using34

A. Binding Obejct

B. BindContext Object

C. BindingContext Object

D. EndCurrentEdit Object

What is the correct answer?

4

Function abc() As String
Return 10
End Function

A. Will produce compilation error

B. Will produce runtime error

C. The function will execute normally

D. None of the above