# CNN & Image Classification (Data Science & ML) > Convolutions, pooling, architectures (VGG, ResNet), transfer learning, data augmentation, fine-tuning - 24 interview questions - Senior - [Interview Questions: Data Science & ML](https://sharpskill.dev/en/technologies/data-science/interview-questions.md) ## 1. What is a convolution operation in a CNN? **Answer** A convolution is a mathematical operation that applies a filter (kernel) over an image by sliding this filter across the input and computing the dot product at each position. This allows extracting local features such as edges, textures, or patterns. Unlike dense networks where each neuron is connected to all inputs, convolution exploits the spatial structure of images by sharing filter weights across the entire image. ## 2. What is the role of stride in a convolution layer? **Answer** Stride defines the step size when moving the filter across the image. A stride of 1 moves the filter by one pixel at each step, while a stride of 2 moves it by 2 pixels, thus reducing the output size. Increasing stride allows reducing the spatial dimension of the feature map and computational cost, but may also cause information loss if the stride is too large. ## 3. What is the purpose of padding in a convolution layer? **Answer** Padding consists of adding pixels (usually zeros) around the input image before applying convolution. This allows controlling the output size and preserving information at image edges. With 'same' padding, the output has the same size as input, while with 'valid' (no padding), the size decreases. Padding also prevents edge pixels from being underrepresented in feature maps. ## 21 more questions available - What is the difference between Max Pooling and Average Pooling? - What is a feature map in a CNN? Sign up for free: https://sharpskill.dev/en/login ## Other Data Science & ML interview topics - [Python Basics](https://sharpskill.dev/en/technologies/data-science/interview-questions/python-basics.md): 25 questions, Junior - [Python Object-Oriented Programming](https://sharpskill.dev/en/technologies/data-science/interview-questions/python-oop.md): 20 questions, Junior - [Python Data Structures](https://sharpskill.dev/en/technologies/data-science/interview-questions/python-data-structures.md): 20 questions, Junior - [Git Fundamentals](https://sharpskill.dev/en/technologies/data-science/interview-questions/git-fundamentals.md): 18 questions, Junior - [SQL Basics](https://sharpskill.dev/en/technologies/data-science/interview-questions/sql-basics.md): 20 questions, Junior - [NumPy Fundamentals](https://sharpskill.dev/en/technologies/data-science/interview-questions/numpy-fundamentals.md): 22 questions, Junior - [Pandas Basics](https://sharpskill.dev/en/technologies/data-science/interview-questions/pandas-basics.md): 22 questions, Junior - [Jupyter & Google Colab](https://sharpskill.dev/en/technologies/data-science/interview-questions/jupyter-colab.md): 16 questions, Junior - [SQL Joins & Advanced Queries](https://sharpskill.dev/en/technologies/data-science/interview-questions/sql-joins-advanced.md): 22 questions, Mid-Level - [Advanced Pandas](https://sharpskill.dev/en/technologies/data-science/interview-questions/pandas-advanced.md): 24 questions, Mid-Level - [Visualization with Matplotlib & Seaborn](https://sharpskill.dev/en/technologies/data-science/interview-questions/matplotlib-seaborn.md): 20 questions, Mid-Level - [Interactive Visualizations with Plotly](https://sharpskill.dev/en/technologies/data-science/interview-questions/plotly-interactive.md): 18 questions, Mid-Level - [Descriptive Statistics](https://sharpskill.dev/en/technologies/data-science/interview-questions/statistics-descriptive.md): 20 questions, Mid-Level - [Inferential Statistics](https://sharpskill.dev/en/technologies/data-science/interview-questions/statistics-inferential.md): 24 questions, Mid-Level - [Web Scraping](https://sharpskill.dev/en/technologies/data-science/interview-questions/web-scraping.md): 18 questions, Mid-Level - [BigQuery & Cloud Data](https://sharpskill.dev/en/technologies/data-science/interview-questions/bigquery-cloud.md): 18 questions, Mid-Level - [Feature Engineering](https://sharpskill.dev/en/technologies/data-science/interview-questions/feature-engineering.md): 22 questions, Mid-Level - [Supervised ML: Regression](https://sharpskill.dev/en/technologies/data-science/interview-questions/ml-supervised-regression.md): 24 questions, Mid-Level - [Supervised ML: Classification](https://sharpskill.dev/en/technologies/data-science/interview-questions/ml-supervised-classification.md): 24 questions, Mid-Level - [Decision Trees & Ensembles](https://sharpskill.dev/en/technologies/data-science/interview-questions/ml-trees-ensembles.md): 24 questions, Mid-Level - [Unsupervised ML](https://sharpskill.dev/en/technologies/data-science/interview-questions/ml-unsupervised.md): 22 questions, Mid-Level - [ML Pipelines & Validation](https://sharpskill.dev/en/technologies/data-science/interview-questions/ml-pipelines-validation.md): 22 questions, Mid-Level - [Time Series & Forecasting](https://sharpskill.dev/en/technologies/data-science/interview-questions/time-series-forecasting.md): 22 questions, Mid-Level - [Deep Learning Fundamentals](https://sharpskill.dev/en/technologies/data-science/interview-questions/deep-learning-fundamentals.md): 24 questions, Senior - [TensorFlow & Keras](https://sharpskill.dev/en/technologies/data-science/interview-questions/tensorflow-keras.md): 22 questions, Senior - [RNN & Sequences](https://sharpskill.dev/en/technologies/data-science/interview-questions/rnn-sequences.md): 22 questions, Senior - [Transformers & Attention](https://sharpskill.dev/en/technologies/data-science/interview-questions/transformers-attention.md): 24 questions, Senior - [NLP & Hugging Face](https://sharpskill.dev/en/technologies/data-science/interview-questions/nlp-huggingface.md): 24 questions, Senior - [GenAI & LangChain](https://sharpskill.dev/en/technologies/data-science/interview-questions/genai-langchain.md): 24 questions, Senior - [MLOps & Deployment](https://sharpskill.dev/en/technologies/data-science/interview-questions/mlops-deployment.md): 24 questions, Senior --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/en/technologies/data-science/interview-questions/cnn-image-classification