Multiple Choice
You want to use only one name,funct1,from name space MyNamespace.The directive #include "MyNamespace" has been places at the top of the file.You will call this function a large number of times in a block.Which of the following will make only the name funct1 available only in that block (not outside the block) ?
A) Place using namespace std;
Just after your #include directives.
B) Place using namespace MyNamespace;
Just after your other #include directives.
C) Place using namespace MyNamespace;
Just inside the block where you want to use funct1.
D) Place using MyNamespace::func1;
Just inside the block where you want to use funct1.
E) Place #include "MyNamespace" at the top of the file where you are using the name func1.
Correct Answer:

Verified
Correct Answer:
Verified
Q20: The following program has been partitioned into
Q21: You can use the static qualifier with
Q22: A namespace is just a class with
Q23: The scope of a using directive or
Q24: You can use #define to define a
Q26: Namespaces can be defined in pieces across
Q27: You can have a name spelled the
Q28: The include statement,#include <file.h> looks in the
Q29: The output from the following code is<br>"function".<br>(The
Q30: A namespace grouping requires a semicolon after