gs gs109 Python Modules - Python Pickle Module - Quiz No.2
gs gs109 Python Quiz
This quiz belongs to book/course code gs gs109 Python of gs organization. We have 134 quizzes available related to the book/course Python. This quiz has a total of 5 multiple choice questions (MCQs) to prepare and belongs to topic Python Modules. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to prepare online MCQs and quizzes.
NVAEducation also facilitates users to contribute in online competitions with other students to make a challenging situation to learn in a creative way. You can create one to one, and group competition on an topic of a book/course code. Also on NVAEducation you can get certifications by passing the online quiz test.
Question 1: Which of the following cannot be pickled?
Functions which are defined at the top level of a module with lambda
Functions which are defined at the top level of a module with def
Built-in functions which are defined at the top level of a module
Classes which are defined at the top level of a module
Question 2: If __getstate__() returns _______________ the __setstate__() module will not be called on pickling.
True value
False value
ValueError
OverflowError
Question 3: Lambda functions cannot be pickled because:
Lambda functions only deal with binary values, that is, 0 and 1
Lambda functions cannot be called directly
Lambda functions cannot be identified by the functions of the pickle module
All lambda functions have the same name, that is, <lambda>
Question 4: The module _______________ is a comparatively faster implementation of the pickle module.
cPickle
nPickle
gPickle
tPickle
Question 5: The copy module uses the ___________________ protocol for shallow and deep copy.
pickle
marshal
shelve
copyreg