Python Data Science Jobs & Interviews
19.6K subscribers
195 photos
4 videos
24 files
301 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 2 (Expert):
In Python's GIL (Global Interpreter Lock), what is the primary reason it allows only one thread to execute Python bytecode at a time, even on multi-core systems?

A) To prevent race conditions in memory management
B) To simplify the CPython implementation
C) To reduce power consumption
D) To improve single-thread performance

#Python #GIL #Concurrency #CPython

By: https://t.iss.one/DataScienceQ
Question 3 (Intermediate):
In Tkinter, what is the correct way to make a widget expand to fill available space in its parent container?

A) widget.pack(expand=True)
B) widget.grid(sticky='nsew')
C) widget.place(relwidth=1.0)
D) All of the above

#Python #Tkinter #GUI #Widgets

By: https://t.iss.one/DataScienceQ
Question 4 (Intermediate):
In scikit-learn's KMeans implementation, what is the purpose of the n_init parameter?

A) Number of initial centroid configurations to try
B) Number of iterations for each run
C) Number of features to initialize
D) Number of CPU cores to use

#Python #KMeans #Clustering #MachineLearning

By: https://t.iss.one/DataScienceQ
2
Question 20 (Beginner):
What is the output of this Python code?

x = [1, 2, 3]
y = x
y.append(4)
print(x)



A) [1, 2, 3]
B) [1, 2, 3, 4]
C) [4, 3, 2, 1]
D) Raises an error

#Python #Lists #Variables #Beginner

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

**Correct answer: B) `[1, 2, 3, 4]`**

*Explanation:
- `y = x` creates a reference to the same list object
- Modifying `y` affects `x` because they point to the same memory location
- To create an independent copy, use
y = x.copy() or y = list(x)*
Question 21 (Beginner):
What is the correct way to check the Python version installed on your system using the command line?

A) python --version
B) python -v
C) python --v
D) python version

#Python #Basics #Programming #Beginner

By: https://t.iss.one/DataScienceQ
1
Question 22 (Interview-Level):
Explain the difference between deepcopy and regular assignment (=) in Python with a practical example. Then modify the example to show how deepcopy solves the problem.

import copy

# Original Problem
original = [[1, 2], [3, 4]]
shallow_copy = original.copy()
shallow_copy[0][0] = 99
print(original) # What happens here?

# Solution with deepcopy
deep_copied = copy.deepcopy(original)
deep_copied[1][0] = 77
print(original) # What happens now?


Options:
A) Both modify the original list
B) copy() creates fully independent copies
C) Shallow copy affects nested objects, deepcopy doesn't
D) deepcopy is slower but creates true copies

#Python #Interview #DeepCopy #MemoryManagement

By: https://t.iss.one/DataScienceQ
2
Question 23 (Advanced):
How does Python's "Name Mangling" (double underscore prefix) work in class attribute names, and what's its practical purpose?

class Test:
def __init__(self):
self.public = 10
self._protected = 20
self.__private = 30 # Name mangling

obj = Test()
print(dir(obj)) # What happens to __private?


Options:
A) Completely hides the attribute
B) Renames it to _Test__private
C) Makes it immutable
D) Converts it to a method

#Python #OOP #NameMangling #Advanced

By: https://t.iss.one/DataScienceQ
Question 24 (Advanced - NSFW Detection):
When implementing NSFW (Not Safe For Work) content detection in Python, which of these approaches provides the best balance between accuracy and performance?

A) Rule-based keyword filtering
B) CNN-based image classification (e.g., MobileNetV2)
C) Transformer-based multimodal analysis (e.g., CLIP)
D) Metadata analysis (EXIF data, file properties)

#Python #NSFW #ComputerVision #DeepLearning

By: https://t.iss.one/DataScienceQ
2
Question 25 (Advanced - CNN Implementation in Keras):
When building a CNN for image classification in Keras, what is the purpose of Global Average Pooling 2D as the final layer before classification?

A) Reduces spatial dimensions to 1x1 while preserving channel depth
B) Increases receptive field for better feature extraction
C) Performs pixel-wise normalization
D) Adds non-linearity before dense layers

#Python #Keras #CNN #DeepLearning

By: https://t.iss.one/DataScienceQ
2
Question 26 (Intermediate - Edge Detection):
In Python's OpenCV, which of these edge detection techniques preserves edge directionality while reducing noise?

A) cv2.Laplacian()
B) cv2.Canny()
C) cv2.Sobel() with dx=1, dy=1
D) cv2.blur() + thresholding

#Python #OpenCV #EdgeDetection #ComputerVision

By: https://t.iss.one/DataScienceQ
1
Question 27 (Intermediate - List Operations):
What is the time complexity of the list.insert(0, item) operation in Python, and why?

A) O(1) - Constant time (like appending)
B) O(n) - Linear time (shifts all elements)
C) O(log n) - Logarithmic time (binary search)
D) O(n²) - Quadratic time (worst-case)

#Python #DataStructures #TimeComplexity #Lists

By: https://t.iss.one/DataScienceQ
Question 30 (Intermediate - PyTorch):
What is the purpose of torch.no_grad() context manager in PyTorch?

A) Disables model training
B) Speeds up computations by disabling gradient tracking
C) Forces GPU memory cleanup
D) Enables distributed training

#Python #PyTorch #DeepLearning #NeuralNetworks

By: https://t.iss.one/DataScienceQ
🔥1
Question 31 (Intermediate - Django ORM):
When using Django ORM's select_related() and prefetch_related() for query optimization, which statement is correct?

A) select_related uses JOINs (1 SQL query) while prefetch_related uses 2+ queries
B) Both methods generate exactly one SQL query
C) prefetch_related works only with ForeignKey relationships
D) select_related is better for many-to-many relationships

#Python #Django #ORM #Database

By: https://t.iss.one/DataScienceQ
1🔥1
Question 32 (Advanced - NLP & RNNs):
What is the key limitation of vanilla RNNs for NLP tasks that led to the development of LSTMs and GRUs?

A) Vanishing gradients in long sequences
B) High GPU memory usage
C) Inability to handle embeddings
D) Single-direction processing only

#Python #NLP #RNN #DeepLearning

By: https://t.iss.one/DataScienceQ
3
🚀 Comprehensive Guide: How to Prepare for an Image Processing Job Interview – 500 Most Common Interview Questions

Let's start: https://hackmd.io/@husseinsheikho/IP

#ImageProcessing #ComputerVision #OpenCV #Python #InterviewPrep #DigitalImageProcessing #MachineLearning #AI #SignalProcessing #ComputerGraphics

✉️ Our Telegram channels: https://t.iss.one/addlist/0f6vfFbEMdAwODBk

📱 Our WhatsApp channel: https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Please open Telegram to view this post
VIEW IN TELEGRAM
3
🚀 2025 FREE Study Recourses from SPOTO for y’all — Don’t Miss Out!
100% Free Downloads
No signup / spam

📘 #Python, Cybersecurity & Excel: https://bit.ly/4lYeVYp
📊 #Cloud Computing: https://bit.ly/45Rj1gm
☁️ #AI Kits: https://bit.ly/4m4bHTc
🔐 #CCNA Courses: https://bit.ly/45TL7rm
🧠 Free Online Practice – Test Now: https://bit.ly/41Kurjr

September 8th to 21th, SPOTO launches the Lowest Price Ever on ALL products! 🔥
Amazing Discounts for 📌 CCNA 200-301 📌 CCNP 400-007 and more…
📲 Contact admin to grab them: https://wa.link/uxde01
3
Python Cheat Sheet

📖 Compact Python cheat sheet covering setup, syntax, data types, variables, strings, control flow, functions, classes, errors, and I/O.

🏷️ #Python
3
Advanced Python Test

1. What is the output of the following code?
def func(x, l=[]):
for i in range(x):
l.append(i * i)
return l

print(func(2))
print(func(3, []))
print(func(3))

A) [0, 1] [0, 1, 4] [0, 1, 4]
B) [0, 1] [0, 1, 4] [0, 1, 4, 0, 1, 4]
C) [0, 1] [0, 1, 4] [0, 1, 4, 0, 1, 4, 0, 1, 4]
D) [0, 1] [0, 1, 4] [0, 1, 4, 0, 1, 4, 0, 1, 4, 0, 1, 4]

2. Which statement about metaclasses in Python is TRUE?
A) A metaclass is used to create class instances
B) The __call__ method of a metaclass controls instance creation
C) All classes must explicitly specify a metaclass
D) Metaclasses cannot inherit from other metaclasses

3. What does this decorator do?
from functools import wraps

def debug(func):
@wraps(func)
def wrapper(*args, **kwargs):
print(f"Calling {func.__name__}")
return func(*args, **kwargs)
return wrapper

A) Measures function execution time
B) Logs function calls with arguments
C) Prints the function name when called
D) Prevents function execution in debug mode

4. What is the purpose of context managers?
A) To manage class inheritance hierarchies
B) To handle resource allocation and cleanup
C) To create thread-safe operations
D) To optimize memory usage in loops

#Python #AdvancedPython #CodingTest #ProgrammingQuiz #PythonDeveloper #CodeChallenge


By: t.iss.one/DataScienceQ 🚀
3
Here are links to the most important free Python courses with a brief description of their value.


1. Coursera: Python for Everybody
Link: https://www.coursera.org/specializations/python
Importance: A perfect starting point for absolute beginners. Covers Python fundamentals and basic data structures, leading to web scraping and database access.

2. freeCodeCamp: Scientific Computing with Python
Link: https://www.freecodecamp.org/learn/scientific-computing-with-python/
Importance: Project-based certification. You build applications like a budget app or a time calculator, reinforcing learning through practical, portfolio-worthy projects.

3. Harvard's CS50P: CS50's Introduction to Programming with Python
Link: https://cs50.harvard.edu/python/2022/
Importance: A rigorous university-level course. Teaches core concepts and problem-solving skills with exceptional depth and clarity, preparing you for complex programming challenges.

4. Real Python Tutorials
Link: https://realpython.com/
Importance: An extensive resource for all levels. Offers in-depth articles, tutorials, and code examples on nearly every Python topic, from basics to advanced specialized libraries.

5. W3Schools Python Tutorial
Link: https://www.w3schools.com/python/
Importance: Excellent for quick reference and interactive learning. Allows you to read a concept and test code directly in the browser, ideal for fast learning and checking syntax.

6. Google's Python Class
Link: https://developers.google.com/edu/python
Importance: A concise, fast-paced course for those with some programming experience. Includes lecture videos and well-designed exercises to quickly get up to speed.

#Python #LearnPython #PythonProgramming #Coding #FreeCourses #PythonForBeginners #Developer #Programming


By: t.iss.one/DataScienceQ 🚀
2👍1
This media is not supported in your browser
VIEW IN TELEGRAM
This GitHub repository is a real treasure trove of free programming books.

Here you'll find hundreds of books on topics like #AI, #blockchain, app development, #game development, #Python #webdevelopment, #promptengineering, and many more

GitHub: https://github.com/EbookFoundation/free-programming-books

https://t.iss.one/CodeProgrammer
Please open Telegram to view this post
VIEW IN TELEGRAM