Exam 9: Records Structs

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

Consider the following struct definition:Which of the following variable declarations is correct? Consider the following struct definition:Which of the following variable declarations is correct?

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

C

You can use an assignment statement to copy the contents of one struct into another struct of the same type.

Free
(True/False)
4.8/5
(86)
Correct Answer:
Verified

True

Consider the following statements: Consider the following statements:   rectangleData bigRect; Which of the following statements is valid in C++? rectangleData bigRect; Which of the following statements is valid in C++?

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

B

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

(True/False)
4.8/5
(80)

Arrays are passed by ____________________ only.

(Short Answer)
4.9/5
(74)

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

(Multiple Choice)
4.8/5
(72)

Consider the following statements. Consider the following statements.   Which of the following statements is valid in C++? Which of the following statements is valid in C++?

(Multiple Choice)
4.9/5
(70)

Consider the following statements: Consider the following statements:   rectangleData bigRect; Which of the following statements is valid in C++? rectangleData bigRect; Which of the following statements is valid in C++?

(Multiple Choice)
4.8/5
(83)

Memory is allocated for struct variables only when you ____________________ them.

(Short Answer)
4.9/5
(72)

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

(Multiple Choice)
4.8/5
(73)

Typically, in a program, a struct is defined ____ in the program.

(Multiple Choice)
4.8/5
(84)

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

(Short Answer)
4.8/5
(77)

Consider the following statements: Consider the following statements:   Which of the following best describes applianceList? Which of the following best describes applianceList?

(Multiple Choice)
4.9/5
(72)

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

(Multiple Choice)
4.9/5
(66)

A struct is typically a ____ data structure.

(Multiple Choice)
4.9/5
(88)

The following statement defines a struct houseType with a total of ____________________ member(s). The following statement defines a struct houseType with a total of ____________________ member(s).

(Short Answer)
5.0/5
(76)

A function can return a value of the type struct.

(True/False)
4.8/5
(90)

You can declare struct variables when you define a struct.

(True/False)
4.8/5
(81)

To compare struct variables, you compare them ____.

(Multiple Choice)
4.7/5
(86)

Consider the following struct definition:The statement that declares intList to be a struct variable of type listType is ____________________. Consider the following struct definition:The statement that declares intList to be a struct variable of type listType is ____________________.

(Short Answer)
4.8/5
(84)
Showing 1 - 20 of 40
close modal

Filters

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