Exam 10: Classes and Data Abstraction

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

In C++, the scope resolution operator is ____.

(Multiple Choice)
4.8/5
(89)

If a function of a class is static, it is declared in the class definition using the keyword static in its ____.

(Multiple Choice)
4.8/5
(84)

Which of the following is true about classes and structs?

(Multiple Choice)
4.8/5
(85)

How many destructors can a class have?

(Multiple Choice)
4.9/5
(78)

  -Consider the UML class diagram shown in the accompanying figure.According to the UML class diagram, how many private members are in the class? -Consider the UML class diagram shown in the accompanying figure.According to the UML class diagram, how many private members are in the class?

(Multiple Choice)
4.9/5
(78)

A program or software that uses and manipulates the objects of a class is called a(n) ____________________ of that class.

(Short Answer)
4.8/5
(80)

As parameters to a function, class objects can be passed by reference only.

(True/False)
5.0/5
(83)

Non-static member variables of a class are called the ____________________ variables of the class.

(Short Answer)
4.9/5
(102)

With ____________________ functions, the definitions of the member functions are placed in the implementations file.

(Short Answer)
5.0/5
(78)

A(n) ____________________ contains the definitions of the functions to implement the operations of an object.

(Short Answer)
4.8/5
(81)

If an object is created in a user program, then the object can access both the public and private members of the class.

(True/False)
4.7/5
(69)

A class and its members can be described graphically using a notation known as the ____ notation.

(Multiple Choice)
4.8/5
(93)

If a member of a class is ____, you cannot access it outside the class.

(Multiple Choice)
4.9/5
(79)

  -The word ____ at the end of several the member functions in the accompanying figure class clockType specifies that these functions cannot modify the member variables of a clockType object. -The word ____ at the end of several the member functions in the accompanying figure class clockType specifies that these functions cannot modify the member variables of a clockType object.

(Multiple Choice)
4.8/5
(84)

A ____ sign in front of a member name on a UML diagram indicates that this member is a protected member.

(Multiple Choice)
4.8/5
(78)

If a class object is passed by ____________________, the contents of the member variables of the actual parameter are copied into the corresponding member variables of the formal parameter.

(Short Answer)
4.9/5
(73)

Figure 3: Figure 3:   -Consider the accompanying class and member functions definitions.How many constructors are present in the class definition? -Consider the accompanying class and member functions definitions.How many constructors are present in the class definition?

(Multiple Choice)
4.9/5
(77)

A destructor has the character ____, followed by the name of the class.

(Multiple Choice)
4.9/5
(82)

What does ADT stand for?

(Multiple Choice)
4.8/5
(79)

A class is an example of a structured data type.

(True/False)
4.8/5
(81)
Showing 21 - 40 of 43
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)