This document contains a midterm examination for a course consisting of 3 questions worth a total of 40 marks. Question 1 (10 marks) asks to analyze and correct errors in a given C++ program. Question 2 (10 marks) asks to generate the output of some C++ code statements. Question 3 (20 marks) asks to design a complete C++ program to solve a given equation, calculate and display the value of Z, count values of Z between 0-2000, and ask the user to change iteration if Z is above 100,000.