An ordered set of instructions. It reads input, follows rules, and produces output.
Workspace
Visual Basic
dotnet business apps automation and readable event driven code
Definition first
What Visual Basic means
Visual Basic is a programming language for writing exact instructions, often used for dotnet business apps automation and readable event driven code. Start with one mental model: input goes through steps and becomes output.
Program.vbRun dotnet runHabit Name events clearly and keep business rules out of UI handlersA value is data. A variable is the name you use to hold and reuse that data.
A named piece of work. It takes input, does one job, and can return a result.
.NET SDK is the place that actually runs code from Program.vb.
First readable code
Program output
entry point output syntax Console.WriteLineConsole.WriteLine(42)
Output 42Language lineage
Visual Basic family tree
See where Visual Basic comes from, which languages feel close, and what to learn next.
Windows business tools, forms, and legacy automation
Zero base path
Question bank
Search before practice
Pick a stage or search across the open programming bank. Jump straight to the matching drill.
Visual Basic practice 1
Visual Basic question 1. Choose the statement that matches printing a value.
Visual Basic practice 2
Visual Basic question 2. Choose the statement that matches naming a value.
Visual Basic practice 3
Visual Basic question 3. Choose the statement that matches reusable function.
Visual Basic practice 4
Visual Basic question 4. Choose the statement that matches basic collection.
Visual Basic practice 5
Visual Basic question 5. Choose the statement that matches printing a value.
Visual Basic practice 6
Visual Basic question 6. Choose the statement that matches naming a value.
Visual Basic practice 7
Visual Basic question 7. Choose the statement that matches reusable function.
Visual Basic practice 8
Visual Basic question 8. Choose the statement that matches basic collection.
Visual Basic practice 9
Visual Basic question 9. Choose the statement that matches printing a value.
Visual Basic practice 10
Visual Basic question 10. Choose the statement that matches naming a value.
Visual Basic practice 11
Visual Basic question 11. Choose the statement that matches reusable function.
Visual Basic practice 12
Visual Basic question 12. Choose the statement that matches basic collection.
Visual Basic practice 13
Visual Basic question 13. Choose the statement that matches printing a value.
Visual Basic practice 14
Visual Basic question 14. Choose the statement that matches naming a value.
Visual Basic practice 15
Visual Basic question 15. Choose the statement that matches reusable function.
Visual Basic practice 16
Visual Basic question 16. Choose the statement that matches basic collection.
Visual Basic practice 17
Visual Basic question 17. Choose the statement that matches printing a value.
Visual Basic practice 18
Visual Basic question 18. Choose the statement that matches naming a value.
Multiple choice
Visual Basic practice 1
Visual Basic question 1. Choose the statement that matches printing a value.
Console.WriteLine(42)
Reference
Patterns for Program.vb
dotnet runentry point output syntax Console.WriteLine
Program output
Console.WriteLine(42)
- Run the smallest file first
- Print one known value
- Check the output before adding more code
variables assignment types Dim
Values and names
Dim total As Integer = 42 Console.WriteLine(total)
- Give values readable names
- Keep one idea per line while learning
- Trace the value before changing it
function collection Array
Functions and collections
Function Add(a As Integer, b As Integer) As Integer
Return a + b
End Function
Dim scores As Integer() = {40, 2}
Console.WriteLine(scores.Length)- Keep functions small
- Return useful values
- Use the common collection before reaching for frameworks