What is the output of the following, if it were embedded in an otherwise correct and complete program and run?
```
int x = 10;
while (x > 0)cout << x << “ ”;
x = x + 3;
}
cout << endl;
```
a) 10 13 16 19 . . .
b) The compiler detects that this will be an infinite loop, so it does not compile.
Insert lowercase be
c) This is an infinite loop. When compiled and run, it runs until machine limitations
stop it, or you get tired of it and kill the process.
d) 0 3 6 9.
a) 10 13 16 19 . . .
c) This is an infinite loop. When compiled and run, it runs until machine limitations
You might also like to view...
The figure below shows the various components that comprise the box model. Match each term below with the items numbered in the figure.
a) padding
b) margin
c) width
d) border
A compact flash card
A) Comes in only one size and type B) Is used in mobile devices as storage C) Requires batteries installed to work D) Is inserted in the motherboard
What two instances are examples when a technician might change the resolution of an LCD monitor? (Select two.)
A) When the lights are dim B) When the display is not set to the native resolution C) When a fluorescent lamp is installed D) When lasers are used instead of LEDs E) When connecting to an older projector
The scandir() function sorts the returned entries in the order in which they are stored by the operating system.
Answer the following statement true (T) or false (F)