Chapter 1 Flashcards
A set of written instructions that tells the computer what to do
Computer Program
– The most basic circuitry-level language
– A low-level programming language
Machine Language
Allows you to use a vocabulary of reasonable terms
High-level programming language
A specific set of rules for the language
Syntax
– Similar to English sentences
– Commands to carry out program tasks
Program statements
Translates language statements into machine code
Compiler or Interpreter
– Misuse of language rules
– A misspelled programming language word
Syntax Error
Freeing program of all errors
Debugging
– Also called semantic errors
– Incorrect order or procedure
– The program may run but provide inaccurate output
Logic Errors
Sets of operations executed in sequence
Procedural Programming
Individual operations grouped into logical units
Procedures
Used to create classes, objects from classes, and applications
Object-oriented programs
Blueprints for an objects
Classes
- Polymorphism
- Inheritance
- Encapsulation
Ways that object-oriented programming differs from traditional procedural programming
–Computer simulations
–Graphical user interfaces (GUIs)
Object-oriented programming was used most frequently for these two major types of applications
–Describes objects with common properties
–A definition
–An instance
Class
–Characteristics that define an object
–Differentiate objects of the same class
–The value of attributes is an object’s state
Attributes
Specific, concrete instances of a class
Object