1. Home
  2. Computer Science MCQs
  3. Artificial Intelligence (AI) and Machine Learning (ML)
  4. Which activation function outputs zero for all negative…

Added 14 Sep 2025

Which activation function outputs zero for all negative inputs?

  1. Sigmoid
  2. Tanh
  3. ReLU Correct answer
  4. Leaky ReLU

Correct answer

C. ReLU

16 views

MCQSEXAM

Explanation

ReLU (Rectified Linear Unit) is defined as f(x) = max(0, x): it outputs zero for every negative input and passes positive inputs through unchanged.

Sigmoid and tanh produce small non-zero values for negative inputs, and Leaky ReLU deliberately lets through a small negative slope to avoid "dead" neurons. ReLU's simplicity and resistance to vanishing gradients made it the default activation in deep learning.

Want more practice? Try the full set of Artificial Intelligence MCQs on MCQsExam.com.

Reference

https://pytorch.org/docs/stable/generated/torch.nn.ReLU.html

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Artificial Intelligence (AI) and Machine Learning (ML) MCQs

Practise all Artificial Intelligence (AI) and Machine Learning (ML) MCQs

Similar MCQs