Exam Questions with Answers
What are the four phases of software development? - Correct Answers: analysis
design
implementation
testing and debugging
algorithm - Correct Answers: step by step problem solving process which a solution is arried at in a finite
amount of time
structured design - Correct Answers: dividing the problem into smaller subproblems, aka top-down
design, stepwise refinement, and modular programing
structured programming - Correct Answers: the process of implementing a structured design
Object oriented design - Correct Answers: identify the components called objects, which form the basis
of the solution, and determine how these objects interact with one another
Object Oriented programing - OOP - Correct Answers: progrmaing language that implements OOD
what are the following basic principles of OOD - Correct Answers: Encapsulation - combines data and
operations in a single unit
Inheritance - ability to create new data types from existing data types
Polymorphism - ability to use the same expression to denote different operations
what is the difference between "cerr" and "cout" - Correct Answers: "cerr" - corresponds to the
unbuffered standard error stream. output is immediatly sent to the standard error stream, usually the
screen
"cout" - output goes first to the buffer, then to the standard error stream
, Precondition - Correct Answers: statement specifying the conditions that must be true before the
function is called
Postcondition - Correct Answers: statement specifying what is true after the function call is completed
testing and debugging - Correct Answers: testing - testing the correctness of the program, making sure it
does what it needs to do
debugging - finding and fixing the errors, if they exist
test case - Correct Answers: consists of a set of inputs, user actions, or other initial conditions, and the
expected output in order to attempt to find problems. must be properly documented
black box testing - Correct Answers: do not know the internal working of the algorithm or function
boundary values - Correct Answers: testing values that surround and fall on the boundaries
white box testing - Correct Answers: relies on the internal structure and implementation of a function or
algorithm, objective is to ensure every part of function or algorithm is executed at least once
asymptotic - Correct Answers: the study of the function f as n becomes larger and larger without bound
class - Correct Answers: collection of a fixed number of components. members of class are components
of a class
ex:
class classIdentifier
{
class members list
};