Multiple Choice
Why will the following code not compile?
Namespace ns1
{
Void print) ;
Void display1) {};
}
Namespace ns2
{
Void print) ;
Void display2) {};
}
Int main)
{
Using namespace ns1;
Using namespace ns2;
Display1) ;
Display2) ;
Print) ;
Return 0;
}
A) The call to print is ambiguous
B) We have not included the iostream library
C) We have not used namespace std
D) It will compile
Correct Answer:

Verified
Correct Answer:
Verified
Q15: The statement using namespace std and the
Q16: Connecting the application and implementation files together
Q17: In order to make a user-defined ADT
Q18: Which file name will end in a
Q19: cin and cout are defined in the
Q21: If you have a class defined in
Q22: The file that contains the definition of
Q23: If you have a class defined in
Q24: If you want to only use cin
Q25: The identifier used in the #ifndef directive