Python Data Science Jobs & Interviews
18.9K subscribers
151 photos
3 videos
17 files
263 links
Your go-to hub for Python and Data Science—featuring questions, answers, quizzes, and interview tips to sharpen your skills and boost your career in the data-driven world.

Admin: @Hussein_Sheikho
加入频道
Question 8 (Advanced):
What is the time complexity of checking if an element exists in a Python set?

A) O(1)
B) O(n)
C) O(log n)
D) O(n^2)

#Python #DataStructures #TimeComplexity #Advanced

By: https://yangx.top/DataScienceQ
1
Question 9 (Intermediate):
In SciPy, which function is used to solve ordinary differential equations (ODEs)?

A) scipy.optimize.minimize()
B) scipy.integrate.solve_ivp()
C) scipy.signal.lfilter()
D) scipy.linalg.solve()

#Python #SciPy #NumericalMethods #ODEs

By: https://yangx.top/DataScienceQ
2
Question 10 (Advanced):
In the Transformer architecture (PyTorch), what is the purpose of masked multi-head attention in the decoder?

A) To prevent the model from peeking at future tokens during training
B) To reduce GPU memory usage
C) To handle variable-length input sequences
D) To normalize gradient updates

#Python #Transformers #DeepLearning #NLP #AI

By: https://yangx.top/DataScienceQ
2
Question 11 (Expert):
In Vision Transformers (ViT), how are image patches typically converted into input tokens for the transformer encoder?

A) Raw pixel values are used directly
B) Each patch is flattened and linearly projected
C) Patches are processed through a CNN first
D) Edge detection is applied before projection

#Python #ViT #ComputerVision #DeepLearning #Transformers

By: https://yangx.top/DataScienceQ
1
Question 12 (Intermediate):
What is the key difference between @classmethod and @staticmethod in Python OOP?

A) Classmethods can modify class state, staticmethods can't
B) Staticmethods are inherited, classmethods aren't
C) Classmethods receive implicit first argument (cls), staticmethods receive no special first argument
D) Classmethods are faster to execute

#Python #OOP #ClassMethod #StaticMethod

By: https://yangx.top/DataScienceQ
3