Exam 9: Records Structs

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

A struct is typically a ____ data structure.

(Multiple Choice)
4.9/5
(36)

You can declare struct variables when you define a struct.

(True/False)
4.7/5
(38)

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

(Short Answer)
4.8/5
(35)

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

(Multiple Choice)
4.9/5
(35)

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

A list has two items associated with it: ____.

(Multiple Choice)
4.9/5
(41)

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)
4.9/5
(28)

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

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

(Multiple Choice)
4.8/5
(32)

To compare struct variables, you compare them ____.

(Multiple Choice)
4.8/5
(50)

The syntax for accessing a struct member is structVariableName____.

(Multiple Choice)
4.9/5
(36)

Relational operations can be used on struct variables.

(True/False)
4.8/5
(33)

A function can return a value of the type struct.

(True/False)
4.7/5
(36)

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

(Short Answer)
4.8/5
(41)

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

(Multiple Choice)
4.9/5
(35)

A struct variable can be passed as a parameter ____.

(Multiple Choice)
4.8/5
(39)

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

Arrays are passed by ____________________ only.

(Short Answer)
4.9/5
(32)

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)
4.9/5
(35)

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
(43)
Showing 21 - 40 of 40
close modal

Filters

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