logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What are the operators available in dynamic memory allocation?


  • Options
  • A. new
  • B. delete
  • C. compare
  • D. both a & b

  • Correct Answer
  • both a & b 

    Explanation

    new and delete operators are mainly used to allocate and deallocate
    during runtime.


  • Technology problems


    Search Results


    • 1. Where does the exception are handled?

    • Options
    • A. inside the program
    • B. outside the regular code
    • C. both a & b
    • D. none of these
    • Discuss
    • 2. Where does the exceptions are used?

    • Options
    • A. Exceptions are used when postconditions of a function cannot be satisfied.
    • B. Exceptions are used when postconditions of a function can be satisfied.
    • C. To preserve the program
    • D. none of these
    • Discuss
    • 3. How many kinds of entities are directly parameterized in c++?

    • Options
    • A. 1
    • B. 2
    • C. 3
    • D. 4
    • Discuss
    • 4. What is meant by template specialization?

    • Options
    • A. It will have certain data types to be fixed.
    • B. It will make certain data types to be dynamic.
    • C. Certain data types are invalid
    • D. None of the mentioned
    • Discuss
    • 5. What is a template?

    • Options
    • A. A template is a formula for creating a generic class
    • B. A template is used to manipulate the class
    • C. A template is used for creating the attributes
    • D. none of the mentioned
    • Discuss
    • 6. Why is it expensive to use objects for exception?

    • Options
    • A. Exception object is created only if an error actually happens
    • B. Because of execution time
    • C. Memory space involved in creating an exception object
    • D. None of the mentioned
    • Discuss
    • 7. Where does the standard exception classes are grouped?

    • Options
    • A. namespace std
    • B. error
    • C. catch
    • D. none of these
    • Discuss
    • 8. What will happen when introduce the interface of classes in a run-time polymorphic hierarchy?

    • Options
    • A. Separation of interface from implementation
    • B. Merging of interface from implementation
    • C. Separation of interface from debugging
    • D. None of the mentioned
    • Discuss
    • 9. What of the following describes protected access specifier?

    • Options
    • A. The variable is visible only outside inside the block
    • B. The variable is visible everywhere
    • C. The variable is visible to its block and to it?s derived class
    • D. None of these
    • Discuss
    • 10. What is the Run-Time Type Information?

    • Options
    • A. Information about an object?s datatype at runtime
    • B. Information about the variables
    • C. Information about the given block
    • D. None of these
    • Discuss


    Comments

    There are no comments.

Enter a new Comment