(What Prints?) Assume i = 1, j = 2, k = 3 and m = 2. What does each statement 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.
You might also like to view...
In a cout statement, which of the following will advance the output position to the beginning of the next line?
a. endl or \n b. end1 or /n c. \n or \t d. \t or \b e. \\ or \'
The SELECT ___________ wildcard operator matches all the columns in the specified table or tables.
a. * b. ? c. % d. null
Critical Thinking QuestionsCase E-1Stephan, an amateur photographer, is new to the game of analyzing the appearance of images and using Photoshop to improve the quality of his images. He has been surfing around the web looking for pointers, and has come across several new terms to add to his photography vocabulary. Stephan had always wondered what a histogram represented. What did he discover?
A. The histogram is a visual reference of every midtone and dark pixels in an image. B. Histograms allow users to choose contiguous pixels of the same hue. C. Histograms are a graph that serves as a visual reference of every pixel in an image or selection. D. The histogram is a graph showing the areas of a grayscale image that have the brightest pixels.
____ creates a new data type without actually reserving any storage locations.
A. struct {int month; int day; int year;} birth; B. struct {int month; int day; int year;} birth, current; C. struct Date {int month; int day; int year;}; D. struct Date {int month; int day; int year;} birth;