CPA practice question 7 of 30

Which code, inserted at line 10, generates the output "Hello World"? #include #include using namespace std; string fun(string, string); int main() {…

Choose your answer, then check it against the explanation.

Which code, inserted at line 10, generates the output "Hello World"? #include #include using namespace std; string fun(string, string); int main() { string s="Hello"; string *ps; ps = &s; //insert code here return 0; } string fun(string s1, string s2) { return s1+s2; }
Answer options
Question 7 of 30

Keep practicing

Take the free CPA practice test

Ten exam-style questions with answers and explanations, plus the exam facts and study guides.

Start the free practice test

More questions

Other CPA practice questions

Scroll to Top