Semester : SEMESTER 5
Subject : Computer Programming & Numerical Methods
Year : 2018
Term : DECEMBER
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : ME 305
Page:1
(भ ೧5958 Pages: 2
Reg No.: Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
FIFTH SEMESTER B.TECH DEGREE EXAMINATION, DECEMBER 2018
Course Code: ME305
Course Name: COMPUTER PROGRAMMING AND NUMERICAL METHODS
Max. Marks: 100 Duration: 3 Hours
PART A
Answer any three full questions, each carries 10 marks. Marks
1 a) Explain six different built in data types used in C++ with its limits. (6) 2)
Differentiate between assignment operator and equality operators. (4)
2 a) List and explain different types of operators used in C++ (6) b) Explain basic
structure of aC++ program (4) 3 9) Explain different control structures used in C++ (6)
b) Differentiate break and continue statements. (4)
4 ೩) Write a C++ program of find out sum of first “ர? natural numbers. (6) b)
Explain function overloading with an example (4)
PART 8
Answer any three full questions, each carries 10 marks.
೨ a) Write a C++ program to find factorial of number (5) b) Write a C++ program to
receive 10 numbers in an array and to sort it in (5 ) ascending order.
6 a) Write a C++ program to multiply two 5x5 matrices (6) b) Differentiate
between function call by value and reference (4)
7 a) Explain class and objects with help of examples (6) b) What are the access
specifiers inC++? (4)
8 a) Explain inheritance and derived classes using examples (6) b) Differentiate
member functions and data members (4)
PART C
Answer any four full questions, each carries 10 marks.
9 a) Write a C++ program for solving a system of linear equations by any one numerical (6 )
method.
b) Differentiate between round off error and truncation error. (4)
10 Solve the system of liner equations by Gauss elimination method (10)
Page 1 of 2