Deck 2: Introduction to Software Design

ملء الشاشة (f)
exit full mode
سؤال
A software product is developed in a sequence of stages known as a life __________.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
A(n) __________ specification for a new software product should be generated at the beginning of a project.
سؤال
When designing software using __________ refinement, you start at the top level (the original problem) and divide it into subproblems.

A) piecemeal
B) iterative
C) stepwise
D) incremental
سؤال
Looking at the nouns in the problem statement can help you identify objects, and looking at the verbs can point to the __________.
سؤال
The common characteristics of a collection of similar objects define a class, and the interactions are identified as __________ that one object sends to another.
سؤال
An abstraction is a model of a physical entity or activity.
سؤال
In the __________ view of a data object, you can describe what information is stored in the data object without being specific as to how the information is organized and represented.
سؤال
In C++, the operators are called member __________.

A) functions
B) procedures
C) routines
D) methods
سؤال
In C++ there are two kinds of types: the __________ and the class types.

A) basic
B) programmer-defined
C) user-defined
D) primitive
سؤال
Members declared in the private part of a class definition can be accessed by any other class.
سؤال
The preprocessor directives ifndef, define, and __________ are used to prevent multiple definitions of the identifiers in header files.
سؤال
Which keyword should you insert in the member function defined below to protect "hours" from modification?
Int Clock::get_hours() __________ {
Return hours;
}

A) private
B) public
C) const
D) protected
سؤال
In the code segment below, the modifier "static" indicates that the constant VOTE_AGE is being defined for the class and does not have to be replicated in each instance.
static const int VOTE_AGE = 18;
سؤال
A constructor differs from a member function in that it has no __________.

A) local variables
B) name
C) parameter list
D) return type
سؤال
If we want to allow a class user to update or modify the value of a data field, we provide a __________ function beginning with the word set and ending with the name of the data field (for example, set_given_name).

A) modifier
B) constant
C) change
D) static
سؤال
In the context of the function header below, the operator "!=" is __________.
Bool operator!=(const Person& per) const;

A) overridden
B) overloaded
C) promoted
D) undefined
سؤال
Which of the following functions correctly condenses the body of can_vote () appearing directly below.
Bool Person::can_vote(int year) const {
Int the_age = age(year);
/* VOTE_AGE is a private data member of Person class*/
Return the_age >= VOTE_AGE;
}

A) bool Person::can_vote(int year) const {
return age(year) >= the_age;
}
B) bool Person::can_vote(int year) const {
return age(year) >= VOTE_AGE;
}
C) bool Person::can_vote(int year) const {
return the_age >= age(year);
}
D) bool Person::can_vote(int year) const {
return the_age >= VOTE_AGE;
}
سؤال
The expression __________ is a reference to the object pointed to by "this".
سؤال
A test that demonstrates that certain requirements of a particular class are met is called a __________ test.

A) specification
B) use
C) driver
D) unit
سؤال
One way to make code reusable is to __________ or combine a group of data elements representing an object together with its operations (functions and operators) in a separate program module (a class).
سؤال
If the data fields in a C++ class are private, they can be accessed only through public functions.
سؤال
The classes that declare the data fields and code member functions that perform the operations are said to __________ the ADT.

A) define
B) construct
C) implement
D) specify
سؤال
An ADT is a(n) __________ between the ADT designer and the programmer who codes a class that implements the ADT.
سؤال
As a general rule, you should write a(n) __________ comment for operations that change an object's state.
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/24
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 2: Introduction to Software Design
1
A software product is developed in a sequence of stages known as a life __________.
cycle
2
A(n) __________ specification for a new software product should be generated at the beginning of a project.
requirements
3
When designing software using __________ refinement, you start at the top level (the original problem) and divide it into subproblems.

A) piecemeal
B) iterative
C) stepwise
D) incremental
stepwise
4
Looking at the nouns in the problem statement can help you identify objects, and looking at the verbs can point to the __________.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
5
The common characteristics of a collection of similar objects define a class, and the interactions are identified as __________ that one object sends to another.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
6
An abstraction is a model of a physical entity or activity.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
7
In the __________ view of a data object, you can describe what information is stored in the data object without being specific as to how the information is organized and represented.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
8
In C++, the operators are called member __________.

A) functions
B) procedures
C) routines
D) methods
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
9
In C++ there are two kinds of types: the __________ and the class types.

A) basic
B) programmer-defined
C) user-defined
D) primitive
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
10
Members declared in the private part of a class definition can be accessed by any other class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
11
The preprocessor directives ifndef, define, and __________ are used to prevent multiple definitions of the identifiers in header files.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
12
Which keyword should you insert in the member function defined below to protect "hours" from modification?
Int Clock::get_hours() __________ {
Return hours;
}

A) private
B) public
C) const
D) protected
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
13
In the code segment below, the modifier "static" indicates that the constant VOTE_AGE is being defined for the class and does not have to be replicated in each instance.
static const int VOTE_AGE = 18;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
14
A constructor differs from a member function in that it has no __________.

A) local variables
B) name
C) parameter list
D) return type
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
15
If we want to allow a class user to update or modify the value of a data field, we provide a __________ function beginning with the word set and ending with the name of the data field (for example, set_given_name).

A) modifier
B) constant
C) change
D) static
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
16
In the context of the function header below, the operator "!=" is __________.
Bool operator!=(const Person& per) const;

A) overridden
B) overloaded
C) promoted
D) undefined
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
17
Which of the following functions correctly condenses the body of can_vote () appearing directly below.
Bool Person::can_vote(int year) const {
Int the_age = age(year);
/* VOTE_AGE is a private data member of Person class*/
Return the_age >= VOTE_AGE;
}

A) bool Person::can_vote(int year) const {
return age(year) >= the_age;
}
B) bool Person::can_vote(int year) const {
return age(year) >= VOTE_AGE;
}
C) bool Person::can_vote(int year) const {
return the_age >= age(year);
}
D) bool Person::can_vote(int year) const {
return the_age >= VOTE_AGE;
}
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
18
The expression __________ is a reference to the object pointed to by "this".
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
19
A test that demonstrates that certain requirements of a particular class are met is called a __________ test.

A) specification
B) use
C) driver
D) unit
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
20
One way to make code reusable is to __________ or combine a group of data elements representing an object together with its operations (functions and operators) in a separate program module (a class).
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
21
If the data fields in a C++ class are private, they can be accessed only through public functions.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
22
The classes that declare the data fields and code member functions that perform the operations are said to __________ the ADT.

A) define
B) construct
C) implement
D) specify
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
23
An ADT is a(n) __________ between the ADT designer and the programmer who codes a class that implements the ADT.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
24
As a general rule, you should write a(n) __________ comment for operations that change an object's state.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 24 في هذه المجموعة.