Home
Current Affairs January 2024

What is the correct answer?

4

what will be the output of the code below :
private sub command_click()
dim I as integer
I=0
Do
Print I
Loop until I>10
End sub

A. it will generate compile time error

B. it will generate runtime error

C. it is an endless loop

D. 0 1 2 3 4 5 6 7 8 9 10

Correct Answer :

C. it is an endless loop


Related Questions

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

The extension name of a Visual Basic form is _____________.

A. .frm

B. .txt

C. .prj

D. .vbp

What is the correct answer?

4

To run an application you have to press :

A. F3

B. F6

C. F5

D. F7

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

The default startup object can not be changed in a project

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

It is possible to build an application without using any form:

A. True

B. False

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 add the commondialog control to any project one has to include it from

A. File menu->component->Microsoft Common Dialog Control 6.0

B. Project menu->Component-> Microsoft Common Dialog Control 6.0

C. Component menu->project-> Microsoft Common Dialog Control 6.0

D. None of the above

What is the correct answer?

4

In visual basic 'Break' statement could be used along with "Select Case"

A. True

B. False

What is the correct answer?

4

Say there is a string "Ramcharan"; when someone using Mid() function like MID("Ramcharan",2) then what will be the output:

A. "Ra"

B. "Ch"

C. "Amcharan"

D. None of the above

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

It is possible to pass different number parameters to a function when call the function on different time.

A. To do this one can use in the parameter list of that function

B. paramarray keyword with the array declaration

C. argument should be passed as array

D. none of the above

What is the correct answer?

4

cell alignment property can be used to align the cells with different alignment style

A. True

B. False

What is the correct answer?

4

CommonDialogs control is visible at runtime

A. True

B. False

What is the correct answer?

4

It is possible to change the password character property of text box control at run time.

A. True

B. False

What is the correct answer?

4

what will be the output of the code below :
private sub command_click()
dim I as integer
I=0
Do
Print I
Loop until I>10
End sub

A. it will generate compile time error

B. it will generate runtime error

C. it is an endless loop

D. 0 1 2 3 4 5 6 7 8 9 10

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

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.

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

Constants are processed faster than variables :

A. True

B. False

What is the correct answer?

4

In runtime it is not possible to change the form size.

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

Redim statement is used to :

A. Rename a variable.

B. Rename an array.

C. Redimension an array.

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

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

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

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

It is possible to load a MDI form without any childform.

A. True

B. False

What is the correct answer?

4

Now() function will return the current drive and directory you are working on as return value.

A. True

B. False