Академический Документы
Профессиональный Документы
Культура Документы
1
I B.Tech Supplimentary Examinations, February 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
( Common to Mechanical Engineering, Chemical Engineering, Mechatronics,
Metallurgy & Material Technology, Production Engineering and Automobile
Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
x 0 1 2 3 4
y 7 10 13 22 43
(c) Express f(x) =x2 + x + 1 into factorial polynomial [5+6+5]
dy
8. If dx = 2ex y, y(0) = 2 find y(.4) using Adam’s predictor corrector formula by
calculating y(.1), y(.2) and y(.3) using Taylor’s Series method. [16]
1 of 2
Code No: R05010303 Set No. 1
⋆⋆⋆⋆⋆
2 of 2
Code No: R05010303 Set No. 2
I B.Tech Supplimentary Examinations, February 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
( Common to Mechanical Engineering, Chemical Engineering, Mechatronics,
Metallurgy & Material Technology, Production Engineering and Automobile
Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. (a) What is the difference between short integer and long integer in terms of
memory, range, control string and variable declaration.
(b) Distinguish between float and double in terms of storage and range. [8+8]
2. (a) What is macro. What are the differences between macros and functions.
(b) Give a brief note about.
i. Error directive
ii. Pragma directive. [8+8]
3. (a) What is a pointer? List out the reasons for using pointers.
(b) Write a C Program to illustrate the use of indirection operator “ * ” to access
the value pointed by a pointer. [8+8]
4. Write a C program to add the two given complex numbers. Define functions add
and print with pointers as arguments. The complex number is a structure object
with real and image fields. [16]
⋆⋆⋆⋆⋆
1 of 1
Code No: R05010303 Set No. 3
I B.Tech Supplimentary Examinations, February 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
( Common to Mechanical Engineering, Chemical Engineering, Mechatronics,
Metallurgy & Material Technology, Production Engineering and Automobile
Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1. Write about space requirements for variables of different data types. [16]
3. (a) Explain the process of declaring and initializing pointers. Give an example.
(b) Write a C program that uses a pointer as a function argument. [8+8]
5. Use the operations push, pop, stacktop, and empty to construct operations on
stack, which do each of the following:
(a) Given an integer n, set i to the nth element from the top of stack, leaving the
stack without its top n elements.
(b) Set i to the bottom element of stack, leaving the stack unchanged [8+8]
1 of 2
Code No: R05010303 Set No. 3
R10 dx
(b) Evaluate 1+x
by dividing the range in to 8 equal parts using
2
i. Trapezoidal rule
ii. Simpson’s 13 rule. [8+8]
⋆⋆⋆⋆⋆
2 of 2
Code No: R05010303 Set No. 4
I B.Tech Supplimentary Examinations, February 2008
COMPUTER PROGRAMMING AND NUMERICAL METHODS
( Common to Mechanical Engineering, Chemical Engineering, Mechatronics,
Metallurgy & Material Technology, Production Engineering and Automobile
Engineering)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆⋆⋆⋆⋆
1 of 2
Code No: R05010303 Set No. 4
dy
8. Use Runga kutta method to solve 10 dx
= x2 + y 2 , y(0) = 1 for the interval 0 <
x ≤ .4 with h=.1 [16]
⋆⋆⋆⋆⋆
2 of 2