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...

How can the programmer determine the number of bytes reserved for a datatype?

A. Use the address operator & B. Use the sizeof operator C. Use the range of operator D. You only know when you declare one.

Computer Science & Information Technology

A database ________ is an organized group of related records that contain fields

Fill in the blank(s) with correct word

Computer Science & Information Technology

Use the CTRL + SHIFT + END keys to select all of the text in a document.

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

Computer Science & Information Technology

An enhanced for loop is also called a(n) ____ loop.

A. for-for B. for-each C. then-for D. if-for

Computer Science & Information Technology