Unit One Flashcards
What is “bit” and acronym for?
Binary Digit
How many bits in a byte?
8
What does ASCII stand for?
American Standard Code for Information Interchange
What are the two categories of translation programs?
Interpreter & Compiler
What is object code?
Machine Language
How does an interpreter program translate code?
Line by line, translating then executing.
How does a compiler program translate code?
Translates entire source code.
Does a compiler execute code?
No
What kind of code does Java compile to?
Byte code
Which is faster, compiler or interpreter?
Compiler
What are the two main programming paradigms?
Procedural & Object Oriented
What is the difference between procedural and object oriented programming?
How you analyze a problem
Breaking down a process into atomic tasks
Task Analyses or Decomposition
What is an Algorithm?
A procedure or series of steps for solving a problem
What are the two components of an algorithm?
What are the tasks, what order are they to be done
What was the software crisis?
’60s programming was costly and inefficient due to a lack of cohesive standards
What was a major coding component of the Software Crisis?
GOTO statements leading to “spaghetti code”
What are the 3 control structures necessary for any program?
1) Sequence
2) Selection (conditional “IF” “THEN”)
3) Repetition (looping)
What is an “Object” in programming?
Some computer code that models a self contained entity in the real world
What two things comprise an object?
Data (Variables) and Actions (Methods)
What programming language is Java based on?
C++
What is the Java compiler called?
javac.exe
What makes Byte Code unique?
It cannot run on any CPU
What is the JVM?
Java Virtual Machine, software that interprets Byte code
Where is data that has been typed stored?
The Keyboard Buffer
What is the Java API?
Application Programmer Interface, holds thousands of useful classes in “packages” or class libraries
To access a package from the API, what must you do?
Import the package with an import statement
How do you perform a manual flush of the keyboard buffer?
input.nextLine( );
What operations require a manual buffer flush? (3)
next( );
nextInt( );
nextDouble( );
What is the character at the end of typing called?
End of Line character
New Line character
Carriage Return
What is a variable?
A storage location in the computer’s memory, or RAM.
What two things must a variable have?
1) A name
2) A data type