{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

2007S1ExamAnswers - VERSION 1-1 COMPSCI 101 THE UNIVERSITY...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
VERSION 1 - 1 - COMPSCI 101 THE UNIVERSITY OF AUCKLAND FIRST SEMESTER, 2007 Campus: City COMPUTER SCIENCE Principles of Programming (Time Allowed: TWO hours) NOTE: Attempt ALL questions. Answer Section A (Multiple choice Questions) on the scantron answer sheet attached. Answer Section B in the spaces provided in this booklet. Calculators are NOT permitted. Surname: Forenames: Student ID number: Login name: Q1 – Q14 Multi-choice (/35) Q17 (/6) Q20 (/10) Q23 (/4) Q15 (/6) Q18 (/12) Q21 (/10) Q16 (/4) Q19 (/10) Q22 (/3) TOTAL (/100)
Background image of page 1

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

View Full Document Right Arrow Icon
VERSION 1 - 2 - COMPSCI 101 Question and Answer Booklet ID .......................................... CONTINUED SECTION A MULTIPLE CHOICE QUESTIONS Each question in this section is worth 2.5 marks. There is only one correct answer for each question. Select your preferred alternative on the scantron answer sheet provided . 1. What is the output of the following statement? System.out.println("1" + 2 + 3); (a) 123 (b) 15 (c) 33 (d) 6 (e) none of the above 2. What is the output of the following statement? System.out.println(1 + 2 + "3");
Background image of page 2