Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Name:Tamanna Islam Labonno

ID:41220300477
Section:A

Department of Computer Science and Engineering


Quiz, Fall 2023
Course Title: Numerical Method
Course Code: CSE 3186; Section: A & C

Time: 10 minutes Part-A Total Marks: 10


Instructions:
i. Answer any 10 out of 10 questions
-----------------------------------------------------------------------------------------------------------------------
1. Which numerical method is commonly used for solving initial value problems (IVPs) in ordinary
differential equations?
a. Newton's method
b. Euler's method
c. Gaussian elimination
d. Runge-Kutta method
2. Which of the following is a disadvantage of the implicit methods for solving ODEs?
a. They are computationally faster
b. They are conditionally stable
c. They require solving nonlinear equations
d. They are only applicable to linear ODEs
3. Which numerical method is commonly used for solving stiff systems of ordinary differential
equations?
a. Euler's method
b. Runge-Kutta method
c. Implicit methods
d. Forward Euler method
4. How can you compute the second derivative of a function using the `derivative()` function in
SciPy?
a. Set `n=2` in the function call
b. Call the `derivative2()` function
c. Apply the `derivative()` function twice
d. Use a different library for second derivatives
5. In Python, which library provides functions for numerical differentiation?
a. `numpy`
b. `scipy`
c. `matplotlib`
d. `math`
6. The trapezoidal rule is a numerical method for the ____________ of a given function.
a. Derivative
b. Integral
c. Root
d. Limit
7. What function in Python can be used to apply the trapezoidal rule for numerical integration?
a. `trapz()`
b. `integrate()`
c. `trap_rule()`
d. `simps()`
8. What is the primary parameter required by the `trapz()` function in Python?
a. Function to be integrated
b. Number of subintervals
c. Range of integration
d. Precision level
9. In the context of numerical solutions to ODEs, what does "step size" refer to?
a. The size of the output values
b. The number of iterations required
c. The width of each subinterval
d. The precision of the numerical solution
10. Which numerical method is commonly used for approximating the derivative of a function at a
specific point?
a. Newton's method
b. Euler's method
c. Simpson's rule
d. Finite difference method

You might also like