Home
Add Document
Sign In
Create An Account
1.001 Spring 2012 Quiz 1 Review
3/7/2012 1.00/1.001 Spring 2012 Quiz 1 Review Course Topics Overview 1. Control and scope 2. Classes and objects Quiz 1 3. Arrays, ArrayLists ...
Author:
Corey Stone
1 downloads
2 Views
258KB Size
Report
Download PDF
Recommend Documents
Review For EXAM 1 Spring Semester 2012
Aswath Damodaran 1 VALUATION: QUIZ 1 REVIEW
2.710 Optics Spring 12 Quiz #1 Solutions
Genetics Quiz Review
EE319K Spring 2012 Exam 1A Translated from 9S12 to TM4C123 Page 1. Quiz 1 Fun Size. Date: February 23, 2012
LPIC-1 Kurs 1001
87 Issue 1 Spring 2012
PageRank Algorithm and Quiz Review
1001 ]
JARO 2012 SPRING 2012
INC-1001 SATCA 1 : Carrera:
EMJ-1001 SATCA 1 : Carrera:
Algebra 1 Spring Semester Final Exam Review
Drug Proficiency Spring Review 1 KEY
spring 2012
Programming 1 Visual Basic Chapter 2 Quiz Review
SPRING 2012
Spring 2012
Physics 8 Spring 2012 Midterm 1 Solutions
Harvard Pre-Collegiate Economics Challenge 2012 Quiz Bowl Round 1
Pooch Playhouse 1001 Parkway Drive Spring Hill, TN 37174
Exception Handling Quiz-1
Non-scientific quiz #1
NAVAL WAR COLLEGE REVIEW. Spring 2012 Volume 65, Number 2
3/7/2012
1.00/1.001
Spring 2012
Quiz 1 Review
Course Topics Overview 1. Control and scope 2. Classes and objects
Quiz 1
3. Arrays, ArrayLists 4. Recursion 5. Inheritance
Quiz 2
6. Graphical user interfaces 7. Numerical methods 8. Input/output streams
Final
9. Sensors and threads 10. Data structures
1
3/7/2012
1. Control and Scope 1. Data types • Promotion and casting 2. Oper Operaator orss • Precedence • Numerical problems 3. Control structures • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing • Variable scope
1. Control and Scope Size (bits)
Range
boolean
Type
1
true or false
char
16
ISO Unicode character set
8
-128 to 127
16
-32,768 to 32,767
1. Data types byte • Promotion and casting short int int 2. Opera Operator orss long • Precedence float • Numerical problems 3. Control structures double • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing • Variable scope
32
-2,147,483,648 2 147 483 648 to 2 2,147,483,647 147 483 647
64
-9,223,372,036,854,775,808L to 9,223,372,036,854,775,807L
32
1.4E-45F to 3.4E+38F (6-7 significant digits)
64
4.9E-324 to 1.8E+308 (15 significant digits)
2
3/7/2012
1. Control and Scope Promotion example
1. Data types • Promotion and casting 2 Oper 2. Operaator orss • Precedence • Numerical problems 3. Control structures • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing • Variable scope
4 / 3 – 4 / 3.0 int
int
int
int
double
double
1
–
1.333
double – 0.333 0 333 Casting example (double) 4 / 3 – 4 / 3.0 double
int
int
double
1. Control and Scope Arithmetic operators
1. Data types • Promotion and casting 2 Operators 2. • Precedence • Numerical problems 3. Control structures • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing Equal Less than • Variable scope
Assignment operator:
=
Boolean operators ==
Not equal
!=
=
Logical and
&&
Logical or
||
Not
!
3
3/7/2012
1. Control and Scope Common problems
1. Data types • Promotion and casting 2 Operators 2. • Precedence • Numerical problems 3. Control structures • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing • Variable scope
• • • • •
Integer divide Divide by zero 0 / 0 = NaN Exceeding capacity of data type Decimal imprecision and error
1. Control and Scope if / else example
1. Data types • Promotion and casting 2 Operators 2. • Precedence • Numerical problems 3. Control structures • Branching (if/else) • Iteration (while/do while/for) 4. Methods • Argument passing • Variable scope
boolean b = 3 > 4; String s = “hello”; if (b) { ... } else if (s.equals(“bye”)){ ... } else { ... }
4
3/7/2012
1. Control and Scope while example
1. Data types int i = 0; • Promotion and casting while (i
Suggest Documents
Review For EXAM 1 Spring Semester 2012
Read more
Aswath Damodaran 1 VALUATION: QUIZ 1 REVIEW
Read more
2.710 Optics Spring 12 Quiz #1 Solutions
Read more
Genetics Quiz Review
Read more
EE319K Spring 2012 Exam 1A Translated from 9S12 to TM4C123 Page 1. Quiz 1 Fun Size. Date: February 23, 2012
Read more
LPIC-1 Kurs 1001
Read more
87 Issue 1 Spring 2012
Read more
PageRank Algorithm and Quiz Review
Read more
1001 ]
Read more
JARO 2012 SPRING 2012
Read more
INC-1001 SATCA 1 : Carrera:
Read more
EMJ-1001 SATCA 1 : Carrera:
Read more
Algebra 1 Spring Semester Final Exam Review
Read more
Drug Proficiency Spring Review 1 KEY
Read more
spring 2012
Read more
Programming 1 Visual Basic Chapter 2 Quiz Review
Read more
SPRING 2012
Read more
Spring 2012
Read more
Physics 8 Spring 2012 Midterm 1 Solutions
Read more
Harvard Pre-Collegiate Economics Challenge 2012 Quiz Bowl Round 1
Read more
Pooch Playhouse 1001 Parkway Drive Spring Hill, TN 37174
Read more
Exception Handling Quiz-1
Read more
Non-scientific quiz #1
Read more
NAVAL WAR COLLEGE REVIEW. Spring 2012 Volume 65, Number 2
Read more
×
Report "1.001 Spring 2012 Quiz 1 Review"
Your name
Email
Reason
-Select Reason-
Pornographic
Defamatory
Illegal/Unlawful
Spam
Other Terms Of Service Violation
File a copyright complaint
Description
×
Sign In
Email
Password
Remember me
Forgot password?
Sign In
Login with Google
Login with Facebook