
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Full Course Title: Program Design and Development; Subject: COMPUTER SCIENCE; University: University of Arizona; Term: Spring 2008;
Typology: Exams
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Quick Facts o Friday, 15-Feb-2008 where we have lectures o With Rick's bigrading scheme, it is worth either 15% or 20% of your final grade o Closed books, closed notes o Use pencil, not pen (please) o No electronic devices. You do not need a calculator (integer division differs in Java anyway) Types: primitive and reference o Evaluate expressions with int and double, Math functions: sqrt, round, pow o Assignment compatibility rules o Boolean expressions with relational operators, !=, ==, and Boolean operators && ||! o Input with Scanner using hasNextInt() and nextInt() and Output with print and println o Evaluate expressions with String objects: compareTo, substring, indexOf, charAt o Construct objects with constructors o Send messages to objects: objectReference.messageName(argumentsoptional) Classes, Methods, Parameters, Testing o Understand method headings, parameters, flow of control when a method is called o JUnit: assertEquals, assertTrue, and assertFalse in test methods that begin with o Write an entire class with private instance variables, public methods, parameters, local variables Control Structures o if statements, if...else, and nested if...else statements o for loops (known number of repetitions) o while loops (unknown number of repetitions) 1-D Arrays o Show output from code with an array, declare arrays with one subscript o Process array data: find high, low, average, print all elements in an array o Send messages to objects stored in an array String[1].substring(1, 6); o Swap two values as is done to rearranging two array elements o Build a simple collection class with an array instance variable Resources o Chapters 1, 2, and 3 from Rick's book page o Self-Checks with answers linked from Rick's book page o Presentations 1, 2, and 3 that were handed out and are at our Presentations Page o The practice test handed out Monday and linked o Nick Paralante's JavaBat problems designed to help CS students study for tests: