Prefixes
Properties
True or False
Code Writing
Program Design
100

Prefix for a textbox

txt

100

What does the Text property control

What the user sees (the displayed text)

100

Object names should be completely lowercase.

False (use camelCase for prefixes).

100

Write the line of code to show a message box that says “Hello.”

MsgBox("Hello")

100

What property changes the window’s title?

The Text property of the form.

200

Prefix for a command button

btn

200

What does the Name property control?

How the programmer refers to the object in code.

200

Labels can display text but users cannot type into them.

True

200

What line of code closes the program?

End

200

Which control lets you pick only one option?

Option or radio

300

Prefix for a groupbox

grp

300

What's a good Name for a textbox where a user enters their pet's name

txtPetName

300

Textboxes can hold multiple lines by default.

False. Can only hold one line, unless you change Multiline property

300

Write the exact code for an Exit button with the message “Goodbye!”

MsgBox("Goodbye!")

End

300

Which control lets you pick multiple options?

Checkboxes

400

Prefix for a label

lbl

400

What would a good Text be for a textbox where a user enters their pet's name?

Many options, but the best would be "".
400

Option buttons and checkboxes are the same.

False (option/radio = one choice, checkbox = multiple).

400

Debug this line of code: MsgBox(Have a great day!)

Missing quotation marks

400

Which control is best for displaying text instructions that the user cannot edit?

Label
500

Prefix for an option (radio button)

rdo

500

Why is it important to give objects meaningful names?

So your code is readable to you and others.

So it’s easier to write and debug (you don’t have to guess what TextBox1 means).

So it’s faster to find the right control when your program has many objects.

So your program is organized and professional, like real-world coding standards.

500

The Exit button requires a prefix of btn

True

500

Debug this code:

Private Sub btnExit_Click(...) Handles btnExit.Click

    MsgBox("Goodbye!")

    Close()

End Sub


Close() should be End

500

What property changes the background color of a form?

BackColor