Exam 9: Records (structs)
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Input/Output50 Questions
Exam 4: Control Structures I (Selection)50 Questions
Exam 5: Control Structures II (Repetition)50 Questions
Exam 6: User-Defined Functions50 Questions
Exam 7: User-Defined Simple Data Types, Namespaces, and the string Type50 Questions
Exam 8: Arrays and Strings50 Questions
Exam 9: Records (structs)50 Questions
Exam 10: Classes and Data Abstraction50 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, Abstract Classes, and Lists50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Linked Lists50 Questions
Exam 17: Stacks and Queues50 Questions
Exam 18: Searching and Sorting Algorithms50 Questions
Exam 19: Binary Trees50 Questions
Exam 20: Graphs50 Questions
Exam 21: Standard Template Library (STL)50 Questions
Select questions type
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)
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
{
string firstName;
string lastName;
string courseGrade;
int testScore;
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
{
double length;
double width;
double area;
double perimeter;
};
Which of the following variable declarations is correct?
(Multiple Choice)
4.8/5
(37)
Consider the following statements: struct rectangleData
{
double length;
double width;
double area;
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
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)