B.TECH - Semester 6 numerical techniques and computer programming Question Paper 2020 (jan)
Practice authentic previous year university questions for better exam preparation.
Sample Questions
- Write a note on the operators in C.
- Explain any two conditional statements in C with examples.
- What is type casting? Explain explicit type casting in C.
- Differentiate between the while and do-while statements in C.
- What are the uses of functions in C language? Explain with an example.
- Write a note on recursive functions.
- Write a program to find the inverse of a matrix.
- Explain the static and dynamic memory allocations in C with an example.
- Write an algorithm to find the determinant of a matrix.
- Write a C program to find the solutions to linear equations using Gauss elimination. Answer one questions from each Module.
- (a) Write a C program to reverse a given list of numbers. 10
- (b) Write a C program to implement complex number operations using structures. OR
- (a) Write a C program to concatenate two strings without using library functions. 10
- (b) Write a C program to manage student information which includes roll, name, mark1, mark2, mark3 and total marks. Also write a function to print the name of students who had scored total marks greater than a given value.
- (a) Write a recursive C function to find the $n^{\text {th }}$ Fibonacci number. 8
- (b) Implement the push and pop operations on a stack Using pointers. OR
- (a) Write a C program to multiply two matrices.
- (b) Implement a queue using pointers. Why is it better than array implementation.
- Given a function $f(x)$ on floating number $x$ and two number ' $a$ ' and ' $b$ ' such that $f(a) * f(b)<0$ and $f(x)$ is continuous in $[a, b]$. Here $f(x)$ represents a transcendental equation. Write a program to find the root of $f(x)$ in the inte...
- (a) Write algorithm for the Newton-Raphson method to find a root of the equation $x^{3}-2 x-5=0$.
- (b) Write a program to solve the set of linear equations using Gauss Jordan Elimination. Eg. $$ \begin{aligned} & 2 x-6 y+8 z=24 \\ & 5 x+A y-3 z=2 \\ & 3 x+y+2 z=16 \end{aligned} $$
- (a) Write a C program for numerical integration of the function $f(x)$ from $\mathrm{x}=\mathrm{a}$ to $x=b$ using Simpson's $\frac{1}{3}$ rule.
- (b) Given a differential equation $d y / d x=f(x, y)$ with initial condition $y\left(x_{0}\right)=y_{0}$. Write a C program to find its approximate solution using Euler's method.
- (a) Write a C program for numerical integration of the function $f(x)$ from $x=a$ to $x=b$ using Trapezoidal rule.
- (b) Write a C program to find the Eigen values and corresponding vectors of a given matrix.