Programming Final Exam Questions
Fully Solved.
behavioral diagram - Answer visualizes dynamic behavior of software, such as the flow of an
algorithm. Ex: A UML activity diagram is a flowchart, used to describe the flow of an activity or
set of activities.
Analysis - Answer Determines the goals for a program. The program should support mean,
median, mode, max and min calculations.
Implementation - Answer Builds the program according to the design and writes the code. A
programmer writes each function using statements.
Design - Answer Determines the specifics of how to build the program. Each calculation will be
a function. User types a letter to invoke each calculation.
Testing - Answer Checks that the program meets the goals and checks that ea function works.
Class diagrams are used in this phase too and may help ensure that ea class from the diagram
exists in the program's code.
object - Answer a grouping of data (variables) and operations that can be performed on that
data (functions).
Abstraction - Answer means to have a user interact with an item at a high-level, with lower-
level internal details hidden from the user (aka information hiding or encapsulation)
structural diagram - Answer visualizes static elements of software, such as the types of
variables and functions used in the program.
use case diagram - Answer Behavioral diagram used to visually model user interaction w/ a
software program, actions back/forth from the software & connections between diff.
components of the software. Used to specify behavioral req's of programs.
class diagram - Answer structural diagram that can be used to visually model the classes of a
, sequence diagram - Answer behavioral diagram that shows interaction bet software
components; indicates the order of events; is commonly used to illustrate the order of events
needed to handle a particular scenario in software. Commonly created in analysis or design
phase.
In the Analysis phase - Answer During this phase a use case diagram is created to define how
user interacts w/ software
In the Design phase - Answer the use case diagram is referenced to determine how the
program is built. A class diagram is commonly created in this phase and used as guidance in the
implementation phase.
In the testing phase - Answer the use case diagram may also be referenced such as when
creating usability tests.
In the implementation phase - Answer The class diagram created in the design phase is used
as guidance in this phase to help write the code. Ex: A spreadsheet app will need a class for a
workbook, a worksheet, and a cell; identifies such classes and members of each class.
Sequence diagram commonly created in what phases? - Answer Analysis or design phase. May
be created in the analysis phase to detail how a user interacts with a software system. May be
created in design phase to detail the logic of a particular function.
What does a structural diagram show - Answer static items like variables and functions.
What does a behavioral diagram show - Answer dynamic behavior like flow. A use case
diagram is _____ and shows how a user interacts w/ a program.
compiled language - Answer is first converted by a tool into machine code, which can run on a
particular machine; Ex's: C, C++, Java, and C#.
interpreted language (aka scripting language) - Answer is a language that is run one statement
at a time by another program called an ____. Ex's include Python, Javascript, and MATLAB. Can
run on any machine with an ___.
Advantages of compliled language - Answer most are statically typed and cannot be changed