C’ PROGRAMMING AND DATA STRUCTURES
-
Upload
venkat-chunduru -
Category
Documents
-
view
240 -
download
0
Transcript of C’ PROGRAMMING AND DATA STRUCTURES
-
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
1/14
www.vidyavision.com
Set No. 1Code No: Z0104/R05
I B.Tech Supplementary Examinations, April/May 2011
C PROGRAMMING AND DATA STRUCTURES( Common to Civil Engineering, Electrical & Electronic Engineering,
Electronics & Communication Engineering, Computer Science &
Engineering, Electronics & Instrumentation Engineering, Bio-Medical
Engineering, Information Technology, Electronics & Control Engineering,
Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering and
Instrumentation & Control Engineering)Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
1. (a) What is a Flowchart? Explain the di erent symbols used in a Flowchart?
(b) Write a program to find the maximum and minimum of given numbers. [8+8]
2. (a) Write a program to demonstrate passing an array argument to a function.
Consider the problem of finding largest of N numbers defined in an array.
(b) Write a recursive function power (base, exponent) that when invoked returnsbase exponent. [8+8]
3. (a) What is a pointer? How is a pointer initiated? Give an example.
(b) State whether each of the following statements is true or false. Give reasons.
i. An integer can be added to a pointer.
ii. A pointer can never be subtracted from another pointer.
iii. When an array is passed as an argument to a function, a pointer is passed.
iv. Pointers can not be used as formal parameters in headers to functiondefinitions.
(c) If m and n have been declared as integers and p1 and p2 as pointers to integers,
then find out the errors, if any, in the following statements.
i. p1 = &m;
ii. p2 = n;
iii. m=p2-p1;
iv. *p1 = &n; [4+6+6]
4. Consider a structure master includes the information like name, code, pay, experi- ence. Write a program to delete and display the information contained in master
variables for a give code. [16]
5. (a) How does an append mode di ers from a write mode.
(b) Compare between printf and fprint f functions.
(c) Write a program to copy upto 100 characters from a file to an output array.[4+4+8]
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
2/14
www.vidyavision.com
Set No. 1Code No: Z0104/R05
6. 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 n
element from the top of stack, leaving theth
stack without its top n elements.
(b) Set i to the bottom element of stack, leaving the stack unchanged [8+8]
7. Explain the representation of graph using adjacency matrix. Give the necessary
algorithm. [16]
8. (a) Write and explain linear search procedure with a suitable example.
(b) Formulate recursive algorithm for binary search with its timing analysis.
[4+12]
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
3/14
www.vidyavision.com
Set No. 2Code No: Z0104/R05
I B.Tech Supplementary Examinations, April/May 2011
C PROGRAMMING AND DATA STRUCTURES( Common to Civil Engineering, Electrical & Electronic Engineering,
Electronics & Communication Engineering, Computer Science &
Engineering, Electronics & Instrumentation Engineering, Bio-Medical
Engineering, Information Technology, Electronics & Control Engineering,
Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering and
Instrumentation & Control Engineering)Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
1. Write about space requirements for variables of di erent data types. [16]
2. (a) Write a recursive C-program to calculate the product of first N natural num-
bers.
(b) Write a C-program to display array elements in reverse order. Use call-by-
reference mechanism in this a program. [8+8]
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]
4. (a) What are Bit fields. What are its advantages. What is its syntax.
(b) Write a C program to store the information of vehicles. Use bit fields to store
the status information. Assume the vehicle object consists of type, fuel andmodel member fields. Assume appropriate number of bits for each field.[8+8]
5. Write a C program to read a text file and to count
(a) number of characters,
(b) number of words and
(c) number of sentences and write in an output file. [16]
6. Declare a queue of integers. Write functions
(a) To insert an element in to queue
(b) To delete an element from queue [8+8]
7. Write a routine to concatenate two doubly linked lists. [16]
8. What is sorting? Explain about tree sorting technique with suitable examples.[16]
1 of 1
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
4/14
www.vidyavision.com
Set No. 3Code No: Z0104/R05
I B.Tech Supplementary Examinations, April/May 2011
C PROGRAMMING AND DATA STRUCTURES( Common to Civil Engineering, Electrical & Electronic Engineering,
Electronics & Communication Engineering, Computer Science &
Engineering, Electronics & Instrumentation Engineering, Bio-Medical
Engineering, Information Technology, Electronics & Control Engineering,
Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering and
Instrumentation & Control Engineering)Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
1. (a) Assume the size of the standard types integer, real and char are 2 bytes, 4bytes and 1 byte respectively. What is the memory allocation for the following
declarations of following entities : letter, digit, sex, date.
(b) What is meant by type conversion? Why is it necessary.
(c) Distinguish between oat and double in terms of storage and range. [5+5+6]
2. (a) Write a program to demonstrate passing an array argument to a function.
Consider the problem of finding largest of N numbers defined in an array.
(b) Write a recursive function power (base, exponent) that when invoked returns
base exponent. [8+8]
3. (a) Write a C program using pointer for string comparison.
(b) Write a C program to arrange the given numbers in ascending order usingpointers. [8+8]
4. A company markets Hardware items. Create a structure hwItem that stores the
title of the item, its price, an array of three oats so that it can record the sale inrupees of a particular item for the last three months, category of the item and its
original equipment manufacturer. Write a short program that provides facility to
read N no. of items information, append new item, and displays all records. [16]
5. Write a program to combine contents of two files. Add line numbers at the begin-ning of each line, in the output file. [16]
6. Show how to implement a queue of integers in C by using an array int q[QUEUESIZE],
where q[0] is used to indicate the front of the queue , q[1] is used to indicate its rearand where q[2] through q[QUEUESIZE -1] contain elements on the queue. Show
how to initialize such an array to represent the empty queue and write routines
remove, insert and empty for such an implementation. [16]
7. Write a program to insert an element at n position and delete an element at nth th
position in a doubly linked list. [16]
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
5/14
www.vidyavision.com
Set No. 3Code No: Z0104/R05
8. (a) Explain in detail about insertion sort with time complexity.
(b) Write a C program to sort the elements of an array using insertion sort tech-
nique with suitable example. [8+8]
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
6/14
www.vidyavision.com
Set No. 4Code No: Z0104/R05
I B.Tech Supplementary Examinations, April/May 2011
C PROGRAMMING AND DATA STRUCTURES( Common to Civil Engineering, Electrical & Electronic Engineering,
Electronics & Communication Engineering, Computer Science &
Engineering, Electronics & Instrumentation Engineering, Bio-Medical
Engineering, Information Technology, Electronics & Control Engineering,
Computer Science & Systems Engineering, Electronics & Telematics, Electronics & Computer Engineering, Aeronautical Engineering and
Instrumentation & Control Engineering)Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
1. (a) Write a program to find whether the number entered is even or odd, using
conditional operators.
(b) What are the relational operators define in C. Give the brief description of
each of them. [8+8]
2. (a) What is the syntax followed in the definition of a macro.
(b) What are the advantages and disadvantages of macros.
(c) What is meant by conditional compilation. What are its advantages. [4+6+6]
3. (a) What is a pointer variable? How is a pointer variable di erent from an ordi-
nary variable.
(b) Write a C program to read in an array of integers. Instead of using subscript-
ing, however, employ an integer pointer that points to the elements currentlybeing read in, and which is incremented each time. [8+8]
4. (a) How to compare structure variables? Give an example.
(b) Define a structure type struct ABS, that contains name, age, designation,and salary. Using this structure, write a C program to read this information
for one person from the keyboard and print the same on the screen. [6+10]
5. (a) What is the task performed by fseek( ) function. What is its syntax. Explain each parameter in it.
(b) Write a C program to read the text file containing some paragraph. Use fseek()and read the text after skipping n characters form beginning of the file. [8+8]
6. What is a Dequeue? Explain the various operations on Dequeue with suitable
algorithms. [16]
7. (a) What is preorder traversal method?
(b) Explain a procedure for preorder traversal of a binary tree with an example
in detail. Analyze the time complexity of your procedure. [8+8]
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
7/14
www.vidyavision.com
Set No. 4Code No: Z0104/R05
8. (a) Write a C program to sort the elements of an array using bubble sort technique
with a suitable example.
(b) What is the worst case and best case time complexity of bubble sort? [10+6]
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
8/14
www.vidyavision.com
Set No. 1Code No: Z0303/R05
I B.Tech Supplementary Examinations, April/May 2011
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 QuestionsAll Questions carry equal marks
1. (a) What is the di erence between short integer and long integer in terms of
memory, range, control string and variable declaration.
(b) Distinguish between oat and double in terms of storage and range. [8+8]
2. (a) Write a program to compute Fibonacci numbers which are defined by the
recurrence relation.
f ib = f ib + f ib for n > 0n+1 n n-1
(b) What is the scope of variables of type: auto, register and static. [10+6]
3. (a) Write a C program to find out the presence of a substring in a given stringusing pointers.
(b) Write a C program to find the length of a given string using pointers. [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 objectwith real and image fields. [16]
5. Write a C program to accomplish the following stack operations:
(a) push
(b) pop
(c) stack- empty
(d) stack full
(e) display [3+3+2+2+3]
6. (a) Find a real root of x -x-10=0 using bisection method.4
(b) Find a real root of the equation xe -cosx-0 by iteration method. [8+8]x
7. (a) Find f(22) from the following data using Newtons Backward formula
x 20 25 30 35 40 45
y 354 332 291 260 231 204
(b) Using Gauss backward formula find sin 45 from the following table.o
20 30 40 50 60 70 80
Sin .342 .502 .642 .766 .866 .939 .984 [8+8]
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
9/14
www.vidyavision.com
Set No. 1Code No: Z0303/R05
4
8. (a) Evaluate using Booles rule by dividing the range into 8 equal parts.dx(1+x) 2
0
2
(b) Evaluate y dx using simpsons
rd rule130
x 0 .2 .4 .6 .8 1.0 1.2 1.4 1.6 1.8 2.0
y 1.21 1.37 1.46 1.39 1.67 2.31 2.91 3.83 4.01 4.79 5.31 [8+8]
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
10/14
www.vidyavision.com
Set No. 2Code No: Z0303/R05
I B.Tech Supplementary Examinations, April/May 2011
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 QuestionsAll Questions carry equal marks
1. (a) What is the purpose of the if-else statement? In what way is this statementdi erent from the while, the do-while and the for statements.
(b) A cloth showroom has announced the following seasonal discounts on purchase
of items:
Purchase amount Discount
Mill items Handloom items
0-100 - 5%
101-200 5% 7.5%201-300 7.5% 10.0%
above 300 10.0% 15.0%
Write a C program to read purchase extent and calculate discount. Also printthe purchase amount and discount. [8+8]
2. (a) Explain how strings can be stored using a multidimensional arrays?
(b) What are the string in-built functions available? Write in detail about each
one of them with an example.
(c) The names of employees of an organization are stored in three arrays, namely,
first name, second name, and last name. Write a program to concatenate thethree parts into one string to be called name. [4+6+6]
3. (a) Explain the process of accessing a variable through its pointer. Give an Ex-
ample.
(b) Write a C program using pointers to read in an array of integers and print itselements in reverse order. [8+8]
4. Consider a structure master includes the information like name, code, pay, experi-
ence. Write a program to delete and display the information contained in mastervariables for a give code. [16]
5. Write a C program to accomplish the following stack operations:
(a) push
(b) pop
(c) stack- empty
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
11/14
www.vidyavision.com
Set No. 2Code No: Z0303/R05
(d) stack full
(e) display [3+3+2+2+3]
6. (a) Find an interative formula to find the cube root of a number using Newtons
Raphsons method. Hence evaluate cube root of 15
(b) Find a root of the equation 3x-e +sinx=0 using Regula falsi method. [8+8]x
7. (a) Find y(1.6) using Newtons forward di erence formula from the table
x 1 1.4 1.8 2.2
y 3.49 4.82 5.96 6.5
(b) Find y(6) if y(1)=4, y(2)=5, y(7)=5, y(8)=4 using Lagranges interpolation
formula [8+8]
8. The velocities of a car of intervals of 2 minutes are give below.
Time in minutes 0 2 4 6 8 10 12
Velocity in km/hr 0 22 30 27 18 7 0
Find the distance covered by the car by
(a) Simpsons r d rule13
(b) Simpsons r d rule [8+8]38
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
12/14
www.vidyavision.com
Set No. 3Code No: Z0303/R05
I B.Tech Supplementary Examinations, April/May 2011
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 QuestionsAll Questions carry equal marks
1. (a) What is an expression? What kind of information is represented by an ex-
pression?
(b) What is an operator? Describe several di erent types of operators that areincluded with in the C language with an example each. [8+8]
2. (a) Explain how strings can be stored using a multidimensional arrays?
(b) What are the string in-built functions available? Write in detail about eachone of them with an example.
(c) The names of employees of an organization are stored in three arrays, namely,first name, second name, and last name. Write a program to concatenate the
three parts into one string to be called name. [4+6+6]
3. (a) How to use pointers as arguments in a function? Explain through an example.
(b) Write a C function using pointers to exchange the values stored in two loca-
tions in the memory. [8+8]
4. Write a C program to add the two given complex numbers. Define functions addand print with pointers as arguments. The complex number is a structure object
with real and image fields. [16]
5. Write in detail about the following:
(a) Non-linear data structures
(b) Linear data structures [8+8]
6. (a) Find a real root of the equation x -6x-4=0 by bisection method.3
(b) Find a real root of the equation x -2x-5=0 by Regula falsi method which lies3
between 2 and 3. [8+8]
7. (a) Derive the formula to estimate the polynomial of degree n using Lagrangesinterpolation method.
(b) Find f(1.6) using Lagrauges formula from the following data.
x 1.2 2.0 2.5 3.0[6+10]
f(x) 1.36 .58 .34 .20
1 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
13/14
www.vidyavision.com
Set No. 3Code No: Z0303/R05
8. Find y(.1) and y(.2) using picards method given that = , y(0) = 1 [16]dy y -xdx y +x
2 of 2
PDF Watermark Remover DEMO : Purchase from www.PDFWatermarkRemover.com to remove the watermark
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm -
8/2/2019 C PROGRAMMING AND DATA STRUCTURES
14/14
www.vidyavision.com
Set No. 4Code No: Z0303/R05
I B.Tech Supplementary Examinations, April/May 2011
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 QuestionsAll Questions carry equal marks
1. Write about space requirements for variables of di erent data types. [16]
2. (a) Write a C program to do Matrix Multiplications.
(b) Write in detail about one dimensional and multidimensional arrays. Also write
about how initial values can be specified for each type of array? [8+8]
3. (a) Write a C program to find factorial of a given number using pointers.
(b) Write a C program to arrange the given names in alphabetical order using
pointers. [8+8]
4. Write a C program to add the two given complex numbers. Define functions addand print with pointers as arguments. The complex number is a structure object
with real and image fields. [16]
5. Declare two queues of varying length in a single array. Write functions to insertand delete elements from these queues. [16]
6. (a) Find a real root of the equation x -x-1=0 by bisection method.3
(b) Find a real root of cosx=3x-1 using interation method. [8+8]
7. (a) A rod is rotating in a plane. The following table gives the angle (radius)through which the rod has turned for various values of t.
t 0 .2 .4 .6 .8 1.0 1.2
0 .12 .49 1.12 2.02 3.2 4.67Find when t=.5
(b) Find log 337.5 using Gauss forward formula from the table
x 310 320 330 340 350 360
logx 2.49136 2.50515 2.51851 2.53148 2.54407 2.5563 [8+8]
8. Given that = 1+ xy and y(0)=1, compute y(.1) and y(.2) using picards method.dydx
[16]
1 of 1
http://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htmhttp://www.pdfwatermarkremover.com/buy.htm