CS 1436.0L3 Programming Fundamentals Sample Test 1 Questions PDF

Summary

This is a sample programming test covering C++ programming fundamentals. The test contains various questions, including I/O manipulation, using string streams and integer division. It was taken on October 1, 2024.

Full Transcript

CS 1436.0L3 - Programming Fundamentals - F24 Labs Review Test Submission: Sample Test 1 Questions - due Oct 1 Review Test Submission: Sample Test 1 Questions - due Oct 1 User Simar Rekhi Course CS 1436.0L3 - Programming Fundamentals - F24 T...

CS 1436.0L3 - Programming Fundamentals - F24 Labs Review Test Submission: Sample Test 1 Questions - due Oct 1 Review Test Submission: Sample Test 1 Questions - due Oct 1 User Simar Rekhi Course CS 1436.0L3 - Programming Fundamentals - F24 Test Sample Test 1 Questions - due Oct 1 Started 10/1/24 11:29 PM Submitted 10/1/24 11:35 PM Due Date 10/1/24 11:59 PM Status Completed Attempt Score 22 out of 22 points Time Elapsed 6 minutes Results Displayed All Answers, Submitted Answers, Correct Answers, Feedback, Incorrectly Answered Questions Question 1 1 out of 1 points istringstream lineInput("10 Jey 20"); int total = 0, value = 0; while (lineInput >> value) total += value; cout 60) charge = 75; else if (weight > 40) charge = 50; cout > weight; if (weight > 60) charge = 75; else if (weight > 40) charge = 50; cout value; total += value; } cout > value) total += value; cout

Use Quizgecko on...
Browser
Browser