What is displayed after line 7 is run?

```
string new1, new2;
1 string text1 = “C++”;
2 string text2 = “math”;
3 string text3 = “chocolate”;
4 stringstream ss;
5 ss << “I love” << text3 << “and” << text2;
6 new1 = ss.str();
7 cout << new1;
8 st << text1 << “is easy to learn!”;
9 new2 = st.str();
10 cout << st;```

A. I love chocolate and math
B. I love C++
C. I love
D. I love math and chocolate.


A

Computer Science & Information Technology

You might also like to view...

A class ____ is a collection of classes that can be made available for developers to use

A. glossary B. library C. index D. roster

Computer Science & Information Technology

Rebooting resets the CPU registers.

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

Computer Science & Information Technology

What file format uses the file extension .ods?

A. All Data Sources B. OpenDocument Spreadsheet C. dBase D. Access

Computer Science & Information Technology

Display devices are used to select and manipulate objects, to input certain types of data (such as handwritten data), and to issue commands to the computer. _________________________

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

Computer Science & Information Technology