VERSION ONE COMPSCI 101THE UNIVERSITY OF AUCKLANDCONTINUED FIRST SEMESTER, 2007Campus: City T E S T COMPUTER SCIENCE Principles of Programming (Time Allowed: ONE hour and FIFTEEN minutes) NOTE: Attempt ALL questions. Answer the multiple choice questions in section A by circling the correct answer on the answer booklet. Write the answers to the questions in section B in the space provided on the answer booklet. Calculators are NOT permitted. SECTION A: MULTIPLE CHOICE QUESTIONS Each question in this section is worth 2 marks. Circle the letter corresponding to your choice on the attached answer sheet. There is only one correct answer for each question. 1. What is the output produced by the following code? System.out.println( 3 * (5 - 1) + 4 - 3 * 2 + 1 ); (a) 11 (b) 15(c) 27 (d) 9 (e) none of the above
has intentionally blurred sections.
Sign up to view the full version.