Exam 11: Structured Data

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

The expression s->m; indicates that s is a structure pointer and m is a structure member.

Free
(True/False)
4.7/5
(49)
Correct Answer:
Verified

True

The structure pointer operator is used to dereference a pointer to a structure, not a pointer that is a member of a structure.

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

True

With an enumerated data type, the enumerators are stored in memory as ________.

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

B

If an anonymous union is declared globally (outside all functions), it must be ________.

(Multiple Choice)
4.8/5
(39)

Passing a structure as a constant reference parameter to a function ________.

(Multiple Choice)
4.8/5
(36)

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

(True/False)
4.8/5
(29)

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

(Multiple Choice)
4.8/5
(40)

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

(Multiple Choice)
4.8/5
(44)

To dereference a structure pointer, the appropriate operator is ________.

(Multiple Choice)
4.8/5
(39)

The name of the structure is referred to as its ________.

(Multiple Choice)
4.9/5
(31)

Members of a(n)________ union have names, but the union itself has no name.

(Multiple Choice)
4.8/5
(27)

If Circle is a structure tag, the statement: Circle dosomething (circle c2) Can be the header line for a function that ________.

(Multiple Choice)
4.9/5
(39)

It is possible to output the contents of all members of a structure variable using a cout << statement followed by the name of the structure variable.

(True/False)
4.9/5
(37)

Data types that are created by the programmer are known as ________.

(Multiple Choice)
4.7/5
(37)

You may use a pointer to a structure as a ________.

(Multiple Choice)
4.8/5
(35)

If a function is legally prototyped to return an integer value, it can return a structure member that is an integer data type.

(True/False)
4.8/5
(45)

Look at the following statement. Look at the following statement.   This statement ________. This statement ________.

(Multiple Choice)
4.8/5
(41)

If a is a structure variable and p, a pointer, is a member of the structure, what will the following statement do? If a is a structure variable and p, a pointer, is a member of the structure, what will the following statement do?

(Multiple Choice)
4.8/5
(38)

An anonymous union declaration actually creates the member variables in memory.

(True/False)
4.8/5
(36)

This describes only the general characteristics of an object.

(Multiple Choice)
4.9/5
(39)
Showing 1 - 20 of 53
close modal

Filters

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