wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Chapter 5-1: Review Questions & Exercises

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which of the following methods is used to add items to a list box?

a)

Item

b)

Add

c)

AddList

d)

ItemAdd

2.

The items in a list box belong to which collection?

a)

Values

b)

List

c)

Items

d)

ListItems

3.

A(n) _________ provides a simple way to gather input without placing a text box on a form.

a)

InBox

b)

Input

c)

GetInput

d)

InputBox

4.

An input box returns the value entered by the user as this

a)

String

b)

Integer

c)

Single

d)

Boolean

5.

Visual Basic automatically adds this to a list box when it contains more items than can be displayed.

a)

Larger list box

b)

Scroll bar

c)

Second form

d)

Message box

6.

This method erases all items from a list box.

a)

Erase

b)

Items.Remove

c)

Items.ClearItem

d)

Items.Clear

7.

A(n) ___________ displays a list of items and allows the user to selectan item from the list.

a)

combo box

b)

message box

c)

input box

d)

list box

8.

Which of the following statement will display input box?

a)

strUserInput = InputBox("Enter distance.", "Provide a Value")

b)

strUserInput = Input("Enter distance.", "Provide a Value")

c)

InputBox("Enter distance.", "Provide a Value")

d)

strUserInput = InputBox.Text

9.

Which statement will store values in the Items property with code at runtime?

a)

lstStudents.Items.Add("Sarah")

b)

lstStudents.Items.Clear()

c)

lstStudents.Items.Add = "Sarah"

d)

lstStudents.Add("Sarah")

10.

When a user click the input box's Cancel button, the function returns the string value from the input box’s text box.

a)

True

b)

False