What is the correct answer?


What will be the output when the statements below will execute :
Dim a as integer
print a

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

Correct Answer :

C. It will generate a compiler error

Related Questions

CommonDialogs control is visible at runtime cell alignment property can be used to align the cells with different… In runtime it is not possible to change the form size. Say there is a string "Ramcharan"; when someone using Mid() function like… In case of visual basic, IDE means : By default 'Dim myvar' this statement: Sorted property of list box control is a design time property and cannot… Time() function is used to recover date & time. It is possible to declare 'Dynamic Array' in visual basic. It is possible to change the shortcut key assigned to any menu for accessing… The fundamental property of RichTextBox control is You can get a dropdown list and as well as can add some text directly… Which property of list box control reports the number of selected items. It is possible in visual basic to specifying array limit like from 1 to… You can get the ASCII value of any character or number by using The default startup object can not be changed in a project Suppose there is a data control named data1. What will be the effect if… Sort is a method by which elements can be sorted in flexgrid control In visual basic the default unit is : In visual basic you can draw something in List count property returns total number of items in list box control. What will be the output when the statements below will execute :Dim a… Redim statement is used to : when using 'do until-loop' statement as stated belowI=10Do until I>5Print… Data1.Recordset.FindFirst "State=NY"The above code will find the record… Currency variable stores fixed point numbers with : It is possible to load a MDI form without any childform. Flag property is used to adjust the function of each common dialog box Terminate is a valid event in form operation To break a loop abnormally when satisfying a condition, we can use