Services
Discover
Homeschooling
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
Quiz 6: The Repetition Structure
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 41
Essay
Explain the purpose of priming and update reads in a program.
Question 42
Essay
What is an accumulator? What does it mean to initialize and update an accumulator in a program?
Question 43
Short Answer
Write two different Do...Loop clauses that stop the loop when the value in the intAmount is less than or equal to the value in the intLimit variable.Use the Until keyword in the first clause,and use the While keyword in the second clause.
Question 44
Essay
Explain the difference between a looping condition and a loop exit condition.
Question 45
Essay
What is the Refresh method? Write the syntax for this method.
Question 46
Essay
What is a list box? Provide two of the Windows standards for its use on a form.
Question 47
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 48
Essay
The following sample of code contains errors. Rewrite the incorrect statements to correct all errors. -An application allows the user to enter a salary amount.The application should then calculate and display the possible bonuses based on that salary,using bonus rates of 3-6% in increments of .5%. ' displays bonus amounts using rates ' of 3% - 6% in increments of .5% Dim dblSalary As Decimal Dim decBonus As Decimal TryParse(txtSalary.Text,decSalary) lblBonus.Text = String.Empty For decRate As Decimal = 0.03 To 0.06 Step 0.5 decBonus = decSalary + decRate lblBonus.Text = lblBonus.Text & decRate.ToString("P1")& " " & decBonus.ToString("C2")& ControlChars.NewLine Next decRate
Question 49
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.