Visual Basic · Starter

The basics: what a thing is and what it's for.

Starter·24.1.1

Which keyword is used in Visual Basic to declare a variable?

Starter·24.1.2

What is the comment character in Visual Basic?

Starter·24.1.3

Which operator concatenates two strings in Visual Basic?

Starter·24.1.4

What does a Sub procedure return?

Starter·24.1.5

Which statement displays a simple message box to the user in Visual Basic?

Starter·24.1.6

Which loop structure repeats a block of code a fixed number of times using a counter?

Starter·24.1.7

Which keyword marks the end of an If block that spans multiple lines?

Starter·24.1.8

What is the purpose of the Select Case statement?

Starter·24.1.9

Which data type holds a simple True/False value in Visual Basic?

Starter·24.1.10

What does Option Explicit require?

Starter·24.1.11

Which statement declares a fixed-size array of 10 integers (indices 0 to 9) in Visual Basic?

Starter·24.1.12

In VB.NET, which keyword brings a namespace's types into scope without fully qualifying them?

Starter·24.1.13

Which keyword declares a procedure that returns a value?

Starter·24.1.14

What does the keyword Private mean when applied to a procedure or variable?

Starter·24.1.15

Which looping statement repeats a block as long as a condition remains true, checking the condition first?

Starter·24.1.16

What is the default parameter-passing mode for Sub/Function arguments in classic VB6?

Starter·24.1.17

Which data type is used in VB6 to hold any kind of data, including numbers, strings, or objects?

Starter·24.1.18

Which character is used to declare a line continuation in classic VB syntax?

Starter·24.1.19

What does the End keyword do inside a running VB6 program?

Starter·24.1.20

In VB.NET, which construct is used to catch and handle a runtime exception?