1. What is output: printf("\n", 6/3 + 12.2 + 3); (Note 3.2) A. 7 B. 7.2 C. It will not compile. D. 5 E. garbage because

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

1. What is output: printf("\n", 6/3 + 12.2 + 3); (Note 3.2) A. 7 B. 7.2 C. It will not compile. D. 5 E. garbage because

Post by answerhappygod »

1 What Is Output Printf N 6 3 12 2 3 Note 3 2 A 7 B 7 2 C It Will Not Compile D 5 E Garbage Because 1
1 What Is Output Printf N 6 3 12 2 3 Note 3 2 A 7 B 7 2 C It Will Not Compile D 5 E Garbage Because 1 (23.08 KiB) Viewed 47 times
1 What Is Output Printf N 6 3 12 2 3 Note 3 2 A 7 B 7 2 C It Will Not Compile D 5 E Garbage Because 2
1 What Is Output Printf N 6 3 12 2 3 Note 3 2 A 7 B 7 2 C It Will Not Compile D 5 E Garbage Because 2 (6.11 KiB) Viewed 47 times
1. What is output: printf("\n", 6/3 + 12.2 + 3); (Note 3.2) A. 7 B. 7.2 C. It will not compile. D. 5 E. garbage because 6/3 + 12.2+3 is type double but i specifies type int 2. Predict the output from: if (5<4) if (6>5) else } else A. 31 B. 21 C. 321 D. 41 E. cout.put('4'); cout.put('3'); cout.put('2'); cout.put('1'); (Note 3.15) Implementation dependent 3. Predict the output from: switch (2*2) { case 8/2: cout << "value = 4"; case 29: cout << "29"; case 'E': cout << 'E' <<""; default: cout << "break"; break; case 2/2: cout << "Got an 'A'";
(Notes 3.17 & 3.18) A. value = 4 B. value = 429 E break C. value = 429 E D. Got an 'A' E. The output is implementation dependent.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply