Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more.
Course Hero has millions of course specific materials providing students with the best way to expand
their education.
Below is a small sample set of documents:
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2008Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time allowed: 75 MINUTES)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answer
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2008Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time allowed: 75 MINUTES)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answer
University of Auckland - COMPSCI - 101
COMPSCI 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2008Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time allowed: TWO hours)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
COMPSCI 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2008Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time allowed: TWO hours)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2008Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time allowed: 75 MINUTES)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answer
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2008Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time allowed: 75 MINUTES)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answer
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE: Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE: Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2009Campus: CityTESTCOMPUTER SCIENCEPrinciples of Programming(Time allowed: 75 minutes)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers
University of Auckland - COMPSCI - 101
COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2009Campus: CityTESTCOMPUTER SCIENCEPrinciples of Programming(Time allowed: 75 minutes)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in t
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in t
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSEMESTER TWO, 2009Campus: CityCompSci 101TESTCOMPUTER SCIENCEPrinciples of Programming(Time allowed: 75 minutes)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back f
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSEMESTER TWO, 2009Campus: CityCompSci 101TESTCOMPUTER SCIENCEPrinciples of Programming(Time allowed: 75 minutes)NOTE:Attempt ALL questionsWrite your answers in the space providedThere is space at the back f
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE: Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2009Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE: Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answers that
University of Auckland - COMPSCI - 101
CompSci 101Question/Answer Sheet- Page 2 -CompSci 101 SS CSURNAME: . FORENAMES: .THE UNIVERSITY OF AUCKLANDQuestion 1 (40 marks)a) What output is produced by the following code?String sentence = "I LOVE SUMMER SCHOOL!";String part = sentence.subs
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2009Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time allowed: 75 MINUTES)NOTE: Attempt ALL questionsWrite your answers in the space providedThere is space at the back for answer
University of Auckland - COMPSCI - 101
VERSION 00000001COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2010Campus: CityComputer SciencePrinciples of Programming(Time Allowed: TWO HOURS)SECTION A Question BookletNote: The use of calculators is NOT permitted. You should separate
University of Auckland - COMPSCI - 101
VERSION 00000001COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2010Campus: CityComputer SciencePrinciples of Programming(Time Allowed: TWO HOURS)SECTION A Question BookletNote: The use of calculators is NOT permitted. You should separate
University of Auckland - COMPSCI - 101
VERSION 00000003COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2010Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)Note: The use of calculators is NOT permitted. Compare the test version number on the Te
University of Auckland - COMPSCI - 101
VERSION 00000003COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2010Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)Note: The use of calculators is NOT permitted. Compare the test version number on the Te
University of Auckland - COMPSCI - 101
THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2010Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in this booklet.
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2010Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in t
University of Auckland - COMPSCI - 101
THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2010Campus: CityCOMPUTER SCIENCETEST SOLUTIONSPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provided
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2010Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
Question/Answer SheetCompSci101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2010Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in th
University of Auckland - COMPSCI - 101
Question/Answer SheetCompSci101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2010Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in th
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2010Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2010Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
VERSION 00000001COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)Note: The use of calculators is NOT permitted. You should separate the Section A Question Book
University of Auckland - COMPSCI - 101
VERSION 00000001COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)Note: The use of calculators is NOT permitted. You should separate the Section A Question Book
University of Auckland - COMPSCI - 101
VERSION 00000003COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)Note: The use of calculators is NOT permitted. For Section A, use a dark pencil to mark
University of Auckland - COMPSCI - 101
VERSION 00000003COMPSCI 101THE UNIVERSITY OF AUCKLANDFIRST SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)Note: The use of calculators is NOT permitted. For Section A, use a dark pencil to mark
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the spaces provided in
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the spaces provided in
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the spaces provid
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSECOND SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the spaces provid
University of Auckland - COMPSCI - 101
THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in this booklet.
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2011Campus: CityCOMPUTER SCIENCEPrinciples of Programming(Time Allowed: TWO hours)NOTE:You must answer all questions in this exam.No calculators are permittedAnswer in the space provided in t
University of Auckland - COMPSCI - 101
THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provided in this bo
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2011Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2012Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
CompSci 101THE UNIVERSITY OF AUCKLANDSUMMER SEMESTER, 2012Campus: CityCOMPUTER SCIENCETESTPrinciples of Programming(Time Allowed: 75 minutes)NOTE:You must answer all questions in this test.No calculators are permittedAnswer in the space provide
University of Auckland - COMPSCI - 101
COMPSCI 101SUMMER SCHOOL2012- Principles of Programming Lecture times and locations (rooms subject to change)Monday: 10:00 am - 11:00 am ClockT029/105-029 (ClockTower building)Tuesday: 10:00 am - 11:00 am ALR5/421W-301 (Architecture building)Wednesd
University of Auckland - COMPSCI - 101
2!Welcome to CompSci 1 1!Will be available on the web!Introduction to the Compsci 101 course!!Algorithms!!Programming steps!!!Lab One Worksheet!Course Information Document3!CompSci 101 People!People cont.!Ann Cameron (Lab Supervisor) !!4
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 2 Contents!2!Computer Organisation!Most computers consist of three major components:Compilers, interpreters and java!javac, java commands!Installing Java!Writing the "Hello World" program!!Coursebook: 1! a proce
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 3 Contents!2!Review!Write the source code for the application (whichstarts the program).Java Syntax!Displaying Output!MyApplication.javapublic class MyApplication cfw_public static void main(String[] args) cfw_M
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 4 Contents!2!Review!What is the output of the following two programs?Java has eight primitive types!Storing information - variables!The assignment statement!Expressions !Modulus!Increment, decrement operators!!
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 5 Contents"> java ReviewAppDeposit $455Current balance $955.535Review"1 public class Review cfw_public void start() cfw_2int amount, leftOvers;3 double balance; 4amount = 435;5 6 l
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 6 Contents"Java - supports object orientedprogramming!2!The world is made up of real world objects e.g.students, dogs, cars, cats, books. !Objects!String objects!String instance methods!!Coursebook: 6!!Object
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 7 Contents"13 blocksLook at the following program which, given the number ofhours and minutes, evaluates the number of complete tenminute blocks.Dening methods: !parameters, !return values, !return statement !!
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 9 Contents"e0Review"Methods!Scope of variables!Reasons for using methods"!!Coursebook: 9!!Methods and parameters what is the output?!1public class MyProgram cfw_public void start() cfw_int x
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 10 Contents"1 String a, b;a2 = new String("mbc");b3 = a;4 = b.substring(0, 1);a5 System.out.println(a + b);More String instance methods !2!mmbcReview"!boolean variab
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 11 Contents"2!Nested if statements!nested if statements!!Any javastatement,including anotherif statement, canoccur inside thethen or else partsof if statements.!Indentation of if statements.!!if . else if .
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 12 Contents"2!Control Structures"It is important to understand how the computer works!its way through a program, nding which instructionto execute next.!Loops: initialisation, condition, body, increment!!while l
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS C Lecture 13 Contents"2!Why do we need arrays?"Let's say I want to store!the bank balance amountfor every student in thisclass.!Why do we need arrays?!!Declaring an array.!!Creating the array space.!!Assigning to ind
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 14 Contents!2!Java is Object Oriented!Java is an object oriented programming language!Representing real world objects in programs!Structure of a class denition!Instance variables!Constructors!Instance methods!!C
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 15 Contents!2!Time24Hr - instance variables!Consider dening a class to represent hours and minutes ona 24 hour clock.!! public class Time24Hr cfw_1!private int hour; 2!private int minutes;3 !4
University of Auckland - COMPSCI - 101
Computer Science 1 1 SS CLecture 16 Contents!2!ForSale - instance variables!Consider dening a class to represent items whichare for sale on a website. !Practice dening a class - ForSale class!this!null,!equals() method!Equality of objects!Below
University of Auckland - COMPSCI - 101
CompSci 101 Lecture 18 - Revision 273. Write the charsMatchExactly() method so that it correctly calculates the number of characterswhich are exactly the same, and in exactly the same position in the two Strings which can be of anylength. You can assum