Services
Discover
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Programming with Microsoft Visual Basic
Exam 6: The Repetition Structure
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Short Answer
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.
Question 2
True/False
The repetition programming structure is used to make decisions in a program.
Question 3
Multiple Choice
A list box should contain a minimum of ____ item(s) .
Question 4
Short 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.
Question 5
Multiple Choice
The loop created by the For...Next statement is a ____ loop.
Question 6
Multiple Choice
You can delay program execution using the ____ method.
Question 7
Essay
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"
Question 8
Multiple Choice
Adding increments of a negative number is referred to as ____.
Question 9
Essay
Explain the difference between using the keywords While and Until within a Do...Loop statement.
Question 10
True/False
In either pretest or posttest loops,the controlling condition is evaluated with each repetition.
Question 11
Multiple Choice
Which of the following statements selects the "blue" item,which appears fourth in the lstColor control?
Question 12
Essay
What is a counter? What does it mean to initialize and update a counter in a program?
Question 13
Multiple Choice
Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations.
Question 14
Multiple Choice
You should use a ____ control to provide keyboard access to a list box.
Question 15
Multiple Choice
You can use either the SelectedItem or ____ property to determine whether an item is selected in a list box.
Question 16
Multiple Choice
A unique number called a(n) ____ identifies each item in a collection.
Question 17
Essay
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.