U2: Further Java Fundamentals Flashcards
1
Q
Input Processing Output Model
A
- Entered from digital input or input device into program
- Info processed (calculations, altered, etc)
- Output to user or output device
2
Q
Process
A
- Involves manipulation, transformation of inputs
- Executing instructions, making decisions
- Assessing/modifying data structures
3
Q
Application of IPO Model
A
- Applicable across different domains of computer science
- Software development, data processing, networking
4
Q
- Understand the Problem
A
Define problem statement; Identify inputs and outputs
5
Q
- Design the Solution
A
- Determine steps needed to obtain input data
- Define processing required to produce desired output
6
Q
- Implement the Solution
A
- Write code to obtain input data from user
- Implement algorithms to process input data
- Add comments
7
Q
- Documentation
A
- Add comments to explain purpose, functionality
- Re-read comments and add additional ones
8
Q
- Testing
A
Test program with different input values
9
Q
Variable
A
- Named location in computer’s memory
- “Named” as it’s referenced by using name
- Can be initialized by math equations
10
Q
Functions of Variables
A
- Declaring a variable = making it exist
- Initializing a variable = giving it’s first value
11
Q
Variable: int (Integer)
A
- Positive/negative #’s w/out decimals
- Between -2,147,438,648 and 2,147,438,647
- Takes 32 bits memory
12
Q
Variable: double (Double)
A
- Positive/negative #’s w/ decimals
- Up to 15 decimal places accurately
- Takes 64 bits memory
13
Q
Variable: char (Character)
A
- Single character; 16 bits memory
- Defined using single quotation marks
- Ex: ‘A’, ‘v’, ‘&’, ‘?’
14
Q
Variable: boolean (Boolean)
A
True/false; 1 bit memory
15
Q
“Not” Variable: String (String)
A
- Series of characters, words, sentences
- Memory varies by size string
- Defined using double quotation marks