Problem Solving Through Programming In C Nptel Week 11 Assignment Answers
Are you looking for the Problem Solving Through Programming In C Assignment 11 Answers ? You’ve come to the right place! This resource offers comprehensive solutions to the Week 11 assignment questions, focusing on fundamental concepts in C programming.
Table of Contents
Problem Solving Through Programming In C Assignment 11(Jan-Apr 2025)
Course Link: Click Here
1) Interpolation is a process for
a) Extracting a feasible data set from a given set of data
b) Finding a value between two points on a line or curve
c) Removing unnecessary points from a curve
d) All of the mentioned
2) Given two data points (a, f(a)) and (b, f(b)), the linear Lagrange polynomial f(x) that passes through these two points is given as
3) A Lagrange polynomial passes through three data points as given below:
The polynomial is determined as:
f(x)=L0(x)⋅(15.35)+L1(x)⋅(9.63)+L2(x)⋅(3.74)f(x) = L_0(x) \cdot (15.35) + L_1(x) \cdot (9.63) + L_2(x) \cdot (3.74)
The value of f(x)f(x) at x=7x = 7 is:
a) 12.78
b) 13.08
c) 14.12
d) 11.36
4) The value of ∫xe2xdx\int x e^{2x}dx by using one segment trapezoidal rule is (up to four decimal places):
5) Accuracy of the trapezoidal rule increases when
a) Integration is carried out for a sufficiently large range
b) Instead of a trapezoid, we take a rectangular approximation function
c) The number of segments is increased
d) Integration is performed for only integer ranges
6) Solve the ordinary differential equation below using the Runge-Kutta 4th order method. Step size h = 0.2. dydx=5−xy3cos(x),y(0)=3\frac{dy}{dx} = 5 – xy^3 \cos(x), \quad y(0) = 3
The value of y(0.2)y(0.2) is (up to two decimal points):
a) 2.86
b) 2.93
c) 3.13
d) 3.08
7) Using the Bisection method, the negative root of x3x^3 correct to three decimal places is
a) -2.506
b) -2.706
c) -2.406
d) None
8) Match the following:
a) A-2, B-4, C-1, D-3
b) A-3, B-1, C-2, D-4
c) A-1, B-4, C-3, D-2
d) A-2, B-3, C-4, D-1
9) The real root of the equation 5x−2cos(x)−1=05x – 2\cos(x) -1 = 0 (up to two decimal accuracy) is
a) 0.53 to 0.56
b) 0.45 to 0.47
c) 0.35 to 0.37
d) 0.41 to 0.43
10) Consider the following recursive C function that takes two arguments:
unsigned int func(unsigned int n, unsigned int r) {
if (n > 0)
return (n % r + func(n / r, r));
else
return 0;
}
What is the return value of the function func() when it is called as func(513, 2)?
Problem Solving Through Programming In C Assignment 11
More NPTEL Solution: https://progiez.com/nptel
Problem Solving Through Programming In C Assignment 11