1. Home
  2. Subjects
  3. Data Science

Data Science MCQs · Page 7

1,613 multiple choice questions with answers across 28 topics.

Showing 151–175 of 1,613

What is the output of the following Python code snippet?

class A:
__slots__ = ('x',)
a = A()
try:
a.y = 10
except AttributeError:
print('AttributeError')
  1. AttributeError Correct answer
  2. 10
  3. None
  4. Error
MCQSEXAM Read explanation