PyTorch MCQ Questions And Answers - Machine Learning Libraries
PyTorch MCQs : This section focuses on "basics" of PyTorch. These Multiple Choice Questions (MCQ) should be practiced to improve the PyTorch skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. __________ is an open source machine learning library for Python and is completely based on Torch.
A. Flask
B. PyTorch
C. PyBrain
D. CherryPy
View Answer
Ans : B
Explanation: PyTorch is an open source machine learning library for Python and is completely based on Torch.
2. PyTorch is known for having _________ levels of abstraction.
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : C
Explanation: PyTorch is known for having three levels of abstraction : Tensor, Variable and Module.
3. Which of the following are the advantages of PyTorch?
A. It is easy to debug and understand the code
B. It includes many layers as Torch
C. It includes lot of loss functions
D. All of the above
View Answer
Ans : D
Explanation: All of the above are the advantages of PyTorch.
4. ________ is an imperative n-dimensional array which runs on GPU.
A. Variable
B. Tensor
C. Module
D. All of the above
View Answer
Ans : B
Explanation: Tensor: Tensor is an imperative n-dimensional array which runs on GPU.
5. ____________ is a package which is used to wrap a tensor.
A. extend.variable
B. autograd.variable
C. variable
D. auto.variable
View Answer
Ans : C
Explanation: Variable is a package which is used to wrap a tensor. The autograd.variable is the central class for the package.
6. ______________ is a technique or way to find the linear relation between the dependent variable and the independent variable by minimizing the distance.
A. Linear Regression
B. Bilinear Regression
C. Discrete Regression
D. All of the above
View Answer
Ans : A
Explanation: Linear Regression is a technique or way to find the linear relation between the dependent variable and the independent variable by minimizing the distance.
7. MSE stands for ?
A. Machine Squared Error
B. Mean Simple Error
C. Mean Squared Evaluate
D. Mean Squared Error
View Answer
Ans : D
Explanation: MSE stands for Mean Squared Error, which is used to create a criterion the measures the mean squared error between each element in an input x and target y.
8. The activation functions are basically divided into ________ types.
A. 1
B. 2
C. 3
D. 4
View Answer
Ans : B
Explanation: The activation functions are basically divided into two types: Linear Activation Function and Non-linear Activation Function
9. The Conv1d and Conv2D is used to apply 1D and 2D convolution.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, The Conv1d and Conv2D is used to apply 1D and 2D convolution.
10. The torch.cuda is a package which adds support for CUDA tensor type.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: True, The torch.cuda is a package which adds support for CUDA tensor type.
Discussion