You are on page 1of 2

www.jntuworld.

com
Code No: E301

OR

I B.Tech(CCC) Supplementary Examinations, May/June 2007 COMPUTER PROGRAMMING AND NUMERICAL METHODS ( Common to Civil Engineering,Electrical & Electronic Engineering,Mechanical Engineering and Electronics & Communication Engineering) Time: 3 hours Max Marks:100 Answer any FIVE Questions All Questions carry equal marks

1. (a) What are the functional components of CPU Explain the role of each. (b) Convert the following decimal number into i. Binary and ii. Hexadecimal number system 42.875.

2. (a) What are the loop structures available in C? Distinguish their usage. (b) In a given course, if a student secures 70% marks, distinction should be awarded,< 70% and 60% the rst division, < 60% and 50% the second division, < 50% and 40% pass division should be awarded. Write a C program using switch statement to handle these cases. [10+10] 3. (a) Write a C program, to check whether a given string is palendome or not. (b) Write a C program to print upper triangular of a square matrix. 4. (a) Distinguish structure and union. [10+10]

(b) Dene a student record consisting of name and marks elds. Write a C program to nd the average mark of the whole class of n students. (c) Convert the following inx expression to prex and postx. a b c + d/e.

5. (a) Find the smallest real positive root of the equation f (x) = x3 3x2 x + 1=0 using secant method. (b) Distinguish the properties of bisection method and secant method. 6. (a) Solve the following by Gauss-elimination method 2x1 + 3x2 x3 = 5 4x1 + 4x2 3x3 =3 2x1 + 3x2 x3 = 1 (b) Find 5 0 1 the 0 2 0 eigen values of the following matrix 1 0 . 5 [14+6]

T N

W U

R O

D L

[10+10]

[4+8+8]

[12+8]

1 of 2

www.jntuworld.com

www.jntuworld.com
Code No: E301

OR

7. (a) Using Newtons Forward dierence interpolation estimate the population in the year 1925. Year 1891 1901 1911 1921 1931 Population 46 66 81 93 101 (in thousands) (b) Explain the steps involved in Lagranges interpolation method.
4

[10+10]

8. (a) Compute
0

ex dx using Trapezoidal rule. Choose N=6. [10+10]

(b) What are the steps involved in second-order Runge kutta method.

T N

W U

R O

D L

2 of 2

www.jntuworld.com

You might also like