Search⌘ K

Quiz

Explore your comprehension of foundational C++ programming concepts including output statements, comment usage, and code formatting. This quiz helps reinforce what you have learned and prepares you to progress to variables and constants in the next chapter.

We'll cover the following...

Quiz

1.

What is the output of the following code?

int main() {
  cout << "*****" << endl;
  cout << "***" ;
  cout << "*****" << endl;
  cout << "***" ;
}
A.

*****

***

*****

***

B.

*****

********

***

C.

********

*****

***

D.

*****

***

********


1 / 5

šŸŽ‰Congratulations! You have ...