Exam 9: Records Structs
Exam 1: An Overview of Computers and Programming Languages50 Questions
Exam 2: Basic Elements of C50 Questions
Exam 3: Inputoutput50 Questions
Exam 4: Control Structures I Selection50 Questions
Exam 5: Control Structures II Repetition50 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 Structs50 Questions
Exam 10: Classes and Data Abstraction49 Questions
Exam 11: Inheritance and Composition50 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes50 Questions
Exam 13: Overloading and Templates50 Questions
Exam 14: Exception Handling50 Questions
Exam 15: Recursion50 Questions
Exam 16: Searching, Sorting and the Vector Type50 Questions
Exam 17: Linked Lists50 Questions
Exam 18: Stacks and Queues50 Questions
Select questions type
If a variable is passed by ____________________, then when the formal parameter changes, the actual parameter also changes.
(Short Answer)
4.9/5
(41)
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.8/5
(46)
You can use an assignment statement to copy the contents of one struct into another struct of the same type.
(True/False)
4.8/5
(38)
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
(29)
Memory is allocated for struct variables only when you ____________________ them.
(Short Answer)
4.9/5
(37)
Consider the following statements. struct circleData
{
double radius;
double area;
double circumference;
};
circleData circle;
Which of the following statements is valid in C++?
(Multiple Choice)
4.9/5
(41)
Consider the following statements: struct supplierType
{
string name;
int supplierID;
};
struct paintType
{
supplierType supplier;
string color;
string paintID;
};
paintType paint;
What is the data type of paint.supplier?
(Multiple Choice)
4.8/5
(33)
You can assign the value of one struct variable to another struct variable of ____ type.
(Multiple Choice)
4.8/5
(32)
Consider the following function prototype: int seqSearch(const listType& list, int searchItem);
The actual parameter cannot be modified by ____.
(Multiple Choice)
4.8/5
(33)
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
(39)
A(n) ____________________ is a collection of a fixed number of components in which the components are accessed by name.
(Short Answer)
4.9/5
(35)
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 firstName to Melissa is ____________________.
(Short Answer)
4.9/5
(38)
A(n) ____________________ is a set of elements of the same type.
(Short Answer)
4.7/5
(31)
Showing 21 - 40 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)