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

CSE MCQs :: C++ - MCQs

  1. Which is similar to template specialization?
  2. A.
    template
    B.
    function overloading
    C.
    function template overloading
    D.
    None of the mentioned

  3. Which is called on allocating the memory for array of objects?
  4. A.
    destructor
    B.
    constructor
    C.
    method
    D.
    None of the mentioned

  5. How many types of specialization are there in c++?
  6. A.
    1
    B.
    2
    C.
    3
    D.
    4

  7. What is other name of full specialization?
  8. A.
    explicit specialization
    B.
    implicit specialization
    C.
    function overloading template
    D.
    None of the mentioned

  9. Which is dependant on template parameter?
  10. A.
    base class
    B.
    abstract class
    C.
    method
    D.
    None of the mentioned

  11. Which value is placed in the base class?
  12. A.
    derived values
    B.
    default type values
    C.
    both a & b
    D.
    None of the mentioned

  13. How many bits of memory needed for internal representation of class?
  14. A.
    1
    B.
    2
    C.
    4
    D.
    no memory needed

  15. How many kinds of entities are directly parameterized in c++?
  16. A.
    1
    B.
    2
    C.
    3
    D.
    4

  17. How many kinds of parameters are there in C++?
  18. A.
    1
    B.
    2
    C.
    3
    D.
    4

  19. Which is used to get the input during runtime?
  20. A.
    cout
    B.
    cin
    C.
    coi
    D.
    None of the mentioned