Exam 6: The Repetition Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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.9/5
(35)

In a nested repetition structure,one loop,referred to as the ____ loop,is placed entirely within another loop,called the ____ loop.

(Multiple Choice)
4.9/5
(38)

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

(Multiple Choice)
4.9/5
(43)

Explain the purpose of priming and update reads in a program.

(Essay)
4.8/5
(40)

In a For...Next statement,if stepValue is positive,then startValue must be ____ endValue for the loop instructions to be processed.

(Multiple Choice)
4.7/5
(27)

The assignment statement that updates a counter or an accumulator is placed within the loop in a procedure.

(True/False)
4.9/5
(33)

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

(True/False)
4.8/5
(33)

A ____ structure is also referred to as a loop.

(Multiple Choice)
4.8/5
(41)

Which of the following statements pauses program execution for 3 seconds? Which of the following statements pauses program execution for 3 seconds?

(Not Answered)
This question doesn't have any answer yet
Ask our community

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

(Multiple Choice)
4.9/5
(27)

Each time either the user or a statement selects an item in a list box,the list box's SelectedValueChanged and ____ events occur.

(Multiple Choice)
4.8/5
(37)

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

(True/False)
4.8/5
(36)

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

(Essay)
4.8/5
(31)

The following code in a different program is not working properly.The message should display the value of the intCounter variable if the intCounter variable contains a balance that is less than or equal to 15.The message does not display.What mistake did the previous programmer make? The following code in a different program is not working properly.The message should display the value of the intCounter variable if the intCounter variable contains a balance that is less than or equal to 15.The message does not display.What mistake did the previous programmer make?

(Multiple Choice)
4.9/5
(32)

The following code is not working properly.The message should display four times.What needs to be changed for the code to work properly? The following code is not working properly.The message should display four times.What needs to be changed for the code to work properly?

(Not Answered)
This question doesn't have any answer yet
Ask our community

A(n)____ is a numeric variable used for adding together something.

(Multiple Choice)
4.9/5
(27)

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

(Multiple Choice)
4.7/5
(31)

Like the condition in a selection structure,the condition in a loop must evaluate to either True or False.

(True/False)
4.8/5
(29)

Your supervisor wants you to change the Do...Loop in the previous problem to a For...Next loop.He also wants the message to display only three times.Which of the following For clauses should you use?

(Multiple Choice)
4.8/5
(30)

Explain the difference between a pretest loop and a posttest loop.

(Essay)
4.7/5
(33)
Showing 21 - 40 of 59
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)