Answer the following statements true (T) or false (F)
1) A loop control variable is a variable whose value controls the data type of the repetition condition.
2) A counting loop is a data input loop that exits on entry of a predetermined value.
3) A sentinel loop is a repetition structure that executes a predetermined number of times and is controlled by a counter.
4)Assuming the following declarations,
```
int data;
ifstream infile ("program.txt", ios::in);
```
as long as the extraction operation
```
infile >> data;
```
finds values in program.txt that are the expected data type for data, the value of
```
infile.fail()
```
will be false.
5) The body of a do-while loop is always executed at least one time.
1) F
2) F
3) F
4) T
5) T
You might also like to view...
What is a hash table?
a. A key-value data structure b. Another name for a linked list c. A sorting algorithm d. A string matching algorithm
Clear GIFs are ________
(a) Cookies. (b) ID cards. (c) Click-through advertisements. (d) Web bugs.
The ____ on the Photoshop Tools panel is used to move or make other changes to selections.
a. Selection Tool b. Move Tool c. Check Tool d. none of the above
IrDA links are direct ______________ and are susceptible to interference.
Fill in the blank(s) with the appropriate word(s).