C Essentials Part 1 Module 3 Test | 2025-2026 |
But the final test question was trickier: "What is the output of this code?" int x = 5; int y = 2; float z = x / y; printf("%f", z); She almost answered 2.5 , but caught herself. Integer division truncates. x / y = 2 , then stored as 2.000000 . The correct output: 2.000000 .
She hit . Input: 75 30 → Sum = 105. Output: HIGH . Good. Input: 20 40 → Sum = 60. Output: MEDIUMLOW — Error! c essentials part 1 module 3 test
She stared. Why both "MEDIUM" and "LOW"? But the final test question was trickier: "What