Question

1. Under what circumstances is it best to use a VBScript Select Case statement for decision-making? 2. What VBScript loo...

1. Under what circumstances is it best to use a VBScript Select Case statement for decision-making?

2. What VBScript loop structures are tested at the top? What VBScript loop structures are tested at the bottom?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

1.

When you need to check for many different cases on one variable you could create a large number of ElseIf statements, but this is actually very inefficient. Without getting to specific, it takes VBScript a great deal of computing power to check all these different ElseIf statements. Also, this kind of coding reduces human readability. Because of these problems another programming method, the Select Case statement, was created to solve this problem.

2.

Loops with the test at the top of the loop (while and for loops) are called top-driven loops.

Loops implemented with the test at the bottom (a do loop) are called bottom-driven loops.

Add a comment
Know the answer?
Add Answer to:
1. Under what circumstances is it best to use a VBScript Select Case statement for decision-making? 2. What VBScript loo...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • What is the purpose of the SELECT CASE statement? 1. The SELECT CASE statement has the...

    What is the purpose of the SELECT CASE statement? 1. The SELECT CASE statement has the functionality of an IF-THEN-ELSE statement. It is easier to write when there are multiple conditions to test. 2. The SELECT CASE statement has the functionality of an AND function. It is easier to write when there are multiple conditions to test. 3. The SELECT CASE statement loops through multiple objects in a collection. It is easier to write than a FOR EACH LOOP. 4....

  • 2. Select the best definition of ethics: A. Fairly clear-cut set of guidelines for decision making...

    2. Select the best definition of ethics: A. Fairly clear-cut set of guidelines for decision making B. Relatively unclear principles regarding what should be done C. Personal beliefs about interacting in the individual’s environment D. Relatively unclear principles regarding what is the minimum for acceptable behavior

  • Which of the decision making models below would be best to use if we want to...

    Which of the decision making models below would be best to use if we want to place more importance on one attribute relative to other attributes? Select one: a dominance b. lexicography c. satisficing d. disjunctive resolution

  • 1. Which statement best describes what a decision tree is. 1. A decision tree is a...

    1. Which statement best describes what a decision tree is. 1. A decision tree is a graphical representation of the alternatives available to a decision 2. A decision tree is a schematic representation of the alternatives available to a decision 3. A decision tree is a graphical representation of the alternatives available to a decision 4. A decision tree is a schematic representation of the alternatives available to a decision 5. None of the above. maker maker. maker and their...

  • Case Analysis: The Decision Making Process For this assignment, you will write a case analysis using,...

    Case Analysis: The Decision Making Process For this assignment, you will write a case analysis using, 3M - The First 110 Years. Write a comprehensive case analysis covering the following: 1. The context of the decision making processes, including for example the goals, activities, history or culture of the organization; the complexity and special features of the task or problem; the major stakeholders of the decisions. 2. The main phases or activities of the decision-making process, including for example the...

  • 2. Under what circumstances might it be useful for a plant to use the cyclic pathway?

    2. Under what circumstances might it be useful for a plant to use the cyclic pathway?

  • ***Please no handwriting** a. Is the transportation model an example of decision making under certainty or...

    ***Please no handwriting** a. Is the transportation model an example of decision making under certainty or decision making under uncertainty? Why? a. What is a balanced transportation model? Describe the approach you would use to solve an unbalanced model? 2.What is the minimal-spanning tree model? Give several examples of problems that can be solved using this type of model. 3.What is the maximal-flow model? What types of problems can be solved using this type of model? 4.Describe a problem that...

  • 1. In Sage 50, Under what circumstances can a business use the cash basis of the...

    1. In Sage 50, Under what circumstances can a business use the cash basis of the accounting? 2. What information must be recorded in the general journal entry window before a transaction can be posted?

  • Please answer the case questions. Do not hand write CASE: SPOUSAL RIGHTS IN DECISION MAKING Mr....

    Please answer the case questions. Do not hand write CASE: SPOUSAL RIGHTS IN DECISION MAKING Mr. Martin sustained debilitating injuries as the result of an automobile accident. He suffered severe subcortical brain damage, significantly impairing his physical and cognitive function- ing.45 His injuries left him totally paralyzed on the left side. He could not speak or eat and had no bladder or bowel control. Martin remained conscious and had some awareness of his surroundings. He could communicate to a very...

  • 4 months ago Anonymous using the Financial Statement for Decision Making How would a creditor use...

    4 months ago Anonymous using the Financial Statement for Decision Making How would a creditor use the financial statements to decide whether to extend credit to a c ompany? What would the creditor look for in h of the financial statements is the most important? Why? Reply

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT