quiz Visual Basic MCQ Practice

corporate_fare Computing and Information Technology
school B.Sc. Computer Science
30 Questions
0 Completed
0 Correct
0 of 30 completed
visibility You're studying as a guest — progress isn't saved. Sign in to track progress
help Question 1
radio_button_unchecked

Who developed Visual Basic?

help Question 2
radio_button_unchecked

Which of the following statement is used to define a class in visual basic?

help Question 3
radio_button_unchecked

Which of the following extension is used to represent the project file in Visual Basic?

help Question 4
radio_button_unchecked

If you keep a variable undeclared, it is automatically taken as to which of the following data type in Visual Basic?

help Question 5
radio_button_unchecked

Which of the following applications can be developed using Visual Basic tool?

help Question 6
radio_button_unchecked

In Visual Basic, which of the following is used for coding single-alternative and dual-alternative selection structures?

help Question 7
radio_button_unchecked

What will be the output of the following Visual Basic code, If the intnumber variable is 110? If intnumber<=100 Then Intnumber=intnumber*2; Else Intnumber=intnumber*3; EndIf

help Question 8
radio_button_unchecked

In the Visual Basic application, which of the following are listed in a properties window?

help Question 9
radio_button_unchecked

What will be the output of the following Visual Basic expression? Financial.Pmt (0.05, 3, 9000)

help Question 10
radio_button_unchecked

Which of the following is commonly used to perform an immediate action when clicked in Visual Studio?

help Question 11
radio_button_unchecked

In the following Visual Basic code, what will be in msg, if str contains &#8220;visual basic&#8221;? Dim str as String Dim msg as String If str.toUpper=”VISUAL BASIC” msg=”VB.Net” Else msg=”Not Visual Basic” EndIf

help Question 12
radio_button_unchecked

Which of the following displays the list of projects contained in the Visual Basic current solution?

help Question 13
radio_button_unchecked

Which of the following method is used to sort an array in visual basic?

help Question 14
radio_button_unchecked

Which of the following is the caption part for the following Visual Basic command? MessageBox.Show(&quot;Delete Visual Basic?&quot;,&quot;VB.Net&quot;,MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button2).

help Question 15
radio_button_unchecked

Which of the following instruction tells the computer to close the current form in Visual Basic?

help Question 16
radio_button_unchecked

Object respond to an event by writing __________

help Question 17
radio_button_unchecked

What output will be returned if the following Visual Basic code is executed? strVisualBasic = &quot;Sanfoundry, VB.Net&quot; intCharIndex = strVisualBasic.IndexOf(&quot;VB&quot;)

help Question 18
radio_button_unchecked

What will be the output of the following Visual Basic code? Dim intScores As Integer = {78, 83, 75, 90} Array.Reverse(intScores)

help Question 19
radio_button_unchecked

Which of the following is used to write a stream of characters in Visual Basic?

help Question 20
radio_button_unchecked

What is the value of len in the following Visual Basic code? Dim strVB() As String = {&quot;Sanfoundry&quot;, &quot;Visual Basic&quot;, &quot;VB.Net&quot;, &quot;Visual Studio&quot;} Dim len As Integer len = strVB.Length()

help Question 21
radio_button_unchecked

Which of the following is the default name assigned to the label control in Visual Basic?

help Question 22
radio_button_unchecked

Which of the following toolbox is used to include an image on the Visual Basic form?

help Question 23
radio_button_unchecked

In visual basic language what are the rules of a programming language called?

help Question 24
radio_button_unchecked

What happens when both the minimize box and maximize box property are set to false in Visual Basic?

help Question 25
radio_button_unchecked

In Visual Basic, which of the following keyword tells the computer to pass the variable's address rather than its contents?

help Question 26
radio_button_unchecked

Which of the following forces a literal constant to assume a data type other than the one its form indicates?

help Question 27
radio_button_unchecked

Which of the following is used to display a message box in Visual Basic?

help Question 28
radio_button_unchecked

In Visual Basic, which of the following method converts a string to a number?

help Question 29
radio_button_unchecked

Which of the following is used to convert a number from one data type to another in visual studio?

help Question 30
radio_button_unchecked

Which of the following type of constant is ControlChars.NewLine constant?