12th Class Computers Science Sample Paper Python Revision Tour-Sample Paper-4

  • question_answer
    Clear() and del are the same for deleting a dictionary

    A) True                 

    B) False

    C) None of these

    D) All of the above

    Correct Answer: B

    Solution :

    [b] No, clear and del are not the same. Clear can only delete the values from dictionary but dictionary still exist, in case of del, it will delete dictionary with values from memory


You need to login to perform this action.
You will be redirected in 3 sec spinner