Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What is the memory layout of instance variables in CPython in Python?
Auto Skip
Report Issue
A.
__dict__ and __slots__ use the same memory area
B.
All instance variables are kept in a global dict
C.
Without __slots__ PyObject header + __dict__ pointer; with __slots__ fixed-size struct; noticeable with millions of instances
D.
Instance variables are kept on the stack in CPython
Previous
Next