Filters
Question type

Study Flashcards

A list box should contain a minimum of ____ item(s) .


A) two
B) three
C) four
D) five

E) A) and D)
F) A) and C)

Correct Answer

verifed

verified

B

Explain the difference between using the keywords While and Until within a Do...Loop statement.

Correct Answer

verifed

verified

The keyword While is used in a looping c...

View Answer

In a pretest loop,the evaluation of the condition occurs after the instructions within the loop are processed.

A) True
B) False

Correct Answer

verifed

verified

You can use either the SelectedItem or ____ property to determine whether an item is selected in a list box.


A) Selection
B) SelectedIndex
C) ItemChoice
D) Items

E) A) and D)
F) None of the above

Correct Answer

verifed

verified

You should use a ____ control to provide keyboard access to a list box.


A) radio button
B) text
C) check box
D) label

E) A) and B)
F) B) and C)

Correct Answer

verifed

verified

A unique number called a(n) ____ identifies each item in a collection.


A) counter
B) index
C) accumulator
D) tracker

E) A) and B)
F) All of the above

Correct Answer

verifed

verified

What is a counter? What does it mean to initialize and update a counter in a program?

Correct Answer

verifed

verified

A counter is a numeric variable used for...

View Answer

Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations.


A) Money
B) Monetary
C) Finance
D) Financial

E) None of the above
F) B) and C)

Correct Answer

verifed

verified

Which of the following statements selects the "blue" item,which appears fourth in the lstColor control?


A) lstColor.SelectedIndex = 3
B) lstColor.SelectedIndex = 4
C) lstColor.SelectedItem = 3
D) lstColor.SelectedItem = 4

E) None of the above
F) A) and B)

Correct Answer

verifed

verified

The symbol used to represent a loop condition on a flowchart is the ____ symbol.


A) diamond
B) rectangle
C) hexagon
D) parallelogram

E) A) and B)
F) C) and D)

Correct Answer

verifed

verified

Adding increments of a negative number is referred to as ____.


A) decrementing
B) initializing
C) deprocessing
D) negating

E) All of the above
F) B) and D)

Correct Answer

verifed

verified

The strCode variable contains an uppercase letter.Write two different Do...Loop clauses that process the loop instructions as long as the value in the strCode variable is either A or B.Use the Until keyword in the first clause,and use the While keyword in the second clause.

Correct Answer

verifed

verified

Do Until strCode <> "A" AndAlso strCode <> "B" Do While strCode = "A" OrElse strCode = "B"

The repetition programming structure is used to make decisions in a program.

A) True
B) False

Correct Answer

verifed

verified

False

In either pretest or posttest loops,the controlling condition is evaluated with each repetition.

A) True
B) False

Correct Answer

verifed

verified

Write a pretest loop that adds together the integers 2,4,6,8,10,12,14,16,18,and 20.Use the intNum variable to keep track of the integers.Store the result in the intResult variable (which contains the number 0).Use the For...Next statement.

Correct Answer

verifed

verified

For intNum As Intege...

View Answer

Write a pretest loop that adds together integers from 1 to 50.Use the intNumber variable (which contains the number 1)to keep track of the integers.Store the result in the intResult variable (which contains the number 0).Use the Do...Loop statement and the While keyword.

Correct Answer

verifed

verified

Do While intNumber <...

View Answer

The loop created by the For...Next statement is a ____ loop.


A) posttest
B) pretest
C) selection
D) sequential

E) None of the above
F) B) and D)

Correct Answer

verifed

verified

The following sample of code contains errors. Rewrite the incorrect statements to correct all errors. -'fill list boxes with values for men's pant sizes for 'pant waist and pant length For intWaist As Double = 28 to 46 lstWaist.Items(intWaist.ToString("N0")) Next intWaist SelectedItem = "28" For intLength As Integer = 26 to 36 Step .5 lstLength.Items.Add(dblLength.ToString("N1")) Next dblLength lstLength.SelectedIndex = "26"

Correct Answer

verifed

verified

'fill list boxes with values for men's p...

View Answer

You can delay program execution using the ____ method.


A) Delay
B) Rest
C) Sleep
D) Break

E) C) and D)
F) A) and D)

Correct Answer

verifed

verified

What is a counter-controlled loop and when is it used in a program? What statement provides the most efficient way to write a counter-controlled loop?

Correct Answer

verifed

verified

A counter-controlled loop is a loop whos...

View Answer

Showing 1 - 20 of 60

Related Exams

Show Answer