Exam 11: Structured Data

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

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

(Multiple Choice)
4.8/5
(30)

Which of the following is required after the closing brace of the structure definition?

(Multiple Choice)
4.8/5
(30)

Data types that are created by the programmer are known as

(Multiple Choice)
4.9/5
(33)

Which of the following assigns a value to the hourlyWage member of employee[2]?

(Multiple Choice)
4.9/5
(42)

You may use a pointer to a structure as a

(Multiple Choice)
5.0/5
(28)

Given the structure definition shown, assume that circle1 and circle2 are variables of the Circle type and their members have been initialized. struct Circle { \quad double centerX; \quad double centerY; \quad double radius; }; Then, is it true or False that the following statement correctly determines whether the two variables' members contain the same data? if (circle1 == circle2)

(True/False)
4.9/5
(30)

A struct can contain members with varying data types.

(True/False)
4.8/5
(34)

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

(True/False)
4.8/5
(37)

Given the following decaration: Enum Tree { OAK, MAPLE, PINE }; What is the value of the following relational expression? OAK > PINE

(Multiple Choice)
4.8/5
(35)

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

(True/False)
4.9/5
(33)

If Circle is a structure tag, then the following statement can be the header line for a function that __________. Circle doSomething(Circle c2)

(Multiple Choice)
5.0/5
(39)

The following statement __________. bookList[2].publisher[3] = 't';

(Multiple Choice)
4.8/5
(31)

If a is a structure variable and p, a pointer, is a member of the structure, what will the following statement do? Cout << *a.p;

(Multiple Choice)
4.9/5
(35)

Which of the following describes only the general characteristics of an object?

(Multiple Choice)
4.8/5
(47)

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
(34)

To dereference a structure pointer, the appropriate operator is

(Multiple Choice)
4.8/5
(37)

A structure pointer contains

(Multiple Choice)
4.8/5
(30)

When you use a strongly typed enumerator in C++11 you must prefix the enumerator with the name of the enum followed by the : : operator.

(True/False)
4.8/5
(41)

A function __________ return a structure.

(Multiple Choice)
4.7/5
(36)

You cannot directly assign an enumerator to an int variable.

(True/False)
4.8/5
(39)
Showing 21 - 40 of 46
close modal

Filters

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