LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – STATISTICS
|
THIRD SEMESTER – APRIL 2007
CS 3200 – NUMERICAL METHODS USING C
Date & Time: 26/04/2007 / 9:00 – 12:00 Dept. No. Max. : 100 Marks
PART-A
Answer all questions 10 x 2 = 20
- What is Compiler?
- Identify the valid variable
Interest, char, FILE, pi
- What is an array?
- List any four back-slash character constants in C.
- List an Gaussian methods
- Write a trapezoidal rule?
- Write a formula for Runge-Kutta 4th order method?
- Write a Simpson’s 1/3 and 3/8 rule.
- Define Numerical Integration.
- Find the determinant of the following matrix?
│ 4 2 │
│ 1 3 │
PART-B
Answer all Questions 5 x 8 = 40
- (a) Elucidate the structure of C Program (or)
(b) Write a C program to generate Fibonacci series
- (a) Explain if.,else and switch statements in C language (or)
(b) Write a C Program to calculate a factorial of given value.
- (a) Explicate different categories of functions. (or)
(b) Write a C program for n x n matrix addition
- (a) Apply Newton’s Forward Problem for interpolation.
X(year) 1891 1901 1911 1921 1931
Y(population) 46 66 81 93 101
Estimate the population for the year 1895. (or)
(b) Explain for, while and do..while statements with an example
- (a) Write a C program for Runge-Kutta 2nd order method (or)
(b) Write a C program to find a determinant of a matrix.
PART-C
Answer any two Questions 2 x 20 = 40
- a) Explain various types of operators in C Language. (10 Marks)
- b) Elucidate Recursive function. (10 Marks)
- Write a C program to evaluate 0 ò1 Sqrt(1+x^2) by
- a) Trapezoidal method (7 Mark)
- b) Simpson’s 1/3 and 3/8 method (13 Mark)
- Write a C program t to solve the system of equations by Gauss Elimination Method (20Marks)