Python Data Science Jobs & Interviews
19.6K subscribers
190 photos
4 videos
24 files
296 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
Download Telegram
Question 13 (Intermediate):
In NumPy, what is the difference between np.array([1, 2, 3]) and np.array([[1, 2, 3]])?

A) The first is a 1D array, the second is a 2D row vector
B) The first is faster to compute
C) The second automatically transposes the data
D) They are identical in memory usage

#Python #NumPy #Arrays #DataScience

By: https://t.iss.one/DataScienceQ
3
Question 1 (Advanced):
When using Python's multiprocessing module, why is if __name__ == '__main__': required for Windows but often optional for Linux/macOS?

A) Windows lacks proper fork() implementation
B) Linux handles memory management differently
C) macOS has better garbage collection
D) Windows requires explicit process naming

#Python #Multiprocessing #ParallelComputing #Advanced

By: https://t.iss.one/DataScienceQ