Perceptron Coding Challenge
- 15Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Who invented the perceptron and in what year?
Who invented the perceptron and in what year?
15 questions
- 1
Who invented the perceptron and in what year?
- A
Geoffrey Hinton in 1986
- B
Alan Turing in 1950
- C
Frank Rosenblatt in 1957
- D
Marvin Minsky in 1969
Correct answer
CFrank Rosenblatt in 1957
Explanation
The perceptron was invented by Frank Rosenblatt in 1957 at the Cornell Aeronautical Laboratory.
- A
- 2
What is a perceptron?
- A
A hardware device for parallel computing
- B
A multi-layer neural network used for deep learning
- C
The simplest model of an artificial neural network, representing a single neuron
- D
A type of recurrent neural network
Correct answer
CThe simplest model of an artificial neural network, representing a single neuron
Explanation
A perceptron is the simplest artificial neural network, modeled as a single neuron with inputs, weights, an activation function, and an output.
- A
- 3
In the perceptron algorithm, how is the weighted sum computed?
- A
Sum of weights divided by number of inputs
- B
Average of inputs multiplied by weights
- C
Product of all inputs and weights
- D
Sum of each input multiplied by its corresponding weight
Correct answer
DSum of each input multiplied by its corresponding weight
Explanation
The weighted sum is ∑i(inputi×weighti).
- A
- 4
What activation function is used in the simple perceptron described in the video?
- A
The ReLU function
- B
The tanh function
- C
The sigmoid function
- D
The sign function
Correct answer
DThe sign function
Explanation
The activation function is the sign function: returns +1 if the weighted sum is ≥0, otherwise -1.
- A
- 5
What are the possible output values of the perceptron with the sign activation function?
- A
+1 and -1
- B
Any real number between -1 and 1
- C
0 and 1
- D
Only 0
Correct answer
A+1 and -1
Explanation
The sign function outputs +1 for non-negative input and -1 for negative input.
- A
- 6
What is the purpose of supervised learning in training a perceptron?
- A
To reduce the number of inputs
- B
To find patterns without labeled data
- C
To adjust weights using known correct answers
- D
To initialize weights randomly
Correct answer
CTo adjust weights using known correct answers
Explanation
Supervised learning uses known correct answers (targets) to compute the error and adjust weights.
- A
- 7
How is the error calculated in the perceptron training algorithm?
- A
Absolute difference between target and guess
- B
Target minus guess
- C
Weighted sum of inputs
- D
Guess minus target
Correct answer
BTarget minus guess
Explanation
The error is defined as error=target−guess.
- A
- 8
What is the formula for updating a weight in the perceptron learning algorithm?
- A
weight=error×input
- B
weight=weight+learning rate×input
- C
weight=weight×error×input
- D
weight=weight+error×input×learning rate
Correct answer
Dweight=weight+error×input×learning rate
Explanation
The delta weight is Δw=error×input×learning rate, then added to the old weight.
- A
- 9
What is the role of the learning rate in perceptron training?
- A
It sets the initial values of the weights
- B
It determines the number of training epochs
- C
It defines the activation function
- D
It controls how much the weights are adjusted during each update
Correct answer
DIt controls how much the weights are adjusted during each update
Explanation
The learning rate scales the weight update to avoid overshooting or slow convergence.
- A
- 10
Why is a bias input needed in a perceptron?
- A
To reduce the number of training examples needed
- B
To increase the number of weights
- C
To make the activation function non-linear
- D
To allow the perceptron to classify inputs when all inputs are zero
Correct answer
DTo allow the perceptron to classify inputs when all inputs are zero
Explanation
When all inputs are zero, the weighted sum is zero regardless of weights, so a bias (constant input of 1) provides a learnable offset.
- A
- 11
What is the constant value of the bias input in a perceptron?
- A
1
- B
0
- C
The number of inputs
- D
The learning rate
Correct answer
A1
Explanation
The bias input is always 1, allowing the associated weight to act as a threshold or y-intercept.
- A
- 12
What is a major limitation of a single perceptron?
- A
It cannot handle more than two inputs
- B
It can only solve linearly separable problems
- C
It cannot perform supervised learning
- D
It requires a very large learning rate
Correct answer
BIt can only solve linearly separable problems
Explanation
A single perceptron can only classify data that is linearly separable; it fails for problems like XOR.
- A
- 13
In the video, what scenario is used to demonstrate the perceptron's classification?
- A
Recognizing faces in images
- B
Predicting stock prices
- C
Classifying points above or below a line y=x
- D
Classifying handwritten digits
Correct answer
CClassifying points above or below a line y=x
Explanation
The video uses a 2D space divided by the line y=x, with points above labeled +1 and below labeled -1.
- A
- 14
What is the first step inside the perceptron's guess function?
- A
Compute the weighted sum of inputs
- B
Update the weights
- C
Apply the activation function
- D
Compute the error
Correct answer
ACompute the weighted sum of inputs
Explanation
The guess function first computes the weighted sum ∑(inputi×weighti).
- A
- 15
What does the training function do besides computing the guess?
- A
It randomizes the weights
- B
It visualizes the decision boundary
- C
It computes the error and adjusts the weights
- D
It only computes the guess without changes
Correct answer
CIt computes the error and adjusts the weights
Explanation
The train function calls guess, then computes error (target - guess) and updates each weight by error×input×learning rate.
- A

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