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?

A. bigRect = {10};
B. bigRect.length = 10;
C. length[0]= 10;
D. bigRect[0]= 10


Answer: B

Computer Science & Information Technology

You might also like to view...

MC The __getattr__ method may be executed when an attribute is______ .

a) the right-hand value of an expression. b) passed to a function. c) assigned a new value. d) None of the above.

Computer Science & Information Technology

Which of the following was NOT e-evidence used to track the creator of the Melissa virus?

A) Hardware ID B) Key signature in e-mails from the perpetrator C) Operating system event log D) AOL return address

Computer Science & Information Technology

The definition of the function template copy is contained in the header file ____.

A. algorithm B. copy C. ioinput D. std

Computer Science & Information Technology

A(n) ________-hat hacker illegally penetrates a system simply to demonstrate the hacker's expertise to the system administrator.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology