Home
Current Affairs January 2024

What is the correct answer?

4

To break a loop abnormally when satisfying a condition, we can use

A. Break statement

B. Exit statement

C. Both i & ii could be used.

D. None of the above.

Correct Answer :

B. Exit statement


Related Questions

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

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

The title of the dialog box can be changed.

A. True

B. False

What is the correct answer?

4

If you want a list box control with check box option, which property of list box control you will have to change.

A. Check box property

B. Check style property

C. Style property

D. None

What is the correct answer?

4

Data1.Recordset.FindFirst "State=NY"
The above code will find the record in a given database

A. Find the first record in the given database

B. Find the first record in the given database in which the state is NY.

C. The above command will find a record very fast where the state is NY

D. None of the above

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

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

A. 4

B. 5

C. 6

D. 7

What is the correct answer?

4

You can get the ASCII value of any character or number by using

A. ASC() function

B. ASCII() function

C. There is no function to get the ascii value.

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

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

A. True

B. False

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

In visual basic the default unit is :

A. centimeter.

B. Inch.

C. Dpi.

D. Twips .

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

The size of 'Boolean' data type is :

A. 1 Byte.

B. 2 Bytes.

C. 4 Bytes.

D. 8 Bytes.

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

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

A. True

B. False

What is the correct answer?

4

If the Flag constant for the font common dialog box is cdlCFPrinterFonts then it causes the dialog box to show only the fonts supports by the printer specified by the hdc property

A. True

B. False

What is the correct answer?

4

CommonDialog control is the default control that anyone can find in the toolbar when a new project is started

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

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

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

What is the default value of MaxLength property of text box control?

A. 255 characters

B. 10 characters

C. 0 characters

D. Any of the above

What is the correct answer?

4

Min and Max property can be used with Font common dialog box to determine

A. To controlling dialog box size

B. The minimum and maximum size displayed in the size list

C. None of the above

What is the correct answer?

4

Activate event is called before load event

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

The project extension name of a VB project is .vbj

A. True

B. False

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

If there is a control array of label for 10 elements, then what will be the fifth element in the array?

A. label(5)

B. label(3)

C. label(4)

D. None

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