Deck 1: Software Engineering Principles and C++ Classes
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/42
Play
Full screen (f)
Deck 1: Software Engineering Principles and C++ Classes
1
A program goes through many phases from the time it is first conceived until the time it is retired, called the life cycle of the program.
True
2
The three fundamental stages through which a program goes are implementation, use, and maintenance.
False
3
In the software maintenance process, the program is modified to fix the (identified) problems and/or to enhance it.
True
4
A program that is well developed is more expensive to maintain.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
5
Software engineers typically break the software development process into the following four phases: analysis, design, implementation, and testing and debugging.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
6
Dividing a problem into smaller subproblems is called structured design.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
7
The structured design approach is also known as modular programming.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
8
Encapsulation is the ability to handle data and operations as separate units.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
9
In OOP, each object consists of data and operations on that data.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
10
OOD has three basic principles: encapsulation, inheritance and polymorphism.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
11
Encapsulation is the ability to create new data types from existing data types.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
12
Polymorphism is the ability to use the same expression to denote different operations.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
13
A postcondition is a statement specifying what is true before the function call is completed.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
14
In black-box testing, you do not know the internal working of the algorithm or function.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
15
White-box testing relies on the internal structure and implementation of a function or algorithm.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
16
The term asymptotic means the study of the function f as n becomes larger and larger without bound.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
17
The components of a class are called objects.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
18
If g(n) = 1, the growth rate is constant and does not depend on the size of the problem.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
19
In C++, the mechanism that allows you to combine data and the operations on that data in a single unit is called a class.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
20
The members of a class are classified into three categories: private, public, and main.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
21
Private, public, and protected are member access specifiers.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
22
Class objects cannot be passed as parameters to functions or returned as function values.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
23
The three fundamental stages a program goes through are: development, use, and ____.
A) implementation
B) maintenance
C) analysis
D) requirements gathering
A) implementation
B) maintenance
C) analysis
D) requirements gathering
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
24
When a program is considered too expensive to maintain, the developer might decide to ____ the program and no new version of the program will be released.
A) delete
B) restructure
C) retire
D) release
A) delete
B) restructure
C) retire
D) release
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
25
____ is the first and most important step of the software development process.
A) Analyzing the problem
B) Designing the software
C) Implementing the software
D) Test marketing
A) Analyzing the problem
B) Designing the software
C) Implementing the software
D) Test marketing
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
26
The structured design approach is also known as ____.
A) top-down design
B) bottom-up design
C) object design
D) stepwise updating
A) top-down design
B) bottom-up design
C) object design
D) stepwise updating
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
27
____ is the ability to create new data types from existing data types.
A) Encapsulation
B) Information hiding
C) Inheritance
D) Polymorphism
A) Encapsulation
B) Information hiding
C) Inheritance
D) Polymorphism
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
28
The output of ____ is immediately sent to the standard error stream, which is usually the screen.
A) cerr
B) cout
C) cerror
D) cerrout
A) cerr
B) cout
C) cerror
D) cerrout
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
29
The main types of testing are ____ testing.
A) white-box and blue-box
B) black-box and blue-box
C) white-box and green-box
D) white-box and black-box
A) white-box and blue-box
B) black-box and blue-box
C) white-box and green-box
D) white-box and black-box
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
30
In the function ____, the growth rate is a function of the base 2 logarithm of n.
A) g(n)=1
B) g(n)=log2n
C) g(n)=nlog2n
D) g(n)=2n
A) g(n)=1
B) g(n)=log2n
C) g(n)=nlog2n
D) g(n)=2n
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
31
In the function ____, the growth rate is quadrupled when the problem size is doubled.
A) g(n)=1
B) g(n)=nlog2n
C) g(n)=n2
D) g(n)=2n
A) g(n)=1
B) g(n)=nlog2n
C) g(n)=n2
D) g(n)=2n
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
32
In the function ____, the growth rate is exponential.
A) g(n)=1
B) g(n)=n2
C) g(n)=nlog2n
D) g(n)=2n
A) g(n)=1
B) g(n)=n2
C) g(n)=nlog2n
D) g(n)=2n
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
33
A(n) ____ is a collection of a fixed number of components.
A) object
B) member
C) class
D) friend
A) object
B) member
C) class
D) friend
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
34
The members of a class are classified into three categories called ____ access specifiers.
A) member
B) object
C) function
D) object.
A) member
B) object
C) function
D) object.
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
35
Deciding which member to make private and which to make public depends on the ____ of the member.
A) nature
B) size
C) function
D) identity
A) nature
B) size
C) function
D) identity
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
36
By default, all members of a class are ____.
A) public
B) protected
C) private
D) open
A) public
B) protected
C) private
D) open
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
37
The name of a constructor is the same as the name of the ____.
A) class
B) main function
C) helper function
D) friend function
A) class
B) main function
C) helper function
D) friend function
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
38
In C++ terminology, a class variable is called a ____.
A) class object
B) class placeholder
C) class member
D) class template
A) class object
B) class placeholder
C) class member
D) class template
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
39
The general syntax for declaring a class object that invokes the default constructor is ____.
A) className classObject.new;
B) className ObjectName;
C) className classObjectName;
D) classObjectName className;
A) className classObject.new;
B) className ObjectName;
C) className classObjectName;
D) classObjectName className;
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
40
____ serves to hide the details of the operations on the data.
A) Inheritance
B) Information hiding
C) A destructor
D) A constructor
A) Inheritance
B) Information hiding
C) A destructor
D) A constructor
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
41
The destructor automatically executes when the class object goes out of ____.
A) scope
B) use
C) bounds
D) phase
A) scope
B) use
C) bounds
D) phase
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck
42
A(n) ____ is a data type that separates the logical properties from the implementation details.
A) public
B) protected
C) private
D) abstract data type
A) public
B) protected
C) private
D) abstract data type
Unlock Deck
Unlock for access to all 42 flashcards in this deck.
Unlock Deck
k this deck