LOYOLA COLLEGE (AUTONOMOUS), CHENNAI – 600 034
B.Sc. DEGREE EXAMINATION – STATISTICS
|
FOURTH SEMESTER – APRIL 2007
ST 4202 – NUMERICAL METHODS USING C
Date & Time: 26/04/2007 / 9:00 – 12:00 Dept. No. Max. : 100 Marks
SECTION A
Answer all questions. (2×10=20)
- Mention the difference between float and double data type in C.
- Write the syntax of scanf() and getc() function.
- What is meant by nested loop?
- What are recursive functions?
- Mention any two library functions available in C with their use.
- Find the characteristic root of the matrix
- Mention any two iterative methods to find the root of a polynomial equation.
- What is Simpson’s 3/8 rule?
- Mention the use of Gauss Seidal iteration method.
- Find the inverse of the matrix
SECTION B
Answer any five questions. (5×8=40)
- What is a structured programming language? Explain the structure of a C program.
- Explain the syntax of if – else and if – else – if statements with examples.
- What are arrays? Explain the concept of single dimension and two dimension
arrays with examples.
- Write a program in C using function to display all the prime numbers between 1 and 100.
- Explain the regula – falsi method to find the real root of an equation f(x) = 0.
- Solve the following equations by Gauss – Jordan method:
10x + y + z = 12; 2x + 10y + z = 13; x + y + 5z = 7.
- Use Newton’s forward interpolation formula to find the value of f(142) based on the following data:.
x: 140 150 160 170 180
f(x): 3.685 4.854 6.302 8.076 10.225
- Obtain the value of f ¢(90) using Stirling’s formula based on the following data:
x: 60 75 90 105 120
f(x): 28.2 38.2 43.2 40.9 37.7
SECTION C
Answer any TWO questions. (2×20=40)
- a.) Mention the various input and output statements available in C.
b.) What are control statements? Explain the syntax of the ‘go to’ and
‘switch – case’ statements with examples. (8+12)
- Explain the Lagrange’s Interpolation method and hence find the value of y when
x=10 based on the following data:
x: 5 6 9 11
y: 12 13 14 16
- Find the inverse of the following the matrix using Gauss elimination method.
22.. a.) Write a program in C for finding using Simpson’s 1/3 rule.
b.) Evaluate by using Trapezoidal rule. (12+8)
Latest Govt Job & Exam Updates: