Question: 1. getName() is a typical example of a(n) ____ function. a. auxiliary b. predicate c. inspector d. manager 2 points QUESTION 2 1. sortAscending() is

1. getName() is a typical example of a(n) ____ function.

a.

auxiliary

b.

predicate

c.

inspector

d.

manager

2 points

QUESTION 2

1. sortAscending() is a typical example of a(n) ____ function.

a.

manager

b.

predicate

c.

auxiliary

d.

inspector

2 points

QUESTION 3

1. ____ functions perform some action or service, such as sorting data or searching for data.

a.

Inspector

b.

Auxiliary

c.

Predicate

d.

Mutator

2 points

QUESTION 4

1. A ____ is a collection of useful classes.

a.

class hierarchy

b.

module

c.

library

d.

superclass

2 points

QUESTION 5

1. The C++ directive ____ allows you to test whether a class has already been defined in a project; it means if not defined.

a.

#define

b.

#ifdef

c.

#endif

d.

#ifndef

2 points

QUESTION 6

1. ____ are simple routines that do nothing (or very little).

a.

Stubs

b.

Initialization lists

c.

Auxiliary functions

d.

Prototypes

2 points

QUESTION 7

1. The following code shows an example of ____: double square(double number) { return (number * number); }

a.

coupling

b.

functional cohesion

c.

tight coupling

d.

loose coupling

2 points

QUESTION 8

1. To use the applyTransaction() function as a friend to both the Customer and the Transaction class, you must use the following syntax: ____.

a.

friend void applyTransaction();

b.

friend void applyTransaction():Customer, Transaction;

c.

void applyTransaction(Customer, Transaction):friend;

d.

friend void applyTransaction(Customer, Transaction);

2 points

QUESTION 9

1. The ____ operator has left-to-right associativity.

a.

!

b.

->

c.

&

d.

~

2 points

QUESTION 10

1. Which of the following operators has the highest precedence?

a.

||

b.

%

c.

::

d.

new

2 points

QUESTION 11

1. The name of the function that overloads the + symbol is the ____ function.

a.

operator+()

b.

+operator()

c.

+()

d.

op+()

2 points

QUESTION 12

1. To ____ operations is to allow several operators to be used within the same expression.

a.

stack

b.

overload

c.

chain

d.

link

2 points

QUESTION 13

1. The operator<<() function overloads the ____ operator.

a.

pointer-to-member

b.

extraction

c.

insertion

d.

greater than

2 points

QUESTION 14

1. ____ is an example of overloading the prefix increment operator.

a.

Inventory& ++operator(int);

b.

Inventory& operator++(int);

c.

Inventory& operator++();

d.

Inventory& ++operator();

2 points

QUESTION 15

1. ____ is an example of overloading the postfix increment operator.

a.

Inventory& ++operator(int);

b.

Inventory& ++operator();

c.

Inventory& operator++(int);

d.

Inventory& operator++();

2 points

QUESTION 16

1. You can use the ____ as an alternate way to make assignments to an object.

a.

operator<>

b.

operator<<

c.

operator{}

d.

operator()

2 points

QUESTION 17

1. A(n) ____ is a very specific instance of a class.

a.

derived class

b.

superclass

c.

child class

d.

object

2 points

QUESTION 18

1. To create a class Customer that derives from the class Person, you should use the following syntax: class Customer ____ public Person // public may be replaced // by another class access // specifier { // other statements go here };

a.

->

b.

::

c.

extends

d.

:

2 points

QUESTION 19

1. Inheritance is said to use the ____ relationship.

a.

has a

b.

specializes

c.

is a

d.

extends

2 points

QUESTION 20

1. ____ data and functions can be accessed anywhere the class is in scope.

a.

public

b.

protected

c.

virtual

d.

private

2 points

QUESTION 21

1. A ____ function cannot be inherited.

a.

public

b.

protected

c.

friend

d.

virtual

2 points

QUESTION 22

1. C++ programmers usually use the ____ access specifier for inheritance.

a.

protected

b.

public

c.

friend

d.

private

2 points

QUESTION 23

1. Any child class function with the same name and argument list as the parent ____ the parent function.

a.

overrides

b.

overloads

c.

specializes

d.

generalizes

2 points

QUESTION 24

1. Any child class function with the same name as the parent, yet with an argument list that differs from the parents, ____ the parent function.

a.

overrides

b.

generalizes

c.

overloads

d.

specializes

2 points

QUESTION 25

1. What should be the first line of the class declaration for the class RV that is both a Vehicle and a Dwelling?

a.

class RV : public Vehicle, public Dwelling

b.

class RV : public Vehicle and implements public Dwelling

c.

class RV : public Vehicle Dwelling

d.

class RV : public Vehicle && public Dwelling

2 points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!