Premium Essay

Afdsfdsaf

In:

Submitted By peasyrawlins
Words 1339
Pages 6
1. A program can be made of only one type of control structure. You cannot combine structures.
2. A single alternative decision structure tests a condition and then takes one path if the condition is true, or another path if the condition is false.
3. A decision structure can be nested inside another decision structure.
4. A compound Boolean expression created with the AND operator is true only when both sub-expressions are true.
5. A controlled loop uses a true/false condition to control the number of times that it repeats.
6. A controlled loop repeats a specific number of times.
7. Each repetition of a loop is known as a(n) .

8. The While loop is a type of loop.
False

False

True

True

condition

count iteration pretest
19. This statement causes a function to end and sends a value back to the part of the program that called the function.
20. This is a design tool that describes the input, processing, and output of a function.
21. This type of of function returns either true or false.
22. This is an example of a data type conversion function.
23. This type of error occurs when you try to assign a value of one data type to a variable of another data type.
24. This is a string inside of a another string.
Return

IPO chart

Boolean

toReal

type mismatch error

substring
9. The Do-While loop is a type of loop. posttest 25. accumulator A variable that you use to gather or accumulate values.
10. The For loop is a type of loop. pretest

26. counted loop A loop for which the number of

11. A(n) loop has no way of ending and repeats until the program is interrupted.
12. A loop always executes at least once.
13. A(n) variable keeps a running total.
14. A(n) is a special value that signals when there are no more

Similar Documents