Py4e part 15 Questions and Answers| Latest
Update
Which of the following is NOT a good synonym for 'class' in Python?
A. blueprint
B. template
C. pattern
D. direction ANSWER-D
What does this Python statement do if PartyAnimal is a class?
zap = PartyAnimal()
A. Use the PartyAnimal template to make a new object and assign it to zap
B. Subtract the value of the zap variable from the value in the PartyAnimal variable and put the
difference in zap
C. Copy the value from the PartyAnimal variable to the variable zap
D. Clear out all the data in the PartyAnimal variable and put the old values for the data in zap
ANSWER-A
What is the syntax to look up the fullname attribute in an object stored in the variable colleen?
Update
Which of the following is NOT a good synonym for 'class' in Python?
A. blueprint
B. template
C. pattern
D. direction ANSWER-D
What does this Python statement do if PartyAnimal is a class?
zap = PartyAnimal()
A. Use the PartyAnimal template to make a new object and assign it to zap
B. Subtract the value of the zap variable from the value in the PartyAnimal variable and put the
difference in zap
C. Copy the value from the PartyAnimal variable to the variable zap
D. Clear out all the data in the PartyAnimal variable and put the old values for the data in zap
ANSWER-A
What is the syntax to look up the fullname attribute in an object stored in the variable colleen?