What is wrong with this code?

``` class Person
{
private:
string name;
string address;
public:
People();
void SetName(string n);
void SetAddress(string a);
}; ```
A. The constructor has not initialized its variables.
B. There is no constructor.
C. Variables are passed into the set functions but nothing is returned.
D. None of the above.


B

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ consists of values or cell references used to calculate the result of the function.

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

Computer Science & Information Technology

Which of the following expressions is legal? Treat the effect of these as non-cumulative.

Suppose we have the following definition: ``` vector vec, vec1; //use push_back to put 10 values into vec instead vector::iterator p = vec.begin(); vector::const_iterator q = vec.begin(); ``` a) *p = 1; b) *q = 1; c) p = vec.end (); d) q = vec1.end();

Computer Science & Information Technology

In the IPv4 header, what is the size of the source and destination address fields?

A) 128 bits B) 32 bits C) 64 bits D) 16 bits

Computer Science & Information Technology

You are replaceing your old 802.11b wireless router with a new 802.1g wireless router. You have just changed the SSID, you enabled WPA2, and finally, you set a passphrase for the level of encryption chosen. What should you do NEXT?

a. Update your firmware b. Change the admin password c. Enable AES on the router d. Configure WEP

Computer Science & Information Technology