Home
Current Affairs January 2024

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

Correct Answer :

B. Dim withEvents c as new ClassName


Related Questions

What is the correct answer?

4

For the same class "Me" and MyBase" are same

A. True

B. False

What is the correct answer?

4

A Windows Service if installed cannot be uninstalled

A. True

B. False

What is the correct answer?

4

VB.NET does not support control arrays

A. True

B. False

What is the correct answer?

4

The default Tab of a Tab Control is

A. The first tab

B. The last tab added

C. The last tab modified

D. There is no default tab.

What is the correct answer?

4

In reports ___________ property help to assign user-defined criteria

A. ReportSource

B. SectionFormula

C. Query

D. SelectionFormula

What is the correct answer?

4

If Scrollbars property of a TextBox is set to Hortizontal and the WordWrap property is also set to true. Which one will get precedence

A. Scrollbars

B. WordWrap

C. No precedence both will work

What is the correct answer?

4

A form can not call itself

A. True

B. False

What is the correct answer?

4

The SelectionMode property of a CheckedList Box can be set only to

A. One

B. MultiSimple

C. MultiExtended

D. None of the abvove

What is the correct answer?

4

A form can have only ______ Main Menu and _________ Context Menu

A. 1,1

B. 1,Multiple

C. Multiple,1

D. 1,2

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

ScrollBars can be added to

A. Panel

B. GroupBox

C. Both a and b

D. None of the above

What is the correct answer?

4

Images can be loaded from

A. Images.FromFile

B. BitMap.FromFile

C. System.FromFile

D. Both a and b

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

A user wants that custom colors are visible when the Color Dialog Box is first Opened. What should he do?

A. Set AllowFullOpen to True

B. Set AnyColor to True

C. Set Open to True

D. Set FullOpen to True

What is the correct answer?

4

_________ actually updates the values in a DataSet permanently

A. OleDataAdapterq1.update(DataSet1,"emp")

B. DataSet1.Merge(DataSet1)

C. DataSet1.AcceptChanges()

D. DataSet1.Update()

What is the correct answer?

4

A TreeView can have multiple root nodes

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

_________ and _____________ combines to make a KeyPress event

A. KeyUp, KeyDown

B. KeyEnter, KeyRelease

C. KeyDown, KeyRelease

D. KeyEnter, KeyUp

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

/*1. Class C
2. public notoverridable sub abc()
3. msgbox("Base Class")
4. end sub
5. end Class /* The Error in Line No.

A. 2

B. 3

C. 4

D. No Error

What is the correct answer?

4

To make a button the default button, this property of the form must be set

A. DefaultButton

B. AcceptButton

C. DialogResult

D. None 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

In OLEDB database can be accessed without using DataSet

A. True

B. False

What is the correct answer?

4

This view pops up if "Ctrl+F1" is pressed

A. Help

B. Properties Window

C. Dynamic Help

D. Server Explorer

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

Default event handler of Splitter is

A. Splitter.Click

B. Splitter.Clicked

C. Splitter.Drag

D. None of the above

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 Option Explicit is on then Dim i as Integer="10" will produce an error

A. True

B. False

What is the correct answer?

4

Dim a() as Integer-{1,2,3,4}is a valid statement

A. True

B. False

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