How To Exam?

a knowledge trading engine...


Calicut University 2006 M.Sc Physics phys202- NUMERICAL TECHNIQUES AND COMPUTER PROGRAMMING - Question Paper

Saturday, 11 May 2013 03:05Web


SECOND SEMESTER M.Sc. DEGREE EXAMINATION, AUGUST 2006
Physics
phys. 202- NUMERICAL TECHNIQUES AND COMPUTER PROGRAMMING
(2003 admissions)

C 17062    (Pages 2) .    Name......................................

Reg. No..................................

SECOND SEMESTER M.Sc. DEGREE EXAMINATION, AUGUST 2006

Physics

Phys. 202NUMERICAL TECHNIQUES AND COMPUTER PROGRAMMING

(2003 Admissions)

Time : Three Hours    Maximum : 80 Marks

Section A

Answer any five questions.

Each question carries 4 marks.

1 ../Given loge (1 + x)/(l - x) = 2(x + x3/3 + x6/5 + ...) calculate loge(1.2) correct to four decimal places.

2.    ./Describe the Newton-Raphson method. Find a root of x3- 2x - 5 = 0, correct to 3 decimal places.

3.yWrite    a polynomial passing through the set of points :    jr x ... 2 4 6 8 10 12 14 q

y ... 23 93 259 569 1071 1813 2843

4yf)erive the trapezoidal rule of integration. What is 'its geometrical significance ?

6/What is a DO loop, ? Explain any 3 rules to be-followed while formulating DO loops.

6. What are format statements. What is the type of format and minimum specification required to print out the following numbers : - 87532, - 32.33 and 0.91275 x 10-31.

7 Explain, with an example, the working of the Switch statement.

8.    Write a C program to calculate the distance between two points P (xj, yx) and Q(x2, y2). Use the pow function.

(5 x 4 = 20 marks)

Section B

Answer all questions.

Each question carries 20 marks.

9.    What are function sub-programs.    (5 marks)

The instantaneous amplitude x of a harmonic oscillator is given by x = A sin ( t) where A is the amplitude (= 10 cm), k is the force constant ( = 2000 N/m) and m is the mass (= 2 kg). Write a FORTRAN program that displays the instantaneous displacement from t = 0 to 60 s. The instantaneous should be calculated in a function subprogram.

(15 marks)

Or

10. What is a sub-routine subprogram in FORTRAN ?    .    (5 marks)

A useful algorithm for rounding a real number to n decimal places is :

Step 1: Multiply the number by 10".

Step 2 : Add 0.5

Turn over






C 17062

Step 3 Delete the fractional part of the result.

2


Step 4 : Divide by 10".

Write a subroutine subprogram that accepts the number, the number of decimal places n and returns the rounded number to the main program.

(15 marks)

11.    Explain with suitable examples, any four decision making statements in C.

Or

12.    Explain how you would define 2-D arrays in C.    (5 marks)

A and B are two 2-D arrays with 2 rows and 3 columns. Initialise A with the data {16,18, 23, 54,

91,11} and B with {24,52,77,16,19,59}. Write a C program that adds the equivalent elements in the two arrays.

(2 x 20 = 40 marks)

Section C

Answer any two questions.    

Each question carries 10 marks.

13.    J Integrate dxlx between the limits (1, 2) using the Simpsons 1/3 rule. *    <\

14../Find by the iteration method, a root of the equation x3 + 2x2 + x == 1, between 0.4 and 0.5, correct * to 2 decimal places.

15.    Newtons law of cooling states that when an object with an initial temperature TINI is placed in a medium with temperature TMED, it will reach a temperature TFIN in t minutes, according to the formula.

TFIN = (TINI - TMEDJe-* + TMED

Write a FORTRAN program to calculate TFIN after 20 m, if TINI = 150 C, TMED = 60 C and k = .0367 Cs-1. The program should display the final result as The Final temperature is xxxx.xx.

16.    Write a function named whole ( ) that returns the integer part of any number passed to the function. This function should be called from main (). Have main () use print to display the result.

(2 x 10 = 20 marks)










Attachment:

( 0 Votes )

Add comment


Security code
Refresh

Earning:   Approval pending.
You are here: PAPER Calicut University 2006 M.Sc Physics phys202- NUMERICAL TECHNIQUES AND COMPUTER PROGRAMMING - Question Paper