All mock tests are FREE till 31 December — register to save your progress
Unit 10 · Artificial Intelligence (AI) Paper 2 CS · 22 June 2026

Consider the following neural network: input x₁ = 0.5 is connected to node A with weight 0.5; input x₂ = 0.6 is connected to node A with weight −0.8; input x₃ = 0.8 is connected to node A with weight 1; node A also receives a bias input of 0.5. Node A computes the net input y_in, which is then passed through node B (the activation function) to produce the final output y.
What will be the net input y_in and final output 'y' of this neural network given that the activation function is a threshold function defined as follows:
f(x) = 1 if x ≥ 1; f(x) = 0 if x < 1

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: C. y_in = 1.07, y = 1

Explanation

The net input is the weighted sum of the inputs plus the bias: y_in = (0.5 × 0.5) + (0.6 × −0.8) + (0.8 × 1) + 0.5 = 0.25 − 0.48 + 0.8 + 0.5 = 1.07. Applying the threshold activation function, since y_in = 1.07 ≥ 1, the output is f(y_in) = 1. Therefore y_in = 1.07, y = 1.

More Artificial Intelligence (AI) questions