Assume that i = 1, j = 2, k = 3 and m = 2. What does each of the following statements print?

```
a) cout << (i == 1) << endl;
b) cout << (j == 3) << endl;
c) cout << (i >= 1 && j < 4) << endl;
d) cout << (m <= 99 && k < m) << endl;
e) cout << (j >= i || k == m) << endl;
f) cout << (k + m < j || 3 - j >= k) << endl;
g) cout << (!m ) << endl;
h) cout << (!(j - m)) << endl;
i) cout << (!(k > m)) << endl;
```

a) 1.
b) 0.
c) 1.
d) 0.
e) 1.
f) 0.
g) 0.
h) 1.
i) 0.

Computer Science & Information Technology

You might also like to view...

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

1. The final modifier is included before the definition of the method, then the method can be redefined in a derived class. 2. Java uses late binding with private methods, methods marked final, or static methods.

Computer Science & Information Technology

_________________ is how information is retrieved from a database.

a) Assessing b) Interceding c) Querying d) Altering e) Removing

Computer Science & Information Technology