Exam 11: Structured Data

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

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

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

C

You cannot directly assign an enumerator to an int variable.

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

False

Look at the following statement. bookList[2].publisher[3] = 't'; This statement...

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

C

A declaration for an enumerated type begins with this key word.

(Multiple Choice)
4.9/5
(45)

The following union declaration appears on a system uses 4-byte ints and 8-byte doubles. union Numbers { \quad int integerNumber; \quad double doubleNumber; }; Numbers myNumber; myNumber.integerNumber = 1; True or False: After this code executes, the myNumber variable will occupy 4 bytes of memory.

(True/False)
4.8/5
(36)

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

(True/False)
4.8/5
(34)

Look at the following declaration. enum Tree { OAK, MAPLE, PINE }; What is the value of the following relational expression? OAK > PINE

(Multiple Choice)
5.0/5
(34)

A struct can contain members with varying data types.

(True/False)
4.9/5
(40)

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

(True/False)
4.8/5
(34)

Structure variables may be passed as arguments to functions.

(True/False)
4.8/5
(42)

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

(Multiple Choice)
4.8/5
(37)

This describes only the general characteristics of an object.

(Multiple Choice)
4.8/5
(36)

Any mathematical operations that can be performed on regular C++ variables can be performed on structure members.

(True/False)
4.7/5
(35)

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

(True/False)
4.7/5
(43)

A structure pointer contains:

(Multiple Choice)
4.8/5
(41)

This is required after the closing brace of the structure declaration.

(Multiple Choice)
5.0/5
(30)

The names of the enumerators in an enumerated data type must be enclosed in quotation marks.

(True/False)
4.8/5
(40)

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

(Multiple Choice)
4.9/5
(33)

Data types that are created by the programmer are known as:

(Multiple Choice)
4.7/5
(30)

A function cannot modify the members of a structure.

(True/False)
5.0/5
(32)
Showing 1 - 20 of 50
close modal

Filters

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