Skip to content
elevatedevco

Deep Learning

Neural networks explained simply

Learn Neural networks explained simply: 40 practice questions and answers with an interactive quiz — from the offline AI Learning app.

Intermediate40 questions40 quiz questions

Questions & Answers

Tap a question to reveal its answer. Written for self-study and interview preparation.

What is a neural network in simple words?

A neural network is a computer system loosely inspired by how the brain works. It is made of many small units called neurons that are connected together, and it learns patterns from examples instead of being given fixed rules. After learning, it can make predictions on new data it has never seen before.

What is an artificial neuron?

An artificial neuron is the basic building block of a neural network. It takes in several numbers, multiplies each by a weight, adds them up along with a bias, and passes the result through an activation function to produce an output. Many neurons working together let the network learn complex patterns.

What is a 'weight' in a neural network?

A weight is a number that tells the network how important a particular input is. During learning, the network adjusts its weights so that important inputs have a bigger effect on the answer. Good weights are what allow the network to make accurate predictions.

What does a 'bias' do in a neuron?

A bias is an extra number added to a neuron's weighted sum before the activation function. It lets the neuron shift its output up or down, so it can fire even when all inputs are zero. This makes the network more flexible in fitting the data.

What are the three main types of layers in a neural network?

A neural network usually has an input layer, one or more hidden layers, and an output layer. The input layer receives the data, the hidden layers do the internal processing and pattern-finding, and the output layer gives the final answer. Data flows from the input through the hidden layers to the output.

Why are they called 'hidden' layers?

Hidden layers are called hidden because they sit between the input and output layers, so we do not directly see their values as input or final answer. They do the internal work of combining and transforming features. We usually only observe what goes in and what comes out.

What is an activation function?

An activation function decides what a neuron outputs after it sums up its weighted inputs. It adds non-linearity, which lets the network learn curved and complex patterns instead of just straight-line ones. Common examples are ReLU and the sigmoid function.

What does the ReLU activation function do?

ReLU stands for Rectified Linear Unit. It keeps any positive number the same but turns any negative number into zero. It is popular because it is simple and helps deep networks learn quickly.

def relu(x):
    return max(0, x)
What is the sigmoid function and what range does its output have?

The sigmoid function squashes any input number into a value between 0 and 1. This is useful when we want an output to look like a probability, for example the chance that an email is spam. Very large inputs give outputs near 1 and very negative inputs give outputs near 0.

What does it mean to 'train' a neural network?

Training means showing the network many examples and slowly adjusting its weights and biases so its predictions get better. The network compares its guesses to the correct answers and reduces its mistakes over many rounds. After enough training, it can handle new, unseen data well.

What is a 'loss function' (or error) in training?

A loss function measures how far the network's predictions are from the correct answers. A high loss means the network is making big mistakes, while a low loss means it is doing well. Training tries to make the loss as small as possible.

What is backpropagation, in simple terms?

Backpropagation is the method a neural network uses to learn from its mistakes. After making a prediction, it calculates the error and sends it backward through the network to figure out how each weight should change. This tells the network how to adjust its weights to do better next time.

What is gradient descent used for?

Gradient descent is the technique used to reduce the loss during training. It nudges the weights a little bit in the direction that lowers the error, over and over. You can imagine it like walking downhill step by step to reach the lowest point of a valley.

What is a 'learning rate'?

The learning rate is a setting that controls how big each step is when the network updates its weights. If it is too large, the network may overshoot and never settle; if it is too small, learning becomes very slow. Choosing a good learning rate helps the network learn efficiently.

What is an 'epoch' in training?

An epoch is one complete pass of the network through the entire training dataset. Networks usually train for many epochs, seeing the data again and again to improve. With each epoch, the weights are adjusted and predictions typically get better.

What is the difference between training data and test data?

Training data is what the network learns from, while test data is kept aside to check how well the network performs on new examples. We never let the network learn from the test data, so it gives a fair measure of real performance. This helps us know if the network truly learned or just memorized.

What does 'overfitting' mean?

Overfitting happens when a network memorizes the training examples too closely, including their noise, instead of learning general patterns. Such a network does great on training data but poorly on new data. It is like a student who memorizes answers but cannot solve new questions.

What is 'underfitting'?

Underfitting happens when a network is too simple or has not trained enough, so it fails to capture the patterns in the data. It performs poorly on both training and test data. Adding more capacity or training longer can help fix it.

How is a neural network inspired by the human brain?

The human brain has billions of neurons connected by links, passing signals to each other to think and learn. A neural network copies this idea using artificial neurons connected by weighted links. However, it is a very simplified model and is far less powerful and complex than a real brain.

What is a 'deep' neural network?

A deep neural network is one that has many hidden layers stacked together, not just one. The extra depth lets it learn more complex and abstract patterns, like recognizing faces in photos. The study of these is called deep learning.

What kind of tasks are neural networks good at?

Neural networks are very good at recognizing patterns, such as identifying objects in images, understanding speech, and translating languages. They shine when there is lots of data and the rules are too complex to write by hand. They are widely used in apps, cameras, and voice assistants.

Why do neural networks need a lot of data?

Neural networks learn patterns by seeing many examples, so more data usually means they can learn more accurate and general rules. With too little data, they may memorize or miss important patterns. Large, varied datasets help them perform well on new situations.

What is a Convolutional Neural Network (CNN) mainly used for?

A Convolutional Neural Network, or CNN, is a type of neural network especially good at working with images. It uses special layers that scan small parts of a picture to detect features like edges, shapes, and textures. CNNs power tasks like photo tagging and medical image analysis.

What is a Recurrent Neural Network (RNN) good at?

A Recurrent Neural Network, or RNN, is designed for data that comes in a sequence, like sentences, music, or time series. It remembers information from earlier steps to help understand later ones. This memory makes it useful for tasks such as predicting the next word in a sentence.

In image recognition, how does a neural network 'see' a picture?

A neural network sees a picture as a grid of numbers, where each number represents the brightness or color of a pixel. It does not see the image the way humans do; it processes these numbers to find patterns. From these patterns it can guess what the image contains.

What is 'supervised learning' for a neural network?

Supervised learning is when a network is trained using examples that already have the correct answers, called labels. The network learns to map inputs to the right outputs by comparing its guesses to the labels. For example, photos labeled 'cat' or 'dog' teach it to tell them apart.

What is the difference between supervised and unsupervised learning?

In supervised learning the data has correct labels that guide the network, while in unsupervised learning the data has no labels. Unsupervised learning tries to find hidden patterns or groups on its own, such as clustering similar customers together. Supervised learning is like learning with an answer key, and unsupervised is like exploring without one.

What does a single neuron compute, written as a formula?

A single neuron multiplies each input by its weight, adds them all up with a bias, and then applies an activation function. In short form it is output = activation(w1*x1 + w2*x2 + ... + b). This simple calculation, repeated by many neurons, builds powerful networks.

output = activation(w1*x1 + w2*x2 + b)
Why is non-linearity important in neural networks?

Non-linearity, added by activation functions, lets a network learn complex, curved relationships in data. Without it, stacking many layers would still only produce a straight-line (linear) model, no matter how deep. Non-linearity is what makes deep networks powerful.

What is a 'parameter' in a neural network?

Parameters are the numbers a network learns during training, mainly its weights and biases. Large networks can have millions or even billions of parameters. The right values for these parameters are what make the network accurate.

Can a neural network make mistakes? Why?

Yes, neural networks can and do make mistakes. They learn from data, so if the data is limited, biased, or different from real situations, their predictions can be wrong. They give their best guess based on patterns, not guaranteed truth, so we must check their outputs.

What is 'bias' in the ethical sense for AI, and why does it matter?

Ethical bias means a neural network treats some groups of people unfairly, often because it learned from data that was unbalanced or unfair. For example, a hiring tool might favor one group if its training data did. This matters because biased AI can cause real harm, so we should use fair, diverse data and check results carefully.

Why should we be careful about the data we use to train a neural network?

A neural network learns whatever patterns are in its training data, including any errors or unfairness. If the data is biased, incomplete, or wrong, the network will repeat those problems. Using accurate, fair, and diverse data helps the network make better and more responsible decisions.

What is a simple real-life example of a neural network you might use daily?

Voice assistants like those on phones use neural networks to understand your speech and respond. Other examples include photo apps that recognize faces, video apps that recommend what to watch, and email spam filters. These all learn from huge amounts of example data.

What does 'inference' mean for a trained neural network?

Inference is when a trained network is used to make predictions on new data, rather than learning. The weights stay fixed and the network simply processes the input to give an answer. For example, using a trained model to identify whether a new photo shows a cat is inference.

How can we tell if a neural network is doing a good job?

We measure its performance on test data it has never seen, using metrics like accuracy, which is the fraction of correct predictions. If it does well on this fresh data, it has likely learned useful patterns. Doing well only on training data is not enough.

What is 'accuracy' as a way to measure a network?

Accuracy is the percentage of predictions that the network gets correct. For example, if it labels 90 out of 100 images correctly, its accuracy is 90 percent. It is a simple and common way to judge performance, though not always the best for every problem.

Why do neural networks often need powerful computers or GPUs?

Neural networks perform a huge number of multiplications and additions, especially when they have many layers and parameters. GPUs are good at doing many such calculations at the same time, which speeds up training a lot. This is why training large networks often uses GPUs.

What happens to a neuron's output if all its input weights are zero?

If all the weights are zero, the weighted sum of the inputs becomes zero, so the neuron's output depends only on its bias and the activation function. This means the neuron ignores its inputs entirely. During training, the network adjusts these weights away from zero so the inputs start to matter.

Why is it useful to split data into training, validation, and test sets?

The training set teaches the network, the validation set helps tune settings like the learning rate, and the test set gives a final fair check of performance. Keeping them separate stops the network from secretly memorizing the answers it will be judged on. This gives a more honest picture of how well it will work in the real world.

Put it into practice with AI Learning

This topic — and hundreds more — comes from our free, offline AI Learning app. Practice Q&A, quizzes and cheat sheets anywhere, no account needed.

  • Free
  • No account
  • Works offline
Coming soon toGoogle Play