Home
Current Affairs January 2024

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

Correct Answer :

B. Read value from an user control


Related Questions

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

Two commands can be written in the same line using

A. :

B. ;

C. ,

D. .

What is the correct answer?

4

FolderBrowserDialog displays

A. File

B. Folder

C. Drives

D. b and c

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

What is the correct answer?

4

/*1. Class C
2. public mustinherit sub abc()
3. msgbox("Base Class")
4. end sub
5. end Class /* The error is in line no.

A. 1

B. 2

C. 3

D. 4

What is the correct answer?

4

DataSet can be used to connect to Crystal Report

A. True

B. False

What is the correct answer?

4

To view Panels of a StatusBar set _________ to true

A. Panel

B. Panels

C. ShowPanel

D. ShowPanels

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

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

To add controls at runtime use

A. Controls.New

B. Controls.AddNew

C. Controls.Add

D. Controls.AddItem

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

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

To print use

A. PrintDialog1.Print()

B. PrintDocument1.Print()

C. Printer1.Print()

D. None of the above

What is the correct answer?

4

A function can have multiple return statements

A. True

B. False

What is the correct answer?

4

In TreeView to get the node the mouse is pointing to, use

A. GetNode

B. Node

C. GetNodeAt

D. SelectNode

What is the correct answer?

4

Using MyBase you can call base class

A. Constructor

B. Method

C. Variables

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

To call a buttons click event use

A. Button1.Click

B. Button1.PerformClick

C. Button1.Clicked

D. None of the above

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

In reports ___________ property help to assign user-defined criteria

A. ReportSource

B. SectionFormula

C. Query

D. SelectionFormula

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

Using ADODB multiple tables can be connected at a time

A. True

B. False

What is the correct answer?

4

This property of TrackBar is not present

A. TickStyle.Both

B. TickStyle.None

C. TickStyle.TopLeft

D. TickStyle.BottomLeft

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

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

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

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