Home
Current Affairs January 2024

What is the correct answer?

4

To add controls at runtime use

A. Controls.New

B. Controls.AddNew

C. Controls.Add

D. Controls.AddItem

Correct Answer :

C. Controls.Add


Related Questions

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

To retrieve the default path of the project use

A. Application.Path

B. Application.DefaultPath

C. Application.StartupPath

D. Application.ProjectPath

What is the correct answer?

4

In TreeView to collapse all the nodes of a selected node ___________ method is used

A. CollapseAll

B. Collapse

C. Any one of the above

D. None of the above

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

Class cc
public _________ I as string
end class
Button1_Click
cc.I=100

A. Share

B. Shared

C. Global

D. Static

What is the correct answer?

4

A function can have multiple return statements

A. True

B. False

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

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

A. True

B. False

What is the correct answer?

4

PasswordChar property of a TextBox can accept " " (space) as the password char

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 print use

A. PrintDialog1.Print()

B. PrintDocument1.Print()

C. Printer1.Print()

D. None of the above

What is the correct answer?

4

We need multiple ErrorProviders from multiple controls.

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

To get details about an error use

A. Err.Message

B. Err.Desc

C. Err.Description

D. Err.Number

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

Using OLEDB you can connect more than one table

A. True

B. False

What is the correct answer?

4

To vertically arrange all forms in an MDI form use

A. Me.Layout(MdiLayout.TileVertical)

B. Me.MdiLayout(MdiLayout.TileVertical)

C. Me.LayoutMdi(MdiLayout.TileVertical)

D. Nothing is required because default is Vertical

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

A TreeView can have multiple root nodes

A. True

B. False

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

Data from DataSet is accessed using34

A. Binding Obejct

B. BindContext Object

C. BindingContext Object

D. EndCurrentEdit Object

What is the correct answer?

4

A MsgBox can have maximum ___________ button(s)

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

A Windows Service if installed cannot be uninstalled

A. True

B. False

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

When a project is Built it creates a _______ and ________ file under Bin directory

A. .exe, .sln

B. .exe, .dll

C. .dll, .sln

D. .exe, .ocx

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

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

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

A. True

B. False

What is the correct answer?

4

If nothing is selected in a combo box, its index value is

A. -1

B. 0

C. 1

D. Null

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