Multiple Choice
Consider the following statements: struct studentType1
{
string name;
int ID;
double gpa;
};
studentType1 student1,student2;
struct studentType2
{
string name;
int ID;
double gpa;
};
studentType2 student3,student4;
Which of the following statements is valid in C++?
A) student2 = student3;
B) student1 = student4;
C) student2.ID = ID;
D) student1.ID = student3.ID;
Correct Answer:

Verified
Correct Answer:
Verified
Q3: Consider the following statements: struct rectangleData<br>{<br>Double length;<br>Double
Q11: Consider the following statements: struct supplierType<br>{<br>
Q12: A(n)_ is a collection of a fixed
Q17: Figure 1:<br>struct newStudent<br>{<br> <span class="ql-formula" data-value="\quad"><span
Q18: You can use the assignment statement on
Q20: Figure 1:<br>struct newStudent<br>{<br> <span class="ql-formula" data-value="\quad"><span
Q21: Consider the following statements: struct personalInfo<br>{<br>
Q23: A struct variable can be passed as
Q37: In C++, the _ symbol is an
Q39: Consider the following statements: struct rectangleData<br>{<br>Double length;<br>Double