Exam 9: Records Structs

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

Consider the following statements. struct circleData { Double radius; Double area; Double circumference; }; CircleData circle; Which of the following statements is valid in C++?

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

D

Consider the following statements: Consider the following statements:   applianceType applianceList[25]; Which of the following best describes applianceList? applianceType applianceList[25]; Which of the following best describes applianceList?

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

C

Consider the following statements: struct rectangleData { Double length; Double width; Double area; Double perimeter; }; RectangleData bigRect; Which of the following statements is valid in C++?

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

B

Aggregate input/output operations are allowed on a struct variable.

(True/False)
4.8/5
(40)

Consider the following struct definition: const int ARRAY_SIZE = 1000; struct listType { int listElem[ARRAY_SIZE]; int listLength; }; The statement that declares intList to be a struct variable of type listType is ____________________.

(Short Answer)
4.8/5
(40)

Consider the following statements: Consider the following statements:   applianceType applianceList[25]; Which of the following statements correctly initializes the cost of each appliance to 0? applianceType applianceList[25]; Which of the following statements correctly initializes the cost of each appliance to 0?

(Multiple Choice)
4.9/5
(43)

Data in a struct variable must be read one member at a time.

(True/False)
4.8/5
(43)

A function can return a value of the type array.

(True/False)
4.8/5
(40)

Which of the following is an allowable aggregate operation on a struct?

(Multiple Choice)
4.8/5
(30)

An array name and index are separated using ____.

(Multiple Choice)
4.9/5
(41)

If a variable is passed by ____________________, then when the formal parameter changes, the actual parameter also changes.

(Short Answer)
4.8/5
(32)

To access a structure member (component), you use the struct variable name together with the member name; these names are separated by a dot (period).

(True/False)
4.9/5
(38)

Consider the following statements: Consider the following statements:   paintType paint; What is the data type of paint.supplier? paintType paint; What is the data type of paint.supplier?

(Multiple Choice)
4.9/5
(33)

In structs, you access a component by using the struct name together with the relative position of the component.

(True/False)
4.9/5
(44)

Consider the following statements: struct rectangleData { Double length; Double width; Double area; Double perimeter; }; RectangleData bigRect; Which of the following statements correctly initializes the component length of bigRect?

(Multiple Choice)
4.9/5
(37)

Consider the following function prototype: int seqSearch(const listType& list, int searchItem); The actual parameter cannot be modified by ____.

(Multiple Choice)
4.9/5
(44)

Which of the following struct definitions is correct in C++?

(Multiple Choice)
4.7/5
(35)

Consider the following struct definition: struct rectangleData { Double length; Double width; Double area; Double perimeter; }; Which of the following variable declarations is correct?

(Multiple Choice)
4.8/5
(40)

You can assign the value of one struct variable to another struct variable of ____ type.

(Multiple Choice)
4.9/5
(35)

The components of a struct are called the ____ of the struct.

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

Filters

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