Skip to content
Pixel
العربية

Textbook answers: 7-2 Neural Networks and Deep Learning

Suggested answers by the site team, the book has no answer key.

try 1

1What is the term for the individual processing unit that makes up a neural network?

Show answer

A node (neuron).

A neural network is made of simple processing units called nodes or neurons, arranged in layers and connected to each other.

2In a neural network, what is the term for the layer that processes input information and extracts features?

Show answer

The hidden layer (middle layer).

Hidden layers sit between input and output and turn the data into new representations, extracting features.

3In a neural network, what is the term for the numerical value that represents how much each input is emphasized?

Show answer

The weight.

A weight is a numerical factor setting how much, and in which direction, each input contributes to the neuron's calculation; it can be positive or negative.

4What is the term for the technology that uses neural networks with many hidden layers stacked deeply?

Show answer

Deep learning.

Deep learning uses neural networks with many hidden layers in sequence that learn successive representations from data.

try 2

(1)From the following options (A–D), choose the one that most appropriately describes the layers of a neural network.

  • A - The input layer has the role of outputting processing results to the outside.
  • B - The hidden layer has the role of receiving data from outside.
  • C - The output layer has the role of processing input information and extracting features.
  • D - Data enters at the input layer, is processed as it passes through the hidden layers, and reaches the output layer in this flow.
Show answer

D: Data enters at the input layer, is processed as it passes through the hidden layers, and reaches the output layer in this flow.

Options A, B and C swap the layers' roles: input receives, hidden processes and extracts features, output gives the result.

(2)From the following options (A–D), choose the one that most appropriately describes the training of a neural network.

  • A - From before training begins, the weights between neurons are set to correct values.
  • B - As training progresses, a combination of weights that allows the network as a whole to produce correct answers is found.
  • C - Training is performed by increasing the number of neurons.
  • D - Once training is complete, the network becomes unable to handle new data.
Show answer

B: As training progresses, a combination of weights that allows the network as a whole to produce correct answers is found.

Training adjusts the weights gradually to reduce the loss, so the network's answers improve as a whole (though it doesn't guarantee every prediction is right). A is wrong because weights start random, C because training adjusts weights rather than adding neurons, and D because the aim of training is to generalise to new data.

(3)From the following options (A–D), choose the one that is NOT an appropriate characteristic of deep learning.

  • A - It has a structure with many hidden layers stacked deeply.
  • B - It can build up features of data step by step.
  • C - The deeper the hidden layers, the more complex features can be captured.
  • D - Even if the number of hidden layers is increased, the difficulty of problems that can be handled does not change.
Show answer

D: Even if the number of hidden layers is increased, the difficulty of problems that can be handled does not change.

Depth may allow more complex relationships to be represented, so saying it changes nothing is not an appropriate characteristic. A, B and C are correct characteristics of deep learning.

Note: Arabic edition: Option C means different things: the Arabic says more depth "may allow more complex relationships to be represented, but does not guarantee better performance"; the English says "the deeper the hidden layers, the more complex features can be captured". Both are true statements in their own edition, so the answer is D in both.

(4)For a deep learning network that performs image recognition, reorder the following (A–C) in the order in which features are extracted from shallow layers to deep layers.

  • A - Structure of the whole face or object
  • B - Simple features such as lines and changes in color
  • C - Shapes of parts such as eyes, nose, and ears
Show answer

B → C → A: simple features such as lines and colour changes, then shapes of parts such as eyes, nose and ears, then the structure of the whole face or object.

Shallow layers capture the simplest features, middle layers combine them into parts, and deep layers represent the whole object. The Arabic edition notes this is an approximate teaching example, not a fixed path for every network.

exercise 1

1Cover the Point! section with a red plastic sheet and quiz yourself in your notebook in numerical order.

Show answer

Cover the Point! (key points) section, answer, then check: (1) What is a neural network made of? Computing units (nodes) arranged in connected layers. (2) Layer roles? Input represents incoming values, hidden transforms representations and extracts features, output produces task values. (3) How does a neuron work? Weighted sum of inputs + bias, then usually an activation function. (4) What is a weight? A factor setting the size and direction of a contribution; it can be negative. (5) What is training? Gradually adjusting parameters to reduce a loss function with an optimisation algorithm; backpropagation computes the gradients. (6) Why test on separate data? To catch overfitting and measure generalisation. (7) What is deep learning? Multi-layer networks learning successive representations (edges → parts → whole), with no universal layer count. (8) Why a leap? Features learned automatically, plus data, compute and better algorithms; beating humans on specific tasks is not general intelligence.

This exercise is a self-review instruction with no printed questions, so we suggest questions covering the key points in order, with their answers.

This question allows more than one reading

Note: Arabic edition: The English edition says to cover the Point! section with a red plastic sheet and quiz yourself in numerical order; the Arabic edition says to answer without looking at «ملحوظة مهمة» and then check.

exercise 2

1Read the following passage and answer each question.
A neural network has a structure in which many processing units called ( a ) are connected. These are arranged together in ( b ), and are divided into three types: ( c ), which receives data from outside; ( d ), which processes information and extracts features; and ( e ), which outputs the result as an answer. Each ( a ) multiplies its inputs by ( f ), sums them, passes the sum through an activation function, and passes the result to the next layer. Training gradually adjusts ( f ) using large amounts of data. The technology that uses neural networks with many hidden layers stacked deeply is called ( g ), and its characteristic is that it can build up features of data ( h ) and capture them.
1. Fill in the blanks (a)–(h).

Show answer

Arabic passage: (1) layers, (2) the input layer, (3) the hidden layers, (4) the output layer, (5) weights, (6) a bias, (7) an activation function, (8) generalisation. English passage: (a) nodes (neurons), (b) layers, (c) input layer, (d) hidden layer, (e) output layer, (f) weights, (g) deep learning, (h) step by step.

The Arabic passage follows the neuron's calculation: a weighted sum using the weights, then the bias, then the activation function, and finally performance on separate data measures generalisation.

Note: Arabic edition: The passages differ: the Arabic has eight blanks (1)–(8) including bias, activation function and generalisation; the English has (a)–(h) including nodes, deep learning and "step by step".

exercise 3

(1)From the following options (A–D), choose the one that most appropriately describes how a neuron in a neural network works.

  • A - Each neuron passes one input as is to the next layer.
  • B - Each neuron multiplies its inputs by weights, sums them, passes the sum through an activation function, and passes the result on.
  • C - Each neuron averages the input values and passes the result to the next layer.
  • D - Each neuron passes only the largest input to the next layer.
Show answer

B: Each neuron multiplies its inputs by weights, sums them, passes the sum through an activation function, and passes the result on.

A neuron computes a weighted sum of its inputs (plus a bias and an activation function in the common model). Passing one input unchanged, averaging, or passing only the largest value is not how a neuron works.

Note: Arabic edition: The English option B mentions passing the sum through an activation function; the Arabic option omits it. The answer is B in both, and the Arabic lesson text itself mentions the bias and the activation function.

(2)From the following options (A–D), choose the one that most appropriately describes the background to deep learning becoming practical.

  • A - Computation became simpler by reducing the number of hidden layers to one.
  • B - Large amounts of data and high computational power became available.
  • C - Connections between neurons were eliminated, simplifying processing.
  • D - A method in which humans set weights one by one by hand was established.
Show answer

B: Large amounts of data and high computational power became available.

This is the only correct option. The Arabic edition widens the picture: several factors came together, including data and computing power (GPUs and TPUs) and better architectures, algorithms and tools. Reducing layers, removing connections or setting weights by hand is the opposite of what happened.

Note: Arabic edition: The English edition credits big data and high computing power; the Arabic lists them among several factors and says GPUs/TPUs are not required for every use. The answer is B in both.

(3)From the following options (A–D), choose the one that most appropriately describes why deep learning brought a leap in AI.

  • A - Features could be learned automatically from data without humans designing them one by one.
  • B - Computers became able to think with the same mechanism as the human brain.
  • C - Computers became able to fully understand the meaning of words.
  • D - Computers became able to make completely accurate judgments on any problem.
Show answer

A: Features could be learned automatically from data without humans designing them one by one.

In many traditional methods people designed features by hand; deep learning learns representations from the data. B, C and D are exaggerations the book rejects: it is not a brain, not full understanding, and not perfect accuracy on every problem.

Exam-style question

Explain how a neural network with simple neurons can make complex judgments, referring to weights and training. [6] Refer to: weighting inputs and adjusting weights on data. [6]

Model answer

• A neuron is a simple unit: it multiplies each input by a weight, adds the results, adds a bias, then usually applies an activation function and passes the output to the next layer. [1]
• A weight sets how much and in which direction each input contributes (positive or negative), so inputs matter differently in the calculation. [1]
• Many neurons are connected in layers: input receives the data, hidden layers transform representations and extract features, output produces the answer; a complex judgment comes from many parameters interacting, not from one neuron. [1]
• In deep learning, successive layers build hierarchical features: lines and colours, then parts, then the whole object. [1]
• Training: weights start random, the loss between prediction and target is measured, and the weights are adjusted gradually by an optimisation algorithm, with backpropagation computing the gradients, over lots of data. [1]
• After training, generalisation is measured on separate test data to guard against overfitting; training does not guarantee every prediction is correct. [1]

Back to the lessonStart exercises