1/44
Flashcards covering key OOP concepts, UML, PDLC, compilers, Python, and RAD basics in fill-in-the-blank format.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
The __ is the basic unit of organization, a combination of a data element and a set of procedures.
OBJECT
The __ is the code to perform a service or operation, including tasks such as performing calculations, storing values, and presenting results.
METHOD
class
an object or set of objects that share a common structure
A specific occurrence of an object class is called an __.
instance
A __ is a lower-level category of a class with at least one unique attribute or method of its own, although it can make use of the same methods as its superclass.
SUBCLASS
The resulting tree-like structure is a __.
class hierarchy
A subclass inherits the attributes, methods, and variables from its __.
superclass
message
requests objects to perform their method
An __ occurs when a trigger causes an object to send a message.
event
encapsulation
the process of hiding the implementation details of an object from its user
polymorphism
allows instructions to be given to an object in a generalized rather than specific detailed command.
data abstraction
the process of creating new high-level data structure based on a defined object
Rapid Appication Development(RAD)
use of existing objects ratehr than writing everything
4 benefits of OOP
reusability
stability
easier design
faster design
REUSABILITY
The classes are designed so they can be reused in many system applications, or modified classes can be created using inheritacne
STABILITY
The classes are designed for repeated use and become stable over time.
EASIER DESIGN
The designer looks at each object as a black box due to encapsulation.
FASTER DESIGN
Applications can be created from existing components, due to inheritance and polymorphism
Machine languages
programmers write instructin in various programming languages, some directly understandable by the computer and otehrs require intermediate translation steps
C#, C++, java, and python
machine-level language
coded bits of zeros and ones, in binary format
assembly- level language
written as mnemonics, or symbolic codes
high-level language
english-like instructions that requries compilation
translator programs
called assemblers
were developed to convert assembly code to machine code at computer speeds
examples of assembly cde for adding two values in hexadecimal format
MOV AX, 00F3
ADD AX, BX
NOP
HLT
PROGRAM DEVELOPMENT LIFE CYCLE (PLDC) six steps
anlyze the program
design the program
code the program
test the prgram
formalize the solution
maintin the program
analyze the problem
define the problem to be solved and write program specifications
Design the program
use algorithmic thinking to develop a detailed logic plan using tools such as pseudo code; flowcharts, object structure diagram, event diagrams to group the program activities into modules
code the program
translate the design into an application using a programming language or application development tool or integrated development environment(IDE)
test the program
find and correct errors (debugging) until it is error-free and contains enough safeguards to ensure the desired results
formalize the solution
review and revise internal documentation; formalize and complete end-user (external) documentation
implement the solution at the user level
UNIFIED MODELLING SCALE (UML)
to define a standard way to visualize the way a system has been designed. It is quite similar to blueprints used in other fields of engineering
not a programming language but a visual language
UML diagrams
used to protray the behavior and structure of a system
UML Class Diagram
staticstructure diagram that describe the structure of a system by showing the system's classes, attribute, operations, and relationships among objects
Why Use Class Diagram?
shows static structure of classifiers in a system
they provide basic notations for other structure diagrams prescribed by UML
helpful for developers and other team members
business analysts can use class diagrams to mdoel system from a business perspective
Parts of a Class Diagram
set of classes
set of relationships between classes
formal definition of class
structural features
behavioral features
structural features (attribtues)
define what objects of the class “know"
represent the state of an object of the class
behavioral features (operations)
define what obejcts of the class “can do" and how they interact
3 parts of class notation
class name
class attributes
class operations (methods)
class name
the name of the class appears in the first partition
class attributes
shown in the second partition
map onto members variablse in code
PY2EXE
a distutils extension which allows to build standalone windows executable programs (32 and 64-bit) from python scripts
Guido van Rossum
main creator of the python language
served as the BDFL (benevolent dictator for life) of python impacting decisions made to the language changes and updates
was working on AMOEBA, a microkernel-based distribtued system, for which he was developing system utilites in 1989
types of python programs
console applications
windows form apps
console applications
takes the input and display output at the comand line console