Exam 10: Defining Classes

arrow
  • Select Tags
search iconSearch Question
  • Select Tags

A member function that gets called automatically when an object of the class is declared is called a _______________.

(Short Answer)
4.8/5
(44)

When several items variables or variables and functions)are grouped together into a single package,that is known as ______________.

(Short Answer)
4.8/5
(31)

A Member function that allows the user of the class to see the value in a data member is known as

(Multiple Choice)
4.8/5
(41)

Which part of the ADT tells the programmer using it how to use it?

(Multiple Choice)
4.8/5
(41)

Who can access private members in a class?

(Short Answer)
4.8/5
(27)

Member functions of a class

(Multiple Choice)
4.7/5
(41)

All constructors for a class must be private.

(True/False)
4.9/5
(36)

A class member function may be private.

(True/False)
4.8/5
(44)

The keyword ________ defines a structure type definition.

(Short Answer)
4.8/5
(32)

A member function that allows the user of the class to find out the value of a private data type is called a ___________________.

(Short Answer)
4.7/5
(39)

A derived class is more specific than its parent,or base class.

(True/False)
4.9/5
(33)

In a struct,all members are ____________ by default

(Multiple Choice)
4.7/5
(40)

The constructor of a class that does not have any parameters is called a __________ constructor.

(Short Answer)
4.8/5
(27)

Which of the following is the correct function definition header for the getAge function which is a member of the Person class?

(Multiple Choice)
4.7/5
(27)

In a structure definition,the identifiers declared in the braces are called

(Multiple Choice)
4.8/5
(46)

A structure can only be passed to a function as a call-by-value parameter

(True/False)
4.8/5
(32)

You specify an individual member of a struct by using

(Multiple Choice)
4.9/5
(43)

Two different structure definitions may have the same member names.

(True/False)
4.8/5
(36)

A struct variable is declared differently from a predefined type such as an int.

(True/False)
4.9/5
(29)

The assignment operator may not be used with objects of a class.

(True/False)
4.9/5
(37)
Showing 21 - 40 of 50
close modal

Filters

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