Home
Current Affairs January 2024

What is the correct answer?

4

CommonDialog1.ShowOpen
Filename1=CommonDialog1.Filename
The above code will

A. Set the filename1 by the selected filename from the common dialog contol.

B. First displays the open dialog box and let the user select any file from any

C. location and then set the filename1 by the selected filename.

D. Both are true.

Correct Answer :

B. First displays the open dialog box and let the user select any file from any


Related Questions

What is the correct answer?

4

You can get a dropdown list and as well as can add some text directly to ____________ Control.

A. listbox

B. command

C. Combo Box.

D. none of this

What is the correct answer?

4

which should be included when an application is used without any forms

A. subroutines

B. function

C. main

D. sub-main

What is the correct answer?

4

In visual basic Bool variable stores

A. 2 bytes

B. 1 bytes

C. 4 bytes

D. none of the above.

What is the correct answer?

4

List count property returns total number of items in list box control.

A. True

B. False

What is the correct answer?

4

Suppose there is a data control named data1. What will be the effect if the following code is inserted

A. Data1.recordset.movefirst

B. The record pointer will move to the first record of the record set

C. The pointer will move to the first record of the original table that contains the data

D. It will refresh the recordset

What is the correct answer?

4

When using do loop-while statement then the statements within the loop body will be executed only once if the condition does not fulfilled

A. True

B. False

What is the correct answer?

4

Visual Basic has ____________ number of editions

A. 3

B. 4

C. 5

D. 6

What is the correct answer?

4

If the user wants to select the multiple files from file open and filesave dialog boxes then the flag must be set to

A. cdlOFNMultiselsectAllow

B. cdlOFNAllowMultiselect

C. It is not possible to select more than one file at a time

D. None

What is the correct answer?

4

Instr$(text1.text,"visual") will returns :

A. No. of times the string "visual" is present in the string in text1.text.

B. It puts the control where it finds the text "visual" in the string given in text1.text.

C. First occurrence of the text "visual" within the string given in text1.text

D. None of the above.

What is the correct answer?

4

In timer control _____________ is the most important property.

A. Interval.

B. Front

C. backcolor

What is the correct answer?

4

To enable apply button in dialog box ; flag value should be set to

A. cdlCFApply

B. cdlcfTTOnly

C. cdcclHelpButton

D. None of the above

What is the correct answer?

4

To draw a form on the screen which event is being called up

A. Draw Event

B. Load Event

C. Paint Event

D. Either i or iii

What is the correct answer?

4

Isnull(), IsEmpty() determines weather any variable has been initialize or not

A. True

B. False

What is the correct answer?

4

Sorted property of list box control is a design time property and cannot be changed in runtime.

A. True

B. False

What is the correct answer?

4

The arrange property of MDI form is available at design time.

A. True

B. False

What is the correct answer?

4

To get the property window in visual basic you have to press :

A. F3

B. F6

C. F4

D. F6

What is the correct answer?

4

To get the property window in visual basic you have to press

A. F6

B. F3

C. F4

D. F5

What is the correct answer?

4

By default 'Dim myvar' this statement:

A. allocates memory for integer variable

B. allocates memory for variant variable

C. allocates memory for Double variable

D. allocates memory for Boolean variable

What is the correct answer?

4

It is possible to declare 'Dynamic Array' in visual basic.

A. True

B. False

What is the correct answer?

4

Time() function is used to recover date & time.

A. True

B. False

What is the correct answer?

4

The full form of IIS is :

A. Indian Institute of Science.

B. Internet Information Service

C. Industrial Information Services.

What is the correct answer?

4

While running an application you can change the value of any variable and see it's effect through ___________ window.

A. intermediate

B. Immediate

C. current

What is the correct answer?

4

The title of the dialog box can be changed.

A. True

B. False

What is the correct answer?

4

It is possible to insert a picture in a option button control.

A. True.

B. False

What is the correct answer?

4

What will be the output when the statements below will execute :
Dim a as integer
a=0
while(a<5)
print a
a=a+1
end

A. It will generate the output like 0 1 2 3 4

B. It will generate a runtime error

C. It will generate a compiler error

D. It will display nothing

What is the correct answer?

4

Time variable is used to store date and time in visual basic

A. True

B. False

What is the correct answer?

4

When someone uses the code like list1.list(1); then it will return the first item of the list box control.

A. True

B. False

What is the correct answer?

4

ABS() function will generate a hole value when used with a number with fraction part (ex: 125.26598)

A. True

B. False

What is the correct answer?

4

Dialog title property is used to change the title of any dialog box

A. True

B. False

What is the correct answer?

4

Sorted property of list box control is a design time property and cannot be changed in runtime.

A. True

B. False