Shared Flashcard Set

Details

Intro Prgrm Logic Quiz 5
Chapter 5
13
Computer Science
Undergraduate 2
01/27/2017

Additional Computer Science Flashcards

 


 

Cards

Term
If a For loop’s increment is positive, then the body of the loop will not be executed if the initial value is __________ _________ the limiting value.
Definition
more than
Term
For readability, most programs __________ the body of a loop.
Definition
indent
Term
If the increment of a For loop is negative, then the body of the loop will not be executed if the initial value is ________ than the limit value.
Definition
less
Term
A loop that is executed a fixed number of times, where that number is known before entering the loop for the first time, is known as a(n) __________ __________ loop.
Definition
counter controlled
Term
One way to force a loop to end is to have the user enter a special item, called a(n) ___________ __________ which acts as a signal that input is complete.
Definition
sentinel value
Term
If a loop contains a test condition that can never be met, it is called a(n) __________ loop.
Definition
infinite
Term
A variable that keeps track of the number of passes through a loop is known as a(n) __________.
Definition
counter
Term
To __________ data means to ensure that the data are in the proper range.
Definition
validate
Term
If Number1 = 19.86 and Number2 = 2.94 then:

Int(Number1 + Number2) = __________. .
Definition
22
Term
When a loop counter is set to its first value, it is said to be __________.
Definition
initialized
Term
The number of passes through a loop is known as the number of loop __________.
Definition
iterations
Term
If Number1 = 12.2 and Number2 = 13.3, the expression

Int(Ceiling(Number1) + Ceiling(Number2))

evaluates to __________..
Definition
27
Term
If Number1 = 19.86 and Number2 = 2.94, then:

Int(Number1) + Int(Number2) = __________.
Definition
21
Supporting users have an ad free experience!