Exam 11: Structured Data

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

The expression *s->p; indicates that s is a structure pointer and p, which is also a pointer, is a member of the structure pointed to by s.

Free
(True/False)
4.9/5
(30)
Correct Answer:
Verified

True

A structure __________ contain members of the same data type.

Free
(Multiple Choice)
4.9/5
(37)
Correct Answer:
Verified

B

You cannot directly assign an integer value to an enum variable.

Free
(True/False)
4.9/5
(31)
Correct Answer:
Verified

True

A good reason to pass a structure as a constant reference is

(Multiple Choice)
4.8/5
(32)

In C++11 if you want to retrieve a strongly typed enumerator's underlying integer value, you must use a cast operator.

(True/False)
4.9/5
(25)

Passing a structure as a constant reference parameter to a function

(Multiple Choice)
4.8/5
(33)

If Circle is a structure, what does the following statement do? Circle *pcirc = nullptr;

(Multiple Choice)
4.8/5
(33)

In C++11, you can use a new type of enum known as a(n) __________ (also known as an enum class) to have multiple enumerators with the same name, within the same scope.

(Multiple Choice)
4.8/5
(36)

The name of a structure is referred to as its

(Multiple Choice)
4.7/5
(30)

It is possible for a structure to contain, as a member, a pointer to its own structure type.

(True/False)
4.8/5
(35)

Before a structure can be used it must be

(Multiple Choice)
4.8/5
(35)

A declaration for an enumerated type begins with the __________ key word.

(Multiple Choice)
4.9/5
(31)

Which of the following is an example of a C++ primitive data type?

(Multiple Choice)
4.8/5
(24)

Given the following structure decaration, Employee is struct Employee { String name; Int idNum; };

(Multiple Choice)
4.9/5
(38)

A function cannot modify the members of a structure.

(True/False)
4.9/5
(43)

After the following statement executes, what value will the MAPLE enumerator be stored as, in memory? Enum Tree { OAK, MAPLE, PINE };

(Multiple Choice)
4.7/5
(35)

When a programmer creates an abstract data type, he or she can decide what values are acceptable for the data type, as well as what operations may be performed on the data type.

(True/False)
4.8/5
(33)

When a structure is passed __________ to a function, its members are not copied.

(Multiple Choice)
4.8/5
(39)

It is possible for a structure variable to be a member of another structure variable.

(True/False)
4.8/5
(43)

Which of the following statements outputs the value of the gpa member of element [1] of the student array?

(Multiple Choice)
4.8/5
(41)
Showing 1 - 20 of 46
close modal

Filters

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