Anda di halaman 1dari 2

APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY

[FIFTH SEMESTER BTECH DEGREE MODEL EXAMINATION

COURSE CODE: ME305

COURSE NAME: COMPUTER PROGRAMMING AND NUMERICAL METHODS

Duration : 3Hrs Total Mark : 100

PART A
Answer any three Questions.

1. a. What is flowchart and algorithm. [4]

b. Draw a flowchart to find largest of three numbers A,B,C [6]

2. Write a program to find whether the number is prime or not, with algorithm. [10]

3. a. Define inline function with an example [5]

b. Define function overloading with example. [5]

4. a. Explain control statements with syntax. [5]

b. Define recursion with example. [5]

PART B
Answer any three Questions.

5. a. State the difference between call by value and call by reference [4]

b. Write a program to find factorial of a number using recursion. [6]

6. a. Explain basics of pointer. [4]

b. explain access specifiers with example. [6]

7. a. Explain the different the different type of inheritance. [6]

b. Define friend function with example. [4]

9.a. Explain constructor and destructor. [4]

b. Explain features of OOPS. [6]


PART C

8. a. Find real root of the equation x^3+x^2-100=0 correct to 4 decimal places, using fixe point
iteration method. [5]
b. Find the real root of equation cos x = 3x-1, using Aitkens method [5]

9. Write a c++ program to implement Gauss jordan elimination algorithm. [10]

10. a. Find the values of x corresponding to y=100 given [6]

x: 3 5 7 9 11
y: 6 24 58 108 174

b. Define inherent and rounding errors. [4]

11. a. State one dimensional heat equation and one dimensional heat equation. [5]

b. write down merits and demerits of least square method

12. write a c++ program to implement straight line fitting by using the method of least squares. [10]

13. Approximate the solution of the equation

satisfying the conditions u(x,0) = sin pie *(0<=x<=1) and u(0,t)= u(1,t)= (0<=t<=0.025), choosing delta
x=0.1 and an appropriate delta t and tabulate the values of u ij for 0<=i<=10 and 0<=j<=5 [10]

Anda mungkin juga menyukai