Exam 5: Lists and Loops

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

How many times will the message I love Visual Basic be displayed? Dim intCount As Integer = 0 Do LstOutPut.Items.Add"I love Visual Basic") IntCount += 1 Loop While intCount > 10

Free
(Multiple Choice)
4.9/5
(34)
Correct Answer:
Verified

B

How can you cause scroll bars to appear in a ListBox at runtime?

Free
(Multiple Choice)
4.8/5
(41)
Correct Answer:
Verified

B

Which of the following controls and methods provides a simple way to gather input from the user at runtime without placing a text box on a form?

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

D

The _method adds a new entry as the last item in a ListBox.

(Multiple Choice)
4.8/5
(36)

The entries in a ListBox are stored in the _property.

(Multiple Choice)
4.8/5
(41)

The SelectedItem property of a ListBox .

(Multiple Choice)
4.8/5
(40)

In the following statement that begins a For…Next loop, what is the purpose of the Step clause? For intX = 1 to 100 Step 5

(Multiple Choice)
4.9/5
(34)

A ToolTip is a ____that allows the programmer to create a small popup message that displays when the user places the mouse over a control.

(Multiple Choice)
4.8/5
(39)

A ___is a loop inside another loop.

(Multiple Choice)
4.8/5
(36)

Which standard Visual Basic function returns the periodic payment amount for a loan?

(Multiple Choice)
4.8/5
(36)

All of the following are valid ComboBox style properties, except

(Multiple Choice)
4.8/5
(32)

The InputBox function always returns a _value.

(Multiple Choice)
4.7/5
(43)

Which of the following code fragments calculates the average of 5 numbers input with an input box, and displays the result in lblResult?

(Multiple Choice)
4.9/5
(42)

What value is assigned to lblSum.Text by the following code ? Dim intTotal As Integer = 0 For intOuter = 1 To 3 For intInner = intOuter To 3 IntTotal += intOuter * intInner Next Next LblSum.Text = intTotal.ToString)

(Multiple Choice)
4.7/5
(38)

Which type of loop repeats as long as its loop condition remains True?

(Multiple Choice)
4.8/5
(40)

Which of the following statements will assign a random number between 1 and 50 inclusive to intNum?

(Multiple Choice)
5.0/5
(30)

Which code example will calculate the number of checked items in a CheckedListBox named clbMovieNames and store the number in intCheckedMovies?

(Multiple Choice)
4.8/5
(40)

Which property determines the amount of time, in milliseconds, that elapses between the user pointing the mouse at a control and the tool tip text's appearance?

(Multiple Choice)
4.8/5
(38)

The _method can be used to place a new item at any position in a ListBox.

(Multiple Choice)
4.8/5
(28)

What will be the final value of intCount? Dim intCount As Integer = 3 Do IntCount += 6 Loop While intCount < 20

(Multiple Choice)
4.9/5
(28)
Showing 1 - 20 of 36
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)