You are on page 1of 8

Code No: RR10106 Set No.

1
I B.Tech Supplimentary Examinations, February 2008
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. (a) Describe various components of a computer.


(b) Explain working principle of magnetic disk. [8+8]

2. (a) What is operating system?


(b) Enumerate various features of real time operating system.
(c) Convert the following numbers into octal. [2+6+8]
i. 11010.00110
ii. 01101.101110

3. (a) Explain the different steps involved in developing a program to solve a given
problem.
(b) What is a flow chart? Write a flow chart to find the roots of the quadratic
equation ax2 + bx + c = 0. [8+8]

4. (a) What is an array? Explain one and two dimensional arrays.


(b) Write a program to find the multiplication of two matrices. [6+10]

5. (a) Write an algorithm for Newton Raphson method.


(b) Find a real root of 3x-cos x - 1=0 by bisection method. [8+8]

6. Solve the following system of equations using.

(a) Jacob’s and


(b) Gauss - Seidal iteration methods. [8+8]
3x+4y+15z=54.8
x+12y+3z=39.66
10x+y-2z=7.74

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.

1 of 2
Code No: RR10106 Set No. 1
8. (a) Use simple Runge-Kutta method to obtain an approximate solution to the
dy
differential equation dx = y-x+5 at the points x=2.1, 2.2, 2.3 with initial
condition y(2) = 1
R
π/2
(b) Use Simpson’s (3/8) rule to evaluate x sin xdx. Compare the results by
0
using Simpson 1/3 rule and actual value [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR10106 Set No. 2
I B.Tech Supplimentary Examinations, February 2008
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. (a) Explain central processing unit.


(b) What is a register? How are registers used in CPU?
(c) Explain the working principle of Hard Disk Drive. [4+4+8]

2. (a) Define operating system.


(b) Enumerate various types of operating systems.
(c) Write the following decimal numbers into 8 bit sign-magnitude form and 8 bit
2’s complement form. [2+6+8]
i. 87
ii. -123

3. (a) What is an operator? How do you classify C operator?


(b) Differentiate between:
i. Relational and logical operators
ii. ++ x and x ++
iii. (a && b) and (a & b)
iv. >> and << operators
v. Logical AND and Logical OR operators [6+10]

4. (a) Explain input/output operations on files.


(b) Write a program to swap two values using pointers. [6+8]

5. (a) Write an algorithm for Bisection method.


(b) Find a root of the equation cos x - x2 -x = 0 using Newton Raphson method.
[8+8]

6. (a) Solve the system of equations using Gauss-Seidal method.


8x-y+z-18 = 0
2x+5y-2z-3 = 0
x+y-3z+6 = 0.
(b) Write an algorithm for Gauss - Jordan method. [8+8]

1 of 2
Code No: RR10106 Set No. 2
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.
(b) Fit a straight line for the following data. [8+8]
x: 1 2 3 4 5
y: 3 4 5 6 8

8. (a) Write an algorithm for implementing trapezoidal rule.


(b) A rocket is launched from the ground. Its acceleration measured every 5
seconds is tabulated below. Find the velocity and the position of the rocket
at t=40 seconds. Use trapezoidal rule. [8+8]
t 0 5 10 15 20 25 30 35 40
a(t) 40.0 45.25 48.50 51.25 54.35 59.48 61.5 64.3 68.7

⋆⋆⋆⋆⋆

2 of 2
Code No: RR10106 Set No. 3
I B.Tech Supplimentary Examinations, February 2008
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. (a) What is a microprocessor? Give some examples?


(b) Distinguish between the following:
i. Line printer and Laser printer
ii. Floppy disk and Hard disk
iii. Address bus and Control bus [4+12]

2. (a) Compare and contrast multi tasking and multi processor operating systems.
(b) Convert the following numbers into octal. [8+8]
i. 10110001111011.11012
ii. 10001110011010.01012

3. (a) Explain all control statements supported by ‘C’.


(b) Write a C program to find the biggest of a given three numbers using condi-
tional control operator. [10+6]

4. Explain the following terms:

(a) Global & Local variables.


(b) Formal & Actual arguments.
(c) Automatic & static variables.
(d) Global & external variables. [4×4=16]

5. (a) Write an algorithm for Newton Raphson method.


(b) Find a real root of 3x-cos x - 1=0 by bisection method. [8+8]

6. Solve the following system of equations using.

(a) Jacob’s and


(b) Gauss - Seidal iteration methods. [8+8]
9x1 + 2x2 + 4x3 = 20
x1 + 10x2 + 4x3 = 6
2x1 − 4x2 + 10x3 = −15.

7. (a) Derive normal equations to fit the straight line y = a+b-x.

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
1 rd
8. (a) Write an algorithm for the evaluation of integral by Simpson’s 3
rule.
dy
(b) Solve the differential equation: dx = x + y, y (0) = 1 by the Runga Kutta 4th
order method to estimate y(1) using h=0.5 [8+8]

⋆⋆⋆⋆⋆

2 of 2
Code No: RR10106 Set No. 4
I B.Tech Supplimentary Examinations, February 2008
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. (a) Describe the uses of various components of a computer.


(b) Distinguish between RAM & ROM.
(c) What are the advantages of magnetic disk over tape drive. [6+4+6]

2. (a) Define operating system.


(b) Enumerate various types of operating systems.
(c) Write the following decimal numbers into 8 bit sign-magnitude form and 8 bit
2’s complement form. [2+6+8]
i. 87
ii. -123

3. (a) Write the output of the following:


i. main()
{
printf(“% d”,235);
}
ii. main()
{
intx = 10.26;
printf(“% f”,x);
}
iii. main()
{
charmesg[20];
mesg = “work is worship”
printf(“%.6s”,mesg);
}
(b) Write a C program to accept your name, roll number, branch and percentage
and display it in the required format. [9+7]

4. (a) What is a function? Explain the difference between user defined and library
functions.
(b) Write a user defined function to compare two strings in C. [8+8]

1 of 2
Code No: RR10106 Set No. 4
5. (a) Write an algorithm for Newton Raphson method.
(b) Find a real root of 3x-cos x - 1=0 by bisection method. [8+8]

6. (a) Solve the following equations using Gauss- Jordan method.


2x+y+4z=12
8x-3y+2z=20
4x+11y-z=33
(b) Write an algorithm for Gauss - Jordan method. [8+8]

7. (a) From the following table of half yearly premium for policies at quinquennial
ages estimate the premium for policies at the age of 63.
Age: x: 45 50 55 60 65
Premium: y: 114.84 96.16 83.32 74.48 68.48
(b) Derive normal equations to fit y = a + bx + cx2 . [8+8]

8. (a) Write an algorithm for implementing trapezoidal rule.


(b) A rocket is launched from the ground. Its acceleration measured every 5
seconds is tabulated below. Find the velocity and the position of the rocket
at t=40 seconds. Use trapezoidal rule. [8+8]
t 0 5 10 15 20 25 30 35 40
a(t) 40.0 45.25 48.50 51.25 54.35 59.48 61.5 64.3 68.7

⋆⋆⋆⋆⋆

2 of 2