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
(45)
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
(39)
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
(44)
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
(39)

Arrays are passed by ____________________ only.

(Short Answer)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(34)

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

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

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

(Short Answer)
4.9/5
(37)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.8/5
(39)

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

(Short Answer)
4.8/5
(31)

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

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

(Multiple Choice)
4.8/5
(30)

A struct is typically a ____ data structure.

(Multiple Choice)
4.9/5
(39)

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

A function can return a value of the type struct.

(True/False)
4.8/5
(49)

You can declare struct variables when you define a struct.

(True/False)
4.8/5
(42)

To compare struct variables, you compare them ____.

(Multiple Choice)
4.7/5
(40)

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
(36)
Showing 1 - 20 of 40
close modal

Filters

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