Semester : SEMESTER 5
Subject : Computer Programming & Numerical Methods
Year : 2020
Term : SEPTEMBER
Branch : MECHANICAL ENGINEERING
Scheme : 2015 Full Time
Course Code : ME 305
Page:1
Reg No.:
Course Name: COMPUTER PROGRAMMING & NUMERICAL METHODS
Max. Marks: 100 Duration: 3 Hours
1 a)
b)
2 a)
b)
3 a)
b)
4 2)
b)
5 a)
b)
6 a)
b)
7 ஐ
b)
8 a)
b)
9 2)
00000ME305121903
Pages: 2
Name:
APJ ABDUL KALAM TECHNOLOGICAL UNIVERSITY
Fifth semester B.Tech degree examinations (S) September 2020
Course Code: ME305
PARTA
Answer any three full questions, each carries 10 marks.
Write the algorithm and draw the flow chart to find sum of first ‘n’ natural
numbers.
Explain the basic structure of a C++ program with suitable example.
Explain any six types of operators available in C++.
Describe the basic data types in C++ with example.
Differentiate between while and do while loops with suitable example.
Write a C++ program to check whether an entered number is palindrome or not
using loop.
What is recursion? Write a C++ program to calculate the factorial of a given
number using recursion.
Explain function overloading with suitable example.
PART 13
Answer any three full questions, each carries 10 marks.
Write a C++ program to sort a set of numbers in an array ascending order.
Write note on pointers with its advantages.
Write a C++ program to multiply two matrices.
Differentiate between function call by value and call by reference with suitable
example.
Explain class and objects in OOP’s with suitable example.
Write note on friend declaration with suitable example.
What is inheritance? Explain various types of inheritance.
Describe various access specifiers in C++.
PART ^
Answer any four questions, each carries 10 marks.
Using Gauss elimination method, find the solution of the system of equations
Page 1 of 2
Marks
(6)
(4)
(6)
(4)
(6)
(4)
(6)
(4)
(6)
(4)
(6)
(4)
(6)
(4)
(6)
(4)
(6)