Semester : SEMESTER 6
Year : 2020
Term : SEPTEMBER
Branch : CIVIL ENGINEERING
Scheme : 2015 Full Time
Course Code : CE 306
Page:2
a)
b)
a)
b)
a)
b)
a)
b)
03000CE306052002
What are the advantages of object oriented programming? Explain any three
features of OOP.
What is a recursive function? Write a program to calculate the sum of first N
natural numbers using a recursive function.
PART C
Answer any two full questions, each carries20 marks.
Find the real roots of the equation + - 520 using Newton Raphson
method correct to three decimal places.
Develop a program to find the integral و by Simpson’s 1/3" rule
1+3
Solve the following set of equations by Gauss Elimination:
2x + 3) + 2 = 23, 3x+4y+z=-14, 62 + 7ر7 + 22 = 26.
Develop a program to find the real roots of cos(x) - xe“ = 0 by Regula Falsi
Method.
Write a program to fit a straight line to a given set of data.
Using Gauss Quadrature formula, compute | dx for n = 3.
Gauss points for n = 3 are — 0.7746, 0.0, 0.7746 and weights are 0.5556, 0.8889 and
0.5556.
Page 2 of 2
(6)
(9)
(10)
(10)
(10)
(10)
(10)
(10)