Exam 9: Records Structs

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

A struct is typically a ____ data structure.

(Multiple Choice)
5.0/5
(81)

You can declare struct variables when you define a struct.

(True/False)
4.8/5
(74)

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

(Short Answer)
4.8/5
(83)

In C++, the ____ symbol is an operator, called the member access operator.

(Multiple Choice)
4.9/5
(67)

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

(True/False)
5.0/5
(92)

A list has two items associated with it: ____.

(Multiple Choice)
4.9/5
(89)

The following statement defines a struct houseType with a total of ____________________ member(s). struct houseType { string style; int numOfBedrooms; int numOfBathrooms; int numOfCarsGarage; int yearBuilt; };

(Short Answer)
5.0/5
(74)

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

(Multiple Choice)
4.9/5
(78)

Which of the following aggregate operations can be executed on array variables?

(Multiple Choice)
4.8/5
(69)

To compare struct variables, you compare them ____.

(Multiple Choice)
4.8/5
(87)

The syntax for accessing a struct member is structVariableName____.

(Multiple Choice)
4.9/5
(83)

Relational operations can be used on struct variables.

(True/False)
4.8/5
(79)

A function can return a value of the type struct.

(True/False)
4.7/5
(83)

A struct is a(n) ____________________, not a declaration.

(Short Answer)
4.8/5
(83)

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

(Multiple Choice)
4.9/5
(85)

A struct variable can be passed as a parameter ____.

(Multiple Choice)
4.8/5
(70)

Consider the following statements: Consider the following statements:   personalInfo person1, person2; CommonInfo person3, person4; Which of the following statements is valid in C++? personalInfo person1, person2; CommonInfo person3, person4; Which of the following statements is valid in C++?

(Multiple Choice)
4.8/5
(82)

Arrays are passed by ____________________ only.

(Short Answer)
4.9/5
(70)

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++?

(Multiple Choice)
5.0/5
(75)

Consider the following statements: Consider the following statements:   studentType1 student1, student2; Struct studentType2 StudentType2 student3, student4; Which of the following statements is valid in C++?  studentType1 student1, student2; Struct studentType2 StudentType2 student3, student4; Which of the following statements is valid in C++? Consider the following statements:   studentType1 student1, student2; Struct studentType2 StudentType2 student3, student4; Which of the following statements is valid in C++?

(Multiple Choice)
4.8/5
(88)
Showing 21 - 40 of 40
close modal

Filters

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