0% found this document useful (0 votes)
26 views2 pages

Apj Abdul Kalam Technological University

The document appears to be a model exam from APJ Abdul Kalam Technological University for the 5th semester of a BTech degree in the subjects of Computer Programming and Numerical Methods. The exam is divided into 3 parts covering algorithms, programming concepts like functions and control statements, and numerical methods problems. Students are to choose questions to answer from each part totaling 100 marks for the exam.

Uploaded by

stevearmstrong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Apj Abdul Kalam Technological University

The document appears to be a model exam from APJ Abdul Kalam Technological University for the 5th semester of a BTech degree in the subjects of Computer Programming and Numerical Methods. The exam is divided into 3 parts covering algorithms, programming concepts like functions and control statements, and numerical methods problems. Students are to choose questions to answer from each part totaling 100 marks for the exam.

Uploaded by

stevearmstrong
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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]

You might also like