Home
Current Affairs January 2024

What is the correct answer?

4

In a programme body :
Private sub form_load()
X=inputbox("First No. :")
Y=inputbox("Second No. :")
Z=val(X) +val(Y)
Print Z
End sub
What will be the output ?

A. The summation of two numbers given in two input box

B. It will show the numbers given in the input box side by side

C. It will show nothing

D. None of the above

Correct Answer :

C. It will show nothing


Related Questions

What is the correct answer?

4

Function Add(Num1 as integer, Num2 as integer) as integer
Add=Num1+Num2
Num1=0
Num2=0
End function
This body is an example of calling up a function by:

A. By optional argument.

B. By value.

C. By reference.

What is the correct answer?

4

Sort is a method by which elements can be sorted in flexgrid control

A. True

B. False

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

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

A. True

B. False

What is the correct answer?

4

The project extension name of a VB project is .vbj

A. True

B. False

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

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

It is possible in visual basic to specifying array limit like from 1 to 10

A. True

B. False

What is the correct answer?

4

Flag property is used to adjust the function of each common dialog box

A. True

B. False

What is the correct answer?

4

Which property of list box control reports the number of selected items.

A. ListIndex

B. Selected

C. Selcount

D. NewIndex

What is the correct answer?

4

In visual basic, number of loop control structure is _____________.

A. 4

B. 5

C. 6

D. 7

What is the correct answer?

4

_____________ property of any control cannot change at run time.

A. color

B. name

C. caption

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

In visual basic the default unit is :

A. centimeter.

B. Inch.

C. Dpi.

D. Twips .

What is the correct answer?

4

It is possible to change the shortcut key assigned to any menu for accessing within the menu editor.

A. True

B. False

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

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

A. True.

B. False

What is the correct answer?

4

In database application, any field does not contain any values can be recognized by:

A. Nothing value.

B. Null value.

C. Error value.

D. Empty value.

What is the correct answer?

4

MDI form1.Arrange vbTileHorizontal; this code in a MDI form will

A. If there are more than one MDI form then arrange them all in horizontal manner

B. Tiles all child form in horizontal manner

C. Tiles the MDI form horizontally

D. None of the above.

What is the correct answer?

4

Terminate is a valid event in form operation

A. True

B. False

What is the correct answer?

4

It is not possible to change the back color property of option button control at run time.

A. True

B. False

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

Visual Basic has ____________ number of editions

A. 3

B. 4

C. 5

D. 6

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

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

Constants are processed faster than variables :

A. True

B. False

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

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

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

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

A. F3

B. F6

C. F4

D. F6