COMP AND ENSC MT Flashcards
It is a visual representation of an algorithm. It contains shapes describing how an algorithm or program operates.
Flowchart
It is used to indicate the direction of the process flow by connecting other shapes. Arrows should not cross each other.
image:
———–>
Flow lines
It is used to represent the beginning or end of a program.
image:
oval
Terminal block
It is used to represent a process step or activity, such as computation, initialization, etc.
image:
rectangle
Process
This represents the data used as inputs or outputs, such as user input and display text.
image:
parallelogram (slant rectangle)
Data
This indicates a decision operation in the process, where there are two alternatives: True or False
image:
Rhombus (4 sides quadrilateral/diamond)
Decision block
Used as a connector to combine flow lines by indicating an identifier, such as letters. This is used for complex algorithms.
image:
circle
Connector
It is a visual modeling language that provides a visual means of developing and documenting object-oriented software and systems.
Unified Modeling Language (UML)
Components of Use-Case Diagrams
Actor
Use-Case
Subject Boundary Box
Association Relationship
Include Relationship
Extend Relationship
Generalization Relation
A ______ is a person or a system that represents the role of someone interacting with the system or software and is the user of the system.
Actor (stickman)
A _____ represents the functionality of a system.
Use-Case (oval)
A ________ represents the system’s scope to which a set of use-cases are applied.
Subject Boundary Box (rectangle)
An _______ is a line between the actor and use-case. This specifies that the actor interacts with the system and uses a certain functionality.
Association Relationship (straight line)
An __________ is a directed relationship between two (2) use-cases when required.
Include Relationship (written as: «include»)
An ______ indicates optional functionality under a certain use-case.
Extend Relationship (written as «extend»)
A _____ represents a specialized use-case more generalized one. It is like a generalization between classes.
Generalization Relationship (drawn as arrow with head <—– towards the starting oval near actor)
A high-level programming language that was developed by Sun Microsystems for general-purpose business applications and interactive, web-based Internet applications. Itcan be used to write programs that run on any operating system or device.
Java
An environment that translates Java bytecode (compiled format for Java programs) into machine language and executes it.
Java Environment Machine (JVM)
Programming statements are written in a high-level language. This is created using a text editor or a development environment.
Source Code
A set of tools that help write programs easily, such as NetBeans. The statements are saved in a file. Then, the Java compiler converts the source code into a binary program of bytecode. The Java interpreter then checks the bytecode and communicates with the operating system, executing the bytecode instructions line by line within the Java Virtual Machine.
Development Environment
Two types of Java Program
Application
Applet
It supports character output to a computer screen in a DOS window.
Console Application
It creates a GUI with elements such as menus, buttons, dialog boxes, etc.
Windowed Application
This is a stand-alone program.
Application
It is a program embedded in a Web page. It runs in a browser.
Applet
________ or keywords have special predefined meanings and cannot be used in naming variables, classes, methods, or identifiers. The Java language designates certain keywords that the compiler recognizes as reserved words
Reserved Words
It is used to specify the set of values and their operations. The values have data types because they are stored in memory in the same format and have the same operations defined for them.
Data Type
It’s the fundamental data type in Java. These are predefined data types by the language and named by a keyword.
Primitive Data Type
What is OOP?
Object-Oriented Program