Review Sheet for Program Design and Development | C SC 227, Exams of Computer Science

Material Type: Exam; Class: Full Course Title: Program Design and Development; Subject: COMPUTER SCIENCE; University: University of Arizona; Term: Spring 2008;

Typology: Exams

Pre 2010

Uploaded on 08/31/2009

koofers-user-gj6
koofers-user-gj6 🇺🇸

3

(2)

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C Sc 227 Test 1 Review Sheet Fall 2007
Quick Facts
oFriday, 15-Feb-2008 where we have lectures
oWith Rick's bigrading scheme, it is worth either 15% or 20% of your final grade
oClosed books, closed notes
oUse pencil, not pen (please)
oNo electronic devices. You do not need a calculator (integer division differs in Java anyway)
Types: primitive and reference
oEvaluate expressions with int and double, Math functions: sqrt, round, pow
oAssignment compatibility rules
oBoolean expressions with relational operators, !=, ==, and Boolean operators && || !
oInput with Scanner using hasNextInt() and nextInt() and Output with print and println
oEvaluate expressions with String objects: compareTo, substring, indexOf, charAt
oConstruct objects with constructors
oSend messages to objects: objectReference.messageName(argumentsoptional)
Classes, Methods, Parameters, Testing
oUnderstand method headings, parameters, flow of control when a method is called
oJUnit: assertEquals, assertTrue, and assertFalse in test methods that begin with
oWrite an entire class with private instance variables, public methods, parameters, local
variables
Control Structures
oif statements, if...else, and nested if...else statements
ofor loops (known number of repetitions)
owhile loops (unknown number of repetitions)
1-D Arrays
oShow output from code with an array, declare arrays with one subscript
oProcess array data: find high, low, average, print all elements in an array
oSend messages to objects stored in an array String[1].substring(1, 6);
oSwap two values as is done to rearranging two array elements
oBuild a simple collection class with an array instance variable
Resources
oChapters 1, 2, and 3 from Rick's book page
oSelf-Checks with answers linked from Rick's book page
oPresentations 1, 2, and 3 that were handed out and are at our Presentations Page
oThe practice test handed out Monday and linked
oNick Paralante's JavaBat problems designed to help CS students study for tests:
http://javabat.com/java/Logic
http://javabat.com/java/String3
http://javabat.com/java/Array2

Partial preview of the text

Download Review Sheet for Program Design and Development | C SC 227 and more Exams Computer Science in PDF only on Docsity!

C Sc 227 Test 1 Review Sheet Fall 2007

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:

 http://javabat.com/java/Logic

 http://javabat.com/java/String

 http://javabat.com/java/Array