Exam 11: Structured Data

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

Look at the following structure declaration. Look at the following structure declaration.

(True/False)
4.8/5
(35)

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.

(True/False)
4.8/5
(39)

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.9/5
(40)

A function cannot modify the members of a structure.

(True/False)
4.9/5
(27)

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

(True/False)
4.9/5
(35)

A function ________ return a structure.

(Multiple Choice)
4.8/5
(42)

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.9/5
(42)

If Circle is a structure, the statement: If Circle is a structure, the statement:

(Multiple Choice)
4.8/5
(33)

A union can only have one member.

(True/False)
4.7/5
(28)

You can define any number of union variables, but each variable can only store the value of one member at a time.

(True/False)
5.0/5
(40)

A struct can contain members with varying data types.

(True/False)
4.7/5
(41)

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

(Multiple Choice)
4.8/5
(38)

A structure ________ contain members of the same data type.

(Multiple Choice)
4.7/5
(46)

Look at the following declaration.Look at the following declaration.  What is the value of the following relational expression? OAK > PINE What is the value of the following relational expression? OAK > PINE

(Multiple Choice)
4.9/5
(34)

Look at the following structure declaration. Look at the following structure declaration.   In this declaration, Employee is: In this declaration, Employee is:

(Multiple Choice)
4.8/5
(34)

Structure variables may be passed as arguments to functions.

(True/False)
4.8/5
(23)

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.8/5
(30)

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

(True/False)
4.8/5
(34)

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

(True/False)
4.7/5
(31)

You cannot directly assign an enumerator to an int variable.

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

Filters

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