Exam 6: The Repetition Structure
Exam 1: An Introduction to Visual Basic 201544 Questions
Exam 2: Designing Applications60 Questions
Exam 3: Using Variables and Constants60 Questions
Exam 4: The Selection Structure60 Questions
Exam 5: More on the Selection Structure58 Questions
Exam 6: The Repetition Structure60 Questions
Exam 7: Sub and Function Procedures60 Questions
Exam 8: String Manipulation60 Questions
Exam 9: Arrays60 Questions
Exam 10: Structures and Sequential Access Files60 Questions
Exam 11: Classes and Objects60 Questions
Exam 12: Web Applications60 Questions
Exam 13: Working With Access Databases and Linq60 Questions
Exam 14: Access Databases and SQL60 Questions
Select questions type
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.
Free
(Short Answer)
4.9/5
(31)
Correct Answer:
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.
Free
(True/False)
4.8/5
(41)
Correct Answer:
False
A list box should contain a minimum of ____ item(s).
Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
B
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.
(Short Answer)
4.8/5
(41)
The loop created by the For...Next statement is a ____ loop.
(Multiple Choice)
4.7/5
(37)
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"
(Essay)
4.9/5
(34)
Adding increments of a negative number is referred to as ____.
(Multiple Choice)
4.9/5
(45)
Explain the difference between using the keywords While and Until within a Do...Loop statement.
(Essay)
4.9/5
(40)
In either pretest or posttest loops,the controlling condition is evaluated with each repetition.
(True/False)
4.8/5
(39)
Which of the following statements selects the "blue" item,which appears fourth in the lstColor control?
(Multiple Choice)
4.8/5
(36)
What is a counter? What does it mean to initialize and update a counter in a program?
(Essay)
4.7/5
(41)
Visual Basic's ____ class contains many methods that your applications can use to perform financial calculations.
(Multiple Choice)
4.8/5
(32)
You should use a ____ control to provide keyboard access to a list box.
(Multiple Choice)
4.9/5
(38)
You can use either the SelectedItem or ____ property to determine whether an item is selected in a list box.
(Multiple Choice)
4.9/5
(41)
A unique number called a(n)____ identifies each item in a collection.
(Multiple Choice)
4.8/5
(33)
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.
(Essay)
4.8/5
(28)
The symbol used to represent a loop condition on a flowchart is the ____ symbol.
(Multiple Choice)
5.0/5
(38)
In a pretest loop,the evaluation of the condition occurs after the instructions within the loop are processed.
(True/False)
4.9/5
(27)
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?
(Essay)
4.9/5
(43)
Showing 1 - 20 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)