{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2005S2TestQuestions - VERSION 1 COMPSCI 101 THE UNIVERSITY...

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

View Full Document Right Arrow Icon
VERSION 1 COMPSCI 101 THE UNIVERSITY OF AUCKLAND CONTINUED SECOND SEMESTER, 2005 Campus: City 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 attached answer sheet. Write the answers to the questions in section B in the space provided on the attached answer sheet. Calculators are NOT permitted. SECTION A: MULTIPLE CHOICE QUESTIONS Each question in this section is worth 3 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(1 + "1" + 1); (a) 111 (b) 11 + 1 (c) 21 (d) 12 (e) 1 + 11
Image of page 1

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

View Full Document Right Arrow Icon