Multiple Choice
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++?
A) cin >> bigRect.length >> width;
B) cout << bigRect.length;
C) cout << bigRect;
D) cout << length;
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Arrays are passed by _ only.
Q11: Typically, in a program, a struct is
Q17: A function can return a value of
Q19: To compare struct variables, you compare them
Q21: A struct is a(n) _, not a
Q23: A struct variable can be passed as
Q27: The syntax for accessing a struct member
Q36: Relational operations can be used on struct
Q37: Consider the following statements: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB4784/.jpg" alt="Consider
Q40: Consider the following statements: <img src="https://d2lvgg3v3hfg70.cloudfront.net/TB4784/.jpg" alt="Consider