chapter 1 Flashcards
(46 cards)
What is Computer Program
Set of instructions that tell pc what to do
What is machience language
most basic circutry level language
low level programming language
What is high level language
programming language with reasonable vocab and terms
What is syntax
A specific set of rules for the language
program statement
Similar to English sentences
Commands to carry out program tasks
Compiler or interpreter
Translates language statements into machine code
Syntax error
Misuse of language rules
A misspelled programming language word
Debugging
Freeing program of all errors
Logic errors
Also called semantic errors
Incorrect order or procedure
The program may run but provide inaccurate output
Procedural programming
Sets of operations executed in sequence
Variables
Named computer memory locations that hold values
Procedures
Individual operations grouped into logical units
Object-oriented programs
Create classes
-Blueprints for an object
Create objects from classes
Create applications
what applications is object oriented programming most used for
Computer simulations
Graphical user interfaces (GUIs)
-Not all object-oriented programs are written to use a GUI
what differs object oriented programming from traditional procedural programming
Polymorphism
Inheritance
Encapsulation
Class
Describes objects with common properties
A definition
An instance
Attributes
Characteristics that define an object Differentiate objects of the same class The value of attributes is an object’s state
Objects
Specific, concrete instances of a class
Method
A self-contained block of program code that carries out an action
Similar to a procedure
Encapsulation
Conceals internal values and methods from outside sources
Provides security
Keeps data and methods safe from inadvertent changes
Inheritance
An important feature of object-oriented programs
Classes share attributes and methods of existing classes but with more specific features
Helps you understand real-world objects
Polymorphism
Means “many forms”
Allows the same word to be interpreted correctly in different situations based on context
Java
Developed by Sun Microsystems
An object-oriented language
General-purpose
Advantages
-Security features
-Architecturally neutral
-Can be run on a wide variety of computers
-Does not execute instructions on the computer directly
-Runs on a hypothetical computer known as a Java Virtual Machine (JVM)
Source code
Programming statements written in high-level programming language