Answer the following statements true (T) or false (F)

1) The loop repetition condition of a for statement is tested before each iteration.
2) If x and y are type int variables, the following code fragments are equivalent.
```
x = ++y; x = y + 1;
cout << x << y; cout << x << y;
```
3) If x and y are type int variables, the following code fragments are equivalent.
```
x = x * y + 10; x *= y + 10;
```
4) If the value of x is 6, the statement
```
cout << x++ <<; endl;
```
displays 6 and then increments x.
5) The following statement
```
cout << setiosflags( ios::fixed );
```
instructs the stream not to use scientific notation.

1) T
2) F
3) F
4) T
5) T

Computer Science & Information Technology

You might also like to view...

When you paste data from Word into PowerPoint, PowerPoint is referred to as the destination file

Indicate whether the statement is true or false

Computer Science & Information Technology

A placeholder for data

a. Header row b. Field c. Alternative text

Computer Science & Information Technology