What does the following program print?

```
// What does this program print?
#include
using namespace std;

int main()
{
int count = 1; // initialize count

while ( count <= 10 ) // loop 10 times
{
// output line of text
cout << ( count % 2 ? "****" : "++++++++" ) << endl;
++count; // increment count
} // end while
} // end main
```
What will be an ideal response?


****
++++++++
****
++++++++
****
++++++++
****
++++++++
****
++++++++

Computer Science & Information Technology

You might also like to view...

Which of the following statements is false?

a. The Java API consists of packages. b. The Java API helps programmers avoid "reinventing the wheel." c. The Java API consists of import declarations. d. None of the above.

Computer Science & Information Technology

If a continue statement is placed in a do...while structure, the loop-continue test is evaluated immediately after the continue statement.

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

Computer Science & Information Technology

The exploit referred to as __________ allowed hackers to leverage vulnerability in DNS software to redirect users to sites they did not request.

a. cybersquatting. b. phishing. c. an online imposture. d. cache poisoning. e. a distributed denial of request.

Computer Science & Information Technology

You can align data evenly between the top and bottom borders of a table cell by clicking the ____ button in the Alignment group on the TABLE TOOLS LAYOUT tab.

A. Left to Right B. Center Vertically C. Center D. Top to Bottom

Computer Science & Information Technology