Deck 1: Software Engineering Principles and C++ Classes

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
The three fundamental stages through which a program goes are implementation, use, and maintenance.
سؤال
In the software maintenance process, the program is modified to fix the (identified) problems and/or to enhance it.
سؤال
A program that is well developed is more expensive to maintain.
سؤال
Software engineers typically break the software development process into the following four phases: analysis, design, implementation, and testing and debugging.
سؤال
Dividing a problem into smaller subproblems is called structured design.
سؤال
The structured design approach is also known as modular programming.
سؤال
Encapsulation is the ability to handle data and operations as separate units.
سؤال
In OOP, each object consists of data and operations on that data.
سؤال
OOD has three basic principles: encapsulation, inheritance and polymorphism.
سؤال
Encapsulation is the ability to create new data types from existing data types.
سؤال
Polymorphism is the ability to use the same expression to denote different operations.
سؤال
A postcondition is a statement specifying what is true before the function call is completed.
سؤال
In black-box testing, you do not know the internal working of the algorithm or function.
سؤال
White-box testing relies on the internal structure and implementation of a function or algorithm.
سؤال
The term asymptotic means the study of the function f as n becomes larger and larger without bound.
سؤال
The components of a class are called objects.
سؤال
If g(n) = 1, the growth rate is constant and does not depend on the size of the problem.
سؤال
In C++, the mechanism that allows you to combine data and the operations on that data in a single unit is called a class.
سؤال
The members of a class are classified into three categories: private, public, and main.
سؤال
Private, public, and protected are member access specifiers.
سؤال
Class objects cannot be passed as parameters to functions or returned as function values.
سؤال
The three fundamental stages a program goes through are: development, use, and ____.

A) implementation
B) maintenance
C) analysis
D) requirements gathering
سؤال
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
سؤال
____ 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
سؤال
The structured design approach is also known as ____.

A) top-down design
B) bottom-up design
C) object design
D) stepwise updating
سؤال
____ is the ability to create new data types from existing data types.

A) Encapsulation
B) Information hiding
C) Inheritance
D) Polymorphism
سؤال
The output of ____ is immediately sent to the standard error stream, which is usually the screen.

A) cerr
B) cout
C) cerror
D) cerrout
سؤال
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
سؤال
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
سؤال
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
سؤال
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(n) ____ is a collection of a fixed number of components.

A) object
B) member
C) class
D) friend
سؤال
The members of a class are classified into three categories called ____ access specifiers.

A) member
B) object
C) function
D) object.
سؤال
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
سؤال
By default, all members of a class are ____.

A) public
B) protected
C) private
D) open
سؤال
The name of a constructor is the same as the name of the ____.

A) class
B) main function
C) helper function
D) friend function
سؤال
In C++ terminology, a class variable is called a ____.

A) class object
B) class placeholder
C) class member
D) class template
سؤال
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;
سؤال
____ serves to hide the details of the operations on the data.

A) Inheritance
B) Information hiding
C) A destructor
D) A constructor
سؤال
The destructor automatically executes when the class object goes out of ____.

A) scope
B) use
C) bounds
D) phase
سؤال
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
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/42
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
5
Software engineers typically break the software development process into the following four phases: analysis, design, implementation, and testing and debugging.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
6
Dividing a problem into smaller subproblems is called structured design.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
7
The structured design approach is also known as modular programming.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
8
Encapsulation is the ability to handle data and operations as separate units.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
9
In OOP, each object consists of data and operations on that data.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
10
OOD has three basic principles: encapsulation, inheritance and polymorphism.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
11
Encapsulation is the ability to create new data types from existing data types.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
12
Polymorphism is the ability to use the same expression to denote different operations.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
13
A postcondition is a statement specifying what is true before the function call is completed.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
14
In black-box testing, you do not know the internal working of the algorithm or function.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
15
White-box testing relies on the internal structure and implementation of a function or algorithm.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
16
The term asymptotic means the study of the function f as n becomes larger and larger without bound.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
17
The components of a class are called objects.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
18
If g(n) = 1, the growth rate is constant and does not depend on the size of the problem.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
20
The members of a class are classified into three categories: private, public, and main.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
21
Private, public, and protected are member access specifiers.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
22
Class objects cannot be passed as parameters to functions or returned as function values.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
33
A(n) ____ is a collection of a fixed number of components.

A) object
B) member
C) class
D) friend
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
36
By default, all members of a class are ____.

A) public
B) protected
C) private
D) open
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
41
The destructor automatically executes when the class object goes out of ____.

A) scope
B) use
C) bounds
D) phase
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 42 في هذه المجموعة.