Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
Answer Any Two Full Questions, Each Carries 15 Marks.: Pages: 2
PART A
Answer any two full questions, each carries 15 marks. Marks
1 a) Explain the various conditional statements in C++. (5)
b) Write a program to find the sum, average and product of a set of N numbers, (10)
using arrays.
2 a) What are the different unformatted console I/O functions? (5)
b) Write a program to read a matrix, replace all negative elements of the matrix by (10)
zero and print the resulting array.
3 a) Give the purpose of following functions with examples. i) strcmp() ii) strcat() (5)
iii) strupr()
b) Write a program to check whether given string is palindrome. (10)
PART B
Answer any two full questions, each carries 15 marks.
Page 1 of 2
C C6809 Pages: 2
PART C
Answer any two full questions, each carries 20 marks.
7 a) Find the root for the equation f(x) = lnx – cos x = 0 using Regula Falsi method (10)
b) Write a program to find any one root of a given function using Newton- (10)
Raphson method. Note: the function may be taken as lnx – cos x = 0
8 a) Use three point Gauss quadrature to integrate the following function
( )
(10)
b) Write a program to numerically integrate a given function (with the tabulated (10)
values of function at equal intervals available) using trapezoidal rule.
9 a) Solve the following set of simultaneous equations by Gauss elimination: (10)
2x0+3x1+5x2=23; 3x0+4x1+x2=14; 6x0+7x1+2x2=26
b) Explain the finite difference method for solution of partial differential (10)
equations
****
Page 2 of 2