Exam 9: Records (structs)

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

The syntax for accessing a struct member is structVariableName____.

(Multiple Choice)
4.8/5
(52)

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

(Multiple Choice)
4.8/5
(29)

To compare struct variables,you compare them ____.

(Multiple Choice)
4.8/5
(36)

In C++,struct is a(n)____________________ word.

(Short Answer)
4.8/5
(45)

Both arrays and structs are examples of ____________________ data types.

(Short Answer)
4.9/5
(46)

A(n)____________________ is a set of elements of the same type.

(Short Answer)
4.8/5
(35)

Figure 1: struct newStudent { \quad string firstName; \quad string lastName; \quad string courseGrade; \quad int testScore; \quad int programmingScore; }; int score; -Consider the accompanying struct definition in Figure 1.The statement that initializes the member testScore to 95 is ____________________.

(Short Answer)
4.9/5
(38)

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

(Multiple Choice)
4.8/5
(37)

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

(Multiple Choice)
4.9/5
(39)

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

(True/False)
4.8/5
(36)
Showing 41 - 50 of 50
close modal

Filters

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