













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














Sect. 1 Califf MWF 9: Sect. 4 White MWF 10: Sect. 7 Rendon TR 11: Sect. 10 Fulton MWF 1: Sect. 13 Goodwin MWF 2: Sect. 16 Rendon TR 5: Name _________________________________________ Section _________ Part 1: __________ (60) Part 2: __________ (40) Score: __________
For each of the questions in this section mark the one best answer on your answer sheet.
Questions 13 and 14 Consider the following algorithm snippet and answer the questions below. IF x < y THEN print x,y ELSE IF y < x print y,x ELSE print x END IF END IF
Questions 21- Consider the following piece of C++ code. Assume that Num is an integer variable with an initial value of 10 while ( Num > 0) { cout << Num << “ ”; Num = Num – 3; }
Questions 26 and 27 Consider the following code segment. Assume that it is embedded in a complete correct program. int x = 1; while (x <= 10) { if (x == 5) x = 7; else cout << x << “ “; x++; }
Name: ________________________________________ Section: ____ Score:________