Category: For Loops

CLAD 01-21

CLAD 01-21

What is the value in Shift Register Answer after the following code has executed?

  1. 16
  2. 24
  3. 32
  4. 10

CLAD 02-39

CLAD 02-39

Which combination of words correctly completes the following statement?

The _________________ indicates the total number of times the loop will execute and the ______________ returns the number of times the loop has executed minus one.

  1. count terminal, ; conditional terminal, .
  2. conditional terminal, ; iteration terminal, .
  3. count terminal, ; iteration terminal, .
  4. conditional terminal, ; count terminal, .

CLAD 03-35

CLAD 03-35

Which of the following statements is true about the iteration terminal ?

  1. It returns the number of times the loop has executed.
  2. It returns the number of times the loop has executed, plus one.
  3. It returns the number of times the loop has executed, minus one.
  4. It returns a constant number.

CLAD 03-26

CLAD 03-26

Under which of the following conditions does a For Loop stop executing?

  1. When a true value is present at the conditional terminal and the conditional terminal is .
  2. When the value of the iteration terminal, , is one less than the value of the count terminal, .
  3. When the value of the iteration terminal, , is one more than the value of the count terminal, .
  4. None of the above.

CLAD 03-08

CLAD 03-08

Which of the following terminals controls how many times a For Loop will execute?

CLAD 04-39

CLAD 04-39

Which of the following terminals controls how many times a For Loop will execute?

CLAD 04-22

CLAD 04-22

Which of the following graphs matches the result in Comparison Values after the following code has executed?

CLAD 04-06

CLAD 04-06

What is the result in Array after the following code has executed?

  1. A 1-D array of {1, 4, 3, 2, 1, 0}
  2. A 1-D array of {1, 8, 0, 1, 2, 3, 4, 6, 2}
  3. A 1-D array of {1, 4, 3, 2, 1, 0, 8, 6, 2}
  4. A 1-D array of {1, 8, 0, 1, 2, 2, 9}

CLAD 03-22

CLAD 03-22

What is the value in Shift Register Indicator after the following code has executed?

  1. 16
  2. 24
  3. 32
  4. 10
Top