Selected MCQ

Current Question
Which of the following is a common loss function for regression problems?
  • A. Cross-entropy loss
  • B. Mean squared error
  • C. Hinge loss
  • D. Binary entropy
Correct Answer: B
Explanation:
Mean squared error is typically used for regression to measure the average squared difference.
Related Question 1
Which activation function is commonly used in hidden layers of deep neural networks due to its ability to mitigate vanishing gradient problems?
  • A. Sigmoid
  • B. Tanh
  • C. ReLU
  • D. Softmax
Correct Answer: C
Explanation:
ReLU (Rectified Linear Unit) is popular for hidden layers because it accelerates convergence by avoiding vanishing gradients.
Related Question 2
Which loss function is typically used for binary classification?
  • A. Softmax loss
  • B. Mean squared error
  • C. Cross-entropy loss
  • D. Huber loss
Correct Answer: C
Explanation:
Cross-entropy loss (binary or logistic) is commonly used for binary classification tasks.
Related Question 3
What is a common activation function used in the output layer for multi-class classification?
  • A. Sigmoid
  • B. Softmax
  • C. ReLU
  • D. Linear
Correct Answer: B
Explanation:
Softmax activation is used for multi-class outputs to produce probabilities summing to 1.
Related Question 4
Which of the following programming paradigms emphasizes functions without side effects and immutable data?
  • A. Procedural programming
  • B. Object-oriented programming
  • C. Functional programming
  • D. Event-driven programming
Correct Answer: C
Explanation:
Functional programming focuses on pure functions and immutable data.
Related Question 5
Which of the following is an example of an actuator commonly used in robotics for precise position control?
  • A. Stepper motor
  • B. Photodiode
  • C. Resistor
  • D. Capacitor
Correct Answer: A
Explanation:
Stepper motors move in discrete steps, enabling precise position control in robotics.