2007S1TestQuestions - VERSION ONE COMPSCI 101 THE...

Info icon This preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
VERSION ONE COMPSCI 101 THE UNIVERSITY OF AUCKLAND CONTINUED FIRST SEMESTER, 2007 Campus: 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
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon