Class string has member function __________ to interchange the data stored in two string objects

a. exchange
b. switch
c. swap
d. copyto

c. swap

Computer Science & Information Technology

You might also like to view...

A copy constructor must receive its argument by reference because:

a. Otherwise the constructor will only make a copy of a pointer to an object. b. Otherwise infinite recursion occurs. c. The copy of the argument passed by value has function scope. d. The pointer needs to know the address of the original data, not a temporary copy of it.

Computer Science & Information Technology

Following up on a tip that there is drug trafficking going on in a particular apartment, you knock on the door and ask if it is okay to enter. The person who answers the door identifies herself as the mother says it's okay to look around. Inside of the boy's bedroom, in a footlocker, you discover a baggie containing illegal drugs. You arrest the boy for possession. At the trial, the defense attorney argues that the person who answered the door did not have the authority to give permission for the search of the boy's bedroom because it was his "private domain." What is the result of that argument?

a. The objection is likely to be sustained because the mother had the authority to give permission to search the open areas of the bedroom but not to open any containers. b. The objection will be overruled because the mother had actual authority to give permission to search the bedroom. c. The objection will be overruled because the mother had apparent authority to give permission to examine the footlocker. d. The objection will be sustained because the police officers had probable cause to examine the footlocker.

Computer Science & Information Technology