Exam 4: Repetition Structures

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

The acronym __________ refers to the fact that the computer cannot tell the difference between good data and bad data.

(Short Answer)
4.7/5
(30)

The while loop is known as a(n)__________ loop because it tests the condition before performing an iteration.

(Short Answer)
4.9/5
(31)

A(n)__________ is a special value that marks the end of a sequence of items.

(Short Answer)
4.8/5
(40)

Reducing duplication of code is one of the advantages of using a loop structure.

(True/False)
4.9/5
(32)

What will be displayed after the following code is executed? total =0 =0 for count in range (1,4): (1,4): \quad total += += count print (total)

(Multiple Choice)
4.9/5
(34)

The first operation is called the __________ and its purpose is to get the first input value that will be tested by the validation loop.

(Multiple Choice)
4.9/5
(40)

A(n)___________ structure causes a set of statements to execute repeatedly.

(Short Answer)
4.9/5
(41)

In order to draw an octagon with turtle graphics,you would need a loop that iterates eight times.

(True/False)
4.8/5
(38)

Which of the following is not an augmented assignment operator?

(Multiple Choice)
4.9/5
(36)

What are the values that the variable num contains through the iterations of the following for loop? For num in range(4):

(Multiple Choice)
4.8/5
(33)

What will be displayed after the following code is executed? What will be displayed after the following code is executed?

(Multiple Choice)
4.8/5
(35)

A(n)___________ loop usually occurs when the programmer does not include code inside the loop that makes the test condition false.

(Short Answer)
4.9/5
(39)

A good way to repeatedly perform an operation is to write the statements for the task once and then place the statements in a loop that will repeat as many times as necessary.

(True/False)
4.9/5
(39)

A(n)__________ structure is a structure that causes a statement or a set of statements to execute repeatedly.

(Multiple Choice)
4.9/5
(42)

The ___________ function is a built-in function that generates a list of integer values.

(Short Answer)
4.8/5
(29)

In Python,you would use the __________ statement to write a count-controlled loop.

(Short Answer)
4.8/5
(36)

What type of loop structure repeats the code a specific number of times?

(Multiple Choice)
4.7/5
(42)

A(n)__________-controlled loop causes a statement or set of statements to repeat as long as the condition is true.

(Short Answer)
4.8/5
(29)

__________ is the process of inspecting data that has been input into a program in order to ensure that the data is valid before it is used in a computation.

(Multiple Choice)
4.9/5
(41)

The first line in a while loop is referred to as the condition clause.

(True/False)
4.8/5
(29)
Showing 21 - 40 of 41
close modal

Filters

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