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