LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – STATISTICS
|
FOURTH SEMESTER – APRIL 2006
ST 4202 – NUMERICAL METHODS USING C
(Also equivalent to STA 202)
Date & Time : 29-04-2006/9.00-12.00 Dept. No. Max. : 100 Marks
SECTION A
Answer ALL questions [10×2 =20]
- Distinguish between a compiler and an interpreter
- Explain the importance of #define directive
- Define a] a variable b] a constant
- What is initialization? Why it is important?
- Mention any four C’s fundamental data types?
- Write the importance of bitwise operators
- What is an array? Define an array to store six subjects marks for 100 students.
- Distinguish between an array and a structure.
- What are different categories of functions?
- Define Interpolation .
SECTION B
Answer any FIVE questions [5×8 =40]
- Write a program to find the mean and standard deviation of n numbers.
- Using Newton-Raphson’s method , write a C program to evaluate a real root for the equation:
X3 + 2 X2 + 2 X +5 =0. - Write a program to the maximum of N numbers
- Distinguish between do and while statements with an example.
- Write a C program for Lagrange’s interpolation formula.
- Explain the following operators in C with suitable examples
a)arithmetic operators b) increment and decrement operators - Write a C program to arrange n numbers of an array in the ascending order.
- Write a program that uses an user defined function namely Mystrlen() which counts and returns the length of a string .
SECTION C
Answer any TWO questions [2 x 20 =40]
- Write a program to read the values of matrices viz. Am x l and Bl x n and compute the product of the matrices and store the results in the matrix Cmxn.
- a] Write a program in C to find the roots of a quadratic equation.
b] Using Trapezoidal rule, Write a program to evaluate the integral [12]
21 Write a C program to solve the system of linear equations by GAUSS’s elimination method.
- a] Write a program that prints first n-fibonacci numbers in the series.
b] Using Newton’s backward formula, find the annual premium at the age of 33 from the following data: Age in years : 24 28 32 36 40
Annual premium in Rs. : 28.06 30.19 32.75 34.94 40
Latest Govt Job & Exam Updates: