Visual Basic Questions Test! Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Tcarteronw
T
Tcarteronw
Community Contributor
Quizzes Created: 38 | Total Attempts: 32,005
| Attempts: 1,499 | Questions: 10
Please wait...
Question 1 / 10
0 %
0/100
Score 0/100
1. The ______ symbol is used for concatenation.

Explanation

The ampersand symbol (&) is used for concatenation in programming. Concatenation is the process of combining two or more strings together. In many programming languages, the ampersand is used to join strings or variables together to create a new string. For example, in JavaScript, the ampersand is used with the "+" operator to concatenate strings. This allows programmers to combine different pieces of text or variables to form a single string value.

Submit
Please wait...
About This Quiz
Visual Basic Questions Test! Quiz - Quiz


Are you familiar with Visual Basic? Do you believe you can beat this "Visual Basic Questions Test?" Take the quiz then! Microsoft's Visual Basic provides the latest updates... see moreto the Microsoft Visual Studio Development System. It is one of the highly popular tools for obtaining applications on Windows. It allows you to assemble the established applications as executable files. Take this test and discover how much you know about visual basic. Go for it! see less

2. If you would like to change the background color on a form, you must change the form's _____________ property.

Explanation

To change the background color on a form, you need to modify the form's BackColor property. This property allows you to specify the desired color for the background of the form. By changing the BackColor property, you can customize the visual appearance of the form and make it more visually appealing or suitable for your application's design.

Submit
3. As a program runs, the insertion point can be moved from control to control.  In order to reset the focus back in a text box named name textbox, you should use the code _______.

Explanation

To reset the focus back to the text box named "name textbox", the correct code to use is "txtName.Focus()". This code will set the insertion point to the specified text box, allowing the user to continue typing or interacting with it. The other options, "txtName = Focus()", "txtName = Top()", and "txtName.First()", are not valid syntax and will not achieve the desired result.

Submit
4. The property used to display information in a TextBox is _______.

Explanation

The property used to display information in a TextBox is "Text". This property allows the user to input or display text in the TextBox control. It is commonly used to get or set the text content of the TextBox.

Submit
5. Which of the following is not an object?

Explanation

All of the options listed (Form, GroupBox, and RadioButton) are objects in programming. Objects are instances of classes that have properties and methods. They can be used to represent and manipulate data in a program. Therefore, the correct answer is that all of the options are objects.

Submit
6. Create keyboard access on an object by ______________ in the Text property.

Explanation

To create keyboard access on an object, you can use an ampersand (&) in the Text property. This allows the user to access the object by pressing the Alt key along with the underlined letter in the object's text label. For example, if you set the Text property of a button to "Save & Exit", the user can press Alt+S to activate the button.

Submit
7. Setting the TabIndex of a control to 0 (zero) will _______.

Explanation

Setting the TabIndex of a control to 0 (zero) will set the focus on this control when the program begins running.

Submit
8. Which of the following statements will clear the contents of a text box named message textbox?

Explanation

All of the given statements will clear the contents of a text box named message textbox. The first statement `txtMessage.Text = ""` sets the text property of the textbox to an empty string, effectively clearing the contents. The second statement `txtMessage.Clear()` is a method that clears the contents of the textbox. The third statement `txtMessage.Text = String.Empty` also sets the text property to an empty string. Therefore, all of these statements will clear the contents of the textbox.

Submit
9. You can break a long line of code into multiple lines by ________ and then continue writing code on the next line.

Explanation

To break a long line of code into multiple lines, you can add a blank space and an underscore ( _ ) at the end of the line. This allows you to continue writing the code on the next line without any syntax errors.

Submit
10. You can vertically align a group of controls on your form by first selecting all of the controls to be aligned and then _______.

Explanation

To vertically align a group of controls on a form, you need to select all of the controls and then set their Height property to the same value. This will ensure that all the controls have the same height, resulting in a vertically aligned group.

Submit
View My Results

Quiz Review Timeline (Updated): Aug 28, 2023 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Aug 28, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • May 11, 2011
    Quiz Created by
    Tcarteronw
Cancel
  • All
    All (10)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
The ______ symbol is used for concatenation.
If you would like to change the background color on a form, you must...
As a program runs, the insertion point can be moved from control to...
The property used to display information in a TextBox is _______.
Which of the following is not an object?
Create keyboard access on an object by ______________ in the Text...
Setting the TabIndex of a control to 0 (zero) will _______.
Which of the following statements will clear the contents of a text...
You can break a long line of code into multiple lines by ________ and...
You can vertically align a group of controls on your form by first...
Alert!

Advertisement