Home / CSE MCQs / C++ - MCQs :: Namespaces - C++

CSE MCQs :: C++ - MCQs

  1. Which operator is used to signify the namespace?
  2. A.
    conditional operator
    B.
    ternary operator
    C.
    scope operator
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Identify the correct statement
  4. A.
    Namespace is used to group class, objects and functions.
    B.
    Namespace is used to mark the beginning of the program.
    C.
    Namespace is used to seperate the class, objects.
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. What is the use of Namespace?
  6. A.
    To encapsulate the data
    B.
    To structure a program into logical units.
    C.
    Both a and b
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What is the general syntax for accessing the namespace variable?
  8. A.
    namespaceid::operator
    B.
    namespace,operator
    C.
    namespace#operator
    D.
    none of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which keyword is used to access the variable in namespace?
  10. A.
    using
    B.
    dynamic
    C.
    const
    D.
    static

    View Answer

    Workspace

    Discuss Discuss in Forum