Professional Documents
Culture Documents
1
I B.Tech Supplimentary Examinations, Aug/Sep 2007
INTRODUCTION TO COMPUTERS
( Common to Civil Engineering, Mechanical Engineering, Chemical
Engineering, Mechatronics, Metallurgy & Material Technology, Production
Engineering, Aeronautical Engineering and Automobile Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
7. (a) Given the following table find approximately the value of y-0.5.
x: 0 1 2 3 4 5
y: 27 32 25 36 32 41
Using Newton’s forward difference formula.
1 of 2
Code No: RR10106 Set No. 1
(b) Fit a straight line for the following data. [8+8]
x: 1 2 3 4 5
y: 3 4 5 6 8
R5 2
8. (a) Evaluate e−x dx using Trapezoidal rule.
0
dy
(b) Solve, by Euler’s modified method, the equation dx = x + y, y (0) = 0
Choose h=0.2 and compute y(-2) y(0.4) and y(0.6)and y(0.8). [8+8]
⋆⋆⋆⋆⋆
2 of 2
Code No: RR10106 Set No. 2
I B.Tech Supplimentary Examinations, Aug/Sep 2007
INTRODUCTION TO COMPUTERS
( Common to Civil Engineering, Mechanical Engineering, Chemical
Engineering, Mechatronics, Metallurgy & Material Technology, Production
Engineering, Aeronautical Engineering and Automobile Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
4. Explain the following string handling functions with an example for each.
(a) strupr ( )
(b) strcpy( )
(c) strncmp( )
(d) strcat( ) [16]
7. (a) Derive the formula to estimate the polynomial of degree n using Lagrange
interpolation method.
1 of 2
Code No: RR10106 Set No. 2
(b) Find the 3rd polynomial to fit the following points: [7+9]
i 1 0 1 3
F(X) 6 2 2 10
Using Newton’s forward formula.
⋆⋆⋆⋆⋆
2 of 2
Code No: RR10106 Set No. 3
I B.Tech Supplimentary Examinations, Aug/Sep 2007
INTRODUCTION TO COMPUTERS
( Common to Civil Engineering, Mechanical Engineering, Chemical
Engineering, Mechatronics, Metallurgy & Material Technology, Production
Engineering, Aeronautical Engineering and Automobile Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
3. (a) What is an entry-controlled loop? Explain any entry controlled loop with a
suitable example.
(b) write a program to display the floyd?s triangle for n lines. [6+10]
1
2 3
4 5 6
7 8 9 10
............................(n lines)
1 of 2
Code No: RR10106 Set No. 3
(b) Given the table of points use least squares regression to fit a straight line.
[6+10]
X 0 2 4 6 8 12 16 20
Y 10 12 18 22 20 30 26 30
R2 dx
8. (a) Evaluate x
using Trapezoidal rule taking h = 0.1.
2
⋆⋆⋆⋆⋆
2 of 2
Code No: RR10106 Set No. 4
I B.Tech Supplimentary Examinations, Aug/Sep 2007
INTRODUCTION TO COMPUTERS
( Common to Civil Engineering, Mechanical Engineering, Chemical
Engineering, Mechatronics, Metallurgy & Material Technology, Production
Engineering, Aeronautical Engineering and Automobile Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1 of 2
Code No: RR10106 Set No. 4
7. (a) Explain the difference between the forward difference table and backward dif-
ference table?
(b) Construct difference table for the following data: [6+10]
x 0.1 0.3 0.5 0.7 0.9 1.1 1.3
F(x) 0.003 0.067 0.148 0.248 0.370 0.518 0.697
And find F(0.6) using a cube that fits at x=0.3, 0.5, 0.7 and 0.9 using Newton’s
forward formula.
⋆⋆⋆⋆⋆
2 of 2