1. Home
  2. Explore
  3. Computer Science
  4. Artificial Neural Networks

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Artificial Neural Networks

  • 50Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Neural Foundations

What role does the nervous system analogy play in explaining artificial neural networks?

50 questions

  1. 1

    What role does the nervous system analogy play in explaining artificial neural networks?

    1. A

      It demonstrates that all decisions require only one neuron

    2. B

      It illustrates how inputs are processed to produce decisions

    3. C

      It shows that neural networks require sensory organs

    4. D

      It proves that artificial neurons are biological cells

    Correct answer
    B

    It illustrates how inputs are processed to produce decisions

    Explanation

    The analogy shows that sensory inputs are received, processed by neurons, and used to produce decisions, similar to the flow of information in an artificial neural network.

  2. 2

    In the car-avoidance example, what happens after the eyes and ears receive signals?

    1. A

      The signals are discarded unless the eyes detect danger

    2. B

      The signals are stored permanently in the sensory organs

    3. C

      The signals are immediately converted into motor movements

    4. D

      The signals are sent to neurons for processing

    Correct answer
    D

    The signals are sent to neurons for processing

    Explanation

    The visual and auditory signals are received and sent to neurons, where processing occurs before the decision to jump away is made.

  3. 3

    Why can different situations lead to different decisions in the nervous-system analogy?

    1. A

      Neurons become inactive whenever multiple inputs arrive

    2. B

      Different groups of neurons become activated

    3. C

      Only the ears determine which decision is made

    4. D

      The same neurons always produce identical decisions

    Correct answer
    B

    Different groups of neurons become activated

    Explanation

    The content explains that different neurons are activated when a person jumps away compared with when the person relaxes, leading to different responses.

  4. 4

    What is the main function of processing in a neural system?

    1. A

      To replace all input data with random values

    2. B

      To use received inputs to determine an appropriate response

    3. C

      To ensure that every neuron is activated equally

    4. D

      To prevent inputs from reaching any neurons

    Correct answer
    B

    To use received inputs to determine an appropriate response

    Explanation

    Processing transforms input signals into an outcome or decision by determining which neurons should be activated.

  5. 5

    Which modern application was identified as relying on neural networks?

    1. A

      Fraud detection in banking

    2. B

      Manual filing of paper documents

    3. C

      Mechanical adjustment of a bicycle chain

    4. D

      Basic arithmetic without learned parameters

    Correct answer
    A

    Fraud detection in banking

    Explanation

    The content lists enterprise banking fraud detection, along with systems such as ChatGPT, Gemini, and self-driving cars, as applications of neural networks.

  6. 6

    What is the relationship between an artificial neural network and its biological inspiration?

    1. A

      The artificial network is conceptually based on signal processing by neurons

    2. B

      The artificial network operates without inputs or processing

    3. C

      The artificial network contains the same physical organs as the nervous system

    4. D

      The artificial network is a complete biological replica of the nervous system

    Correct answer
    A

    The artificial network is conceptually based on signal processing by neurons

    Explanation

    Artificial neural networks are presented as systems built conceptually on the way neurons receive and process signals, not as literal biological replicas.

  7. 7

    What is the primary job of the input layer in an artificial neural network?

    1. A

      To adjust weights using gradient descent

    2. B

      To receive data and pass it to the next layer

    3. C

      To calculate the final prediction from the data

    4. D

      To compute the loss after the prediction

    Correct answer
    B

    To receive data and pass it to the next layer

    Explanation

    The input layer receives the data and sends it to the hidden layer; the content states that its role does not include processing or calculation.

  8. 8

    Where does most of the processing described in the network architecture occur?

    1. A

      Exclusively in the output label

    2. B

      In the input data source

    3. C

      Only outside the neural network

    4. D

      In the hidden layer

    Correct answer
    D

    In the hidden layer

    Explanation

    The hidden layer performs the calculations on the inputs, whereas the input layer mainly receives and forwards data.

  9. 9

    How are inputs from the input layer connected to neurons in the next layer?

    1. A

      Each input-layer neuron sends information to the neurons in the next layer

    2. B

      Only the first input-layer neuron sends information to the next layer

    3. C

      Each input is sent directly to the final output without intermediate layers

    4. D

      Inputs are combined into one value before any connection is made

    Correct answer
    A

    Each input-layer neuron sends information to the neurons in the next layer

    Explanation

    The content states that the inputs from all neurons in the input layer go to all neurons in the hidden layer.

  10. 10

    What flexibility does a neural network have regarding hidden layers and hidden-layer neurons?

    1. A

      It cannot contain more neurons than the input layer

    2. B

      It must contain one hidden layer for every input feature

    3. C

      It can contain varying numbers of hidden layers and neurons

    4. D

      It must always contain exactly one hidden layer and two neurons

    Correct answer
    C

    It can contain varying numbers of hidden layers and neurons

    Explanation

    The example uses one hidden layer with two neurons for simplicity, but the content states that networks can have as many hidden layers and neurons as needed.

  11. 11

    What is the role of the output layer?

    1. A

      To calculate only the training examples' features

    2. B

      To receive raw data without passing it onward

    3. C

      To assign the initial random weights

    4. D

      To produce the neural network's final decision

    Correct answer
    D

    To produce the neural network's final decision

    Explanation

    The output layer processes information from the previous layer and produces the outcome interpreted as the network's decision.

  12. 12

    What does forward propagation describe?

    1. A

      The movement of data from the input layer to the output layer

    2. B

      The conversion of labels into numerical features

    3. C

      The random assignment of weights before training

    4. D

      The movement of errors from the output layer to the input layer

    Correct answer
    A

    The movement of data from the input layer to the output layer

    Explanation

    Forward propagation starts at the input layer and proceeds through the network until an output is produced.

  13. 13

    Why are the four variables in the fitness example called features?

    1. A

      They are input characteristics used to influence the label

    2. B

      They are loss values calculated during backpropagation

    3. C

      They are activation functions applied to the output neuron

    4. D

      They are output decisions produced after classification

    Correct answer
    A

    They are input characteristics used to influence the label

    Explanation

    Exercise, junk-food consumption, sleep, and water intake are input characteristics that may influence whether a person is classified as fit.

  14. 14

    Which set correctly identifies the four features in the fitness example?

    1. A

      Age, height, location, and occupation

    2. B

      Exercise, junk food, sleep, and water intake

    3. C

      Dietary calories, pulse rate, gender, and nationality

    4. D

      Weight, income, temperature, and blood pressure

    Correct answer
    B

    Exercise, junk food, sleep, and water intake

    Explanation

    The example uses weekly exercise hours, weekly junk-food consumption, daily sleep duration, and daily water consumption.

  15. 15

    What is the label in the fitness example?

    1. A

      The amount of training data available

    2. B

      The number of features used by the network

    3. C

      Whether the person is fit or unfit

    4. D

      The number of hidden neurons in the network

    Correct answer
    C

    Whether the person is fit or unfit

    Explanation

    The label indicates whether a person is fit or not fit based on the four input features.

  16. 16

    Why is the fitness example a binary classification problem?

    1. A

      It contains two hidden layers

    2. B

      It produces two continuous measurements

    3. C

      It has two possible outcomes: fit or unfit

    4. D

      It uses exactly two input features

    Correct answer
    C

    It has two possible outcomes: fit or unfit

    Explanation

    Binary classification involves two possible classes, represented here as fit and unfit.

  17. 17

    How are the two fitness classes numerically represented in the example?

    1. A

      Fit is represented by 000 and unfit by 111

    2. B

      Fit is represented by 111 and unfit by 000

    3. C

      Fit is represented by 111 and unfit by −1-1−1

    4. D

      Fit is represented by 222 and unfit by 111

    Correct answer
    B

    Fit is represented by 111 and unfit by 000

    Explanation

    The example explicitly assigns 111 to fit and 000 to unfit.

  18. 18

    Why is labeled data used to train the fitness classifier?

    1. A

      Labels replace the need for hidden-layer calculations

    2. B

      The correct outcome is already known for each training example

    3. C

      Labeled data prevents the network from using numerical inputs

    4. D

      Labeled data guarantees that every prediction is correct

    Correct answer
    B

    The correct outcome is already known for each training example

    Explanation

    Training examples include known outcomes, allowing the network's predictions to be compared with the actual labels.

  19. 19

    What should the trained network do when given a new person's features without a label?

    1. A

      Ignore the features because no label is provided

    2. B

      Generate a new hidden layer for every feature

    3. C

      Predict whether the person is fit or unfit

    4. D

      Return the original training label automatically

    Correct answer
    C

    Predict whether the person is fit or unfit

    Explanation

    After training, the network should use the person's features to predict the person's class without being given the answer in advance.

  20. 20

    Why are weights assigned to connections in a neural network?

    1. A

      They prevent the activation function from being used

    2. B

      They determine how strongly each input influences a calculation

    3. C

      They identify which examples already have labels

    4. D

      They specify how many output classes exist

    Correct answer
    B

    They determine how strongly each input influences a calculation

    Explanation

    A larger or smaller weight gives an input more or less influence on the neuron's calculated value.

  21. 21

    How are weights initially assigned when the network has not yet learned?

    1. A

      They are set according to the correct feature importance

    2. B

      They are calculated from the final predictions

    3. C

      They are assigned randomly

    4. D

      They are copied from the labels

    Correct answer
    C

    They are assigned randomly

    Explanation

    The network initially does not know which features matter, so the weights are assigned randomly.

  22. 22

    Which expression represents the basic calculation performed before activation?

    1. A

      z=∑ixiwi−b2z = \sum_i x_i w_i - b^2z=∑i​xi​wi​−b2

    2. B

      z=∑ixiwi+bz = \sum_i x_i w_i + bz=∑i​xi​wi​+b

    3. C

      z=∑ixiwi+bz = \sum_i \frac{x_i}{w_i} + bz=∑i​wi​xi​​+b

    4. D

      z=∑ixi+wi−bz = \sum_i x_i + w_i - bz=∑i​xi​+wi​−b

    Correct answer
    B

    z=∑ixiwi+bz = \sum_i x_i w_i + bz=∑i​xi​wi​+b

    Explanation

    The neuron multiplies each input by its corresponding weight, adds the products, and then adds the bias: z=∑ixiwi+bz = \sum_i x_i w_i + bz=∑i​xi​wi​+b.

  23. 23

    What is the purpose of the bias in the neuron calculation?

    1. A

      It is an additional value added after the weighted inputs are summed

    2. B

      It determines the number of neurons in the input layer

    3. C

      It converts the output directly into a class label

    4. D

      It replaces all weights when the input is missing

    Correct answer
    A

    It is an additional value added after the weighted inputs are summed

    Explanation

    The described calculation adds a bias to the sum of the input-weight products.

  24. 24

    What is the purpose of an activation function?

    1. A

      To compare the training set with the test set

    2. B

      To help determine whether a neuron should be activated

    3. C

      To remove all weights from the network

    4. D

      To assign the original input values to features

    Correct answer
    B

    To help determine whether a neuron should be activated

    Explanation

    After the weighted-sum calculation, the activation function transforms the result and helps determine the neuron's activation.

  25. 25

    How does the ReLU activation function described in the content behave?

    1. A

      It converts every value into a probability from 000 to 111

    2. B

      It always outputs exactly one for every input

    3. C

      It keeps positive values and outputs zero for negative values

    4. D

      It changes every positive value into a negative value

    Correct answer
    C

    It keeps positive values and outputs zero for negative values

    Explanation

    ReLU is described as taking the maximum with zero: positive values remain, while negative values result in an inactive neuron.

  26. 26

    If a hidden neuron receives a preactivation value of −3-3−3, what does the described ReLU function produce?

    1. A

      000, leaving the neuron inactive

    2. B

      111, converting it into a class label

    3. C

      333, reversing the sign

    4. D

      −3-3−3, activating the neuron negatively

    Correct answer
    A

    000, leaving the neuron inactive

    Explanation

    ReLU outputs the maximum of the input and zero, so ReLU⁡(−3)=0\operatorname{ReLU}(-3) = 0ReLU(−3)=0.

  27. 27

    Why is sigmoid preferred over ReLU in the described binary output layer?

    1. A

      Sigmoid produces an unrestricted negative or positive value

    2. B

      Sigmoid guarantees that every prediction is exactly correct

    3. C

      Sigmoid maps the output to a range from 000 to 111

    4. D

      Sigmoid prevents the hidden layer from using weights

    Correct answer
    C

    Sigmoid maps the output to a range from 000 to 111

    Explanation

    For binary classification, sigmoid is useful because it produces an output between 000 and 111, which can be interpreted as a confidence-like value.

  28. 28

    What does a sigmoid output near 111 indicate in the fitness example?

    1. A

      The network is highly confident in the positive class

    2. B

      The network has received no input features

    3. C

      The network is highly confident in the negative class

    4. D

      The network has not performed any calculation

    Correct answer
    A

    The network is highly confident in the positive class

    Explanation

    The content interprets a value such as 0.990.990.99 as strong confidence that the person belongs to the fit class.

  29. 29

    According to the described decision rule, how is a sigmoid output of 0.30.30.3 interpreted?

    1. A

      The output neuron is not activated

    2. B

      The network must randomly reassign the label

    3. C

      The network must add another hidden layer

    4. D

      The output neuron is activated

    Correct answer
    A

    The output neuron is not activated

    Explanation

    The content uses 0.50.50.5 as the threshold: values from 000 to 0.50.50.5 are treated as inactive, while values above 0.50.50.5 are treated as active.

  30. 30

    What is the main purpose of comparing predicted and actual outputs during training?

    1. A

      To calculate how much error the prediction contains

    2. B

      To replace the activation function with a label

    3. C

      To ensure that the initial weights remain unchanged

    4. D

      To determine how many input features exist

    Correct answer
    A

    To calculate how much error the prediction contains

    Explanation

    The comparison is used to calculate a loss value that measures how far the prediction is from the actual output.

  31. 31

    What does a loss value close to zero generally indicate?

    1. A

      The network has not received any training data

    2. B

      The prediction is very far from the actual output

    3. C

      The prediction is correct or close to correct

    4. D

      The weights must be reset to their initial random values

    Correct answer
    C

    The prediction is correct or close to correct

    Explanation

    The content explains that a loss near zero means the predicted output is correct or close to the correct output.

  32. 32

    Why is binary cross-entropy used in the described fitness problem?

    1. A

      The function can only be used with regression outputs

    2. B

      The function eliminates the need for labels

    3. C

      The problem contains exactly two input neurons

    4. D

      The problem has two possible output classes

    Correct answer
    D

    The problem has two possible output classes

    Explanation

    Binary cross-entropy is presented as an appropriate loss function for the binary classification task of predicting fit versus unfit.

  33. 33

    How does binary cross-entropy treat a seriously incorrect prediction?

    1. A

      It ignores the prediction during backpropagation

    2. B

      It changes the prediction into a new feature

    3. C

      It assigns a loss of exactly zero

    4. D

      It assigns a relatively large loss

    Correct answer
    D

    It assigns a relatively large loss

    Explanation

    The content emphasizes that binary cross-entropy gives a heavy penalty when the neural network makes a significant mistake.

  34. 34

    What does backpropagation determine about the network's weights?

    1. A

      How much each weight contributed to the loss

    2. B

      Which input feature should be deleted permanently

    3. C

      How many labels were used before training

    4. D

      Whether the input layer should receive numerical data

    Correct answer
    A

    How much each weight contributed to the loss

    Explanation

    Backpropagation moves backward through the network and calculates each weight's contribution to the loss so the weights can be adjusted.

  35. 35

    What is the role of gradient descent in training?

    1. A

      It updates weights in an effort to reduce the loss

    2. B

      It converts images directly into labels without calculation

    3. C

      It assigns the first random weights to an untrained network

    4. D

      It determines which neurons belong to the input layer

    Correct answer
    A

    It updates weights in an effort to reduce the loss

    Explanation

    Gradient descent is used to adjust the weights so that the loss gradually moves closer to zero.

  36. 36

    In the weight-update expression, what does the learning rate control?

    1. A

      The size of each weight-update step

    2. B

      The number of output classes

    3. C

      The number of features in each example

    4. D

      The threshold used to define a binary label

    Correct answer
    A

    The size of each weight-update step

    Explanation

    The learning rate determines how large a step is taken when updating weights during gradient descent.

  37. 37

    What can happen if the learning rate is too high?

    1. A

      The loss may oscillate instead of steadily decreasing

    2. B

      The network will always reach zero loss immediately

    3. C

      The weights will never change during training

    4. D

      The network will stop using activation functions

    Correct answer
    A

    The loss may oscillate instead of steadily decreasing

    Explanation

    A learning rate that is too high can cause updates to overshoot, making the loss move back and forth rather than approach zero smoothly.

  38. 38

    What can happen when the learning rate is appropriately small?

    1. A

      The network skips the loss calculation entirely

    2. B

      The loss can decrease gradually through successive updates

    3. C

      The output becomes independent of the weights

    4. D

      The network produces only negative predictions

    Correct answer
    B

    The loss can decrease gradually through successive updates

    Explanation

    The example describes a smaller learning rate as allowing the loss to move closer to zero step by step.

  39. 39

    In the weight-update discussion, what does the derivative represent conceptually?

    1. A

      The total number of neurons in the network

    2. B

      The probability range of the sigmoid function

    3. C

      The numerical label assigned to the input example

    4. D

      How a particular weight contributes to the loss

    Correct answer
    D

    How a particular weight contributes to the loss

    Explanation

    The derivative is described as measuring how much the current weight contributes to the loss, guiding its adjustment.

  40. 40

    What overall sequence describes one training pass through the network?

    1. A

      Loss calculation, random initialization, output removal, and data generation

    2. B

      Forward propagation, loss calculation, backpropagation, and weight adjustment

    3. C

      Weight adjustment, label removal, forward propagation, and feature deletion

    4. D

      Backpropagation, input deletion, activation removal, and label assignment

    Correct answer
    B

    Forward propagation, loss calculation, backpropagation, and weight adjustment

    Explanation

    Training first produces a prediction through forward propagation, calculates loss, propagates information backward, and updates the weights.

  41. 41

    Why are many data examples passed through the network during training?

    1. A

      Repeated examples prevent the use of a loss function

    2. B

      A single example cannot contain any numerical features

    3. C

      Repeated updates gradually improve the weights and the model

    4. D

      Multiple examples force every neuron to activate equally

    Correct answer
    C

    Repeated updates gradually improve the weights and the model

    Explanation

    Passing hundreds, thousands, or millions of examples allows repeated loss-based updates that gradually improve the network's weights.

  42. 42

    What does it mean for the trained network to generalize?

    1. A

      It removes all feature information before prediction

    2. B

      It memorizes only the labels seen during training

    3. C

      It produces the same output for every input

    4. D

      It can make useful predictions on new unlabeled data

    Correct answer
    D

    It can make useful predictions on new unlabeled data

    Explanation

    The goal is a generalized model that can use new data without labels to make decisions with good, though not perfect, accuracy.

  43. 43

    What is the practical benefit of neural-network libraries such as TensorFlow, Keras, or PyTorch?

    1. A

      They make numerical input unnecessary

    2. B

      They guarantee that training data is always clean

    3. C

      They eliminate the need to choose a loss function

    4. D

      They automate much of the mathematical computation

    Correct answer
    D

    They automate much of the mathematical computation

    Explanation

    The content explains that libraries can perform the underlying calculations automatically after the user specifies architectural and training choices.

  44. 44

    Why should a practitioner still understand the mathematics behind a neural network when using libraries?

    1. A

      Understanding the process helps with effective training and configuration

    2. B

      Mathematical knowledge is required to replace all training data

    3. C

      The libraries cannot perform any calculations automatically

    4. D

      The formulas are needed to prevent the use of numerical inputs

    Correct answer
    A

    Understanding the process helps with effective training and configuration

    Explanation

    Although libraries automate calculations, understanding what happens inside the network helps users choose suitable activation functions, losses, and optimizers.

  45. 45

    Which pairing matches the example's hidden-layer and output-layer activation functions?

    1. A

      ReLU for the hidden layer and sigmoid for the output layer

    2. B

      Binary cross-entropy for the hidden layer and ReLU for the output layer

    3. C

      Gradient descent for the hidden layer and sigmoid for the output layer

    4. D

      Sigmoid for the hidden layer and ReLU for the output layer

    Correct answer
    A

    ReLU for the hidden layer and sigmoid for the output layer

    Explanation

    The example uses ReLU in the hidden layer and sigmoid in the binary-classification output layer.

  46. 46

    Which pairing matches the example's loss function and optimizer?

    1. A

      Gradient descent as the loss and binary cross-entropy as the optimizer

    2. B

      ReLU as the loss and sigmoid as the optimizer

    3. C

      Sigmoid as the loss and ReLU as the optimizer

    4. D

      Binary cross-entropy as the loss and gradient descent as the optimizer

    Correct answer
    D

    Binary cross-entropy as the loss and gradient descent as the optimizer

    Explanation

    The example specifies binary cross-entropy to measure error and gradient descent to update the weights.

  47. 47

    What kind of input do neural networks require according to the content?

    1. A

      Unprocessed labels without features

    2. B

      Numerical values

    3. C

      Only spoken language

    4. D

      Only physical objects

    Correct answer
    B

    Numerical values

    Explanation

    The content states that neural networks understand numbers, so nonnumeric information must be represented numerically before being used as input.

  48. 48

    Why is image classification possible if neural networks accept numerical inputs?

    1. A

      Images bypass the input layer and enter the output layer directly

    2. B

      The network changes every image into a binary label before training

    3. C

      Images are processed without any features or numerical representation

    4. D

      An image can be represented numerically before being given to the network

    Correct answer
    D

    An image can be represented numerically before being given to the network

    Explanation

    Although the content emphasizes numerical inputs, image classification is possible by converting image information into numerical data for the network.

  49. 49

    Why is handwritten digit recognition described as multiclass classification?

    1. A

      The task uses multiple hidden layers but one output class

    2. B

      The possible classes are the digits from 000 through 999

    3. C

      The task predicts a continuous value rather than a class

    4. D

      The task has only the two classes fit and unfit

    Correct answer
    B

    The possible classes are the digits from 000 through 999

    Explanation

    Digit recognition involves more than two possible classes: the ten digits from 000 to 999.

  50. 50

    What is the key difference between the fitness example and handwritten digit recognition?

    1. A

      The fitness task uses images, while digit recognition uses only labels

    2. B

      The fitness task has no input features, while digit recognition has four

    3. C

      The fitness task is binary, while digit recognition is multiclass

    4. D

      The fitness task is unsupervised, while digit recognition has no outputs

    Correct answer
    C

    The fitness task is binary, while digit recognition is multiclass

    Explanation

    Fitness prediction has two classes, whereas handwritten digit recognition distinguishes among the digits 000 through 999.

Question 1 of 50
Question 1 of 50

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent