CPA practice question 22 of 30

Which code, inserted at line 14, generates the output "3.14 10"? #include using namespace std; namespace myNamespace1 { int x = 5; int y = 10; }…

Choose your answer, then check it against the explanation.

Which code, inserted at line 14, generates the output "3.14 10"? #include using namespace std; namespace myNamespace1 { int x = 5; int y = 10; } namespace myNamespace2 { float x = 3.14; float y = 1.5; } int main () { //insert code here cout << x << " " << y; return 0; }
Answer options
Question 22 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