www.andhracolleges.
com The Complete Information About Colleges in Andhra Pradesh
Code No: Z0322/R07 Set No. 1
I B.Tech Supplementary Examinations, November 2009
COMPUTER PROGRAMMING
( Common to Mechanical Engineering, Mechatronics, Production
Engineering and Automobile Engineering)
www.andhracolleges.com
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Discuss the History of ‘C’ language.
(b) Write the structure of ‘C’ program and explain. [6+10]
2. (a) What is the difference between selection and iteration statement?
(b) Write short notes on if statements. [6+10]
3. (a) Write short notes on register variable.
(b) Write a program to show the working of register variable in different blocks.
[6+10]
4. (a) Write a program to demonstrate realloc function.
(b) Describe operations on pointers with example. [10+6]
5. (a) How can a size of a structure be determined? In what units is the size reported.
(b) What is the purpose of typedef feature? How is the feature used in conjunction
www.andhracolleges.com
with structures? [8+8]
6. (a) Write the syntax for opening a file with various modes and closing a file.
(b) Explain about file handling functions. [8+8]
7. What is the advantage of binary search compared to linear search. Write a program
to perform binary search? [16]
8. Write an algorithm that accepts the binary tree representing an expression and
return the infix version of the expression. [16]
?????
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
USA-UK-Australia-Germany-France-NewZealand Universities List
1 of 1
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: Z0322/R07 Set No. 2
I B.Tech Supplementary Examinations, November 2009
COMPUTER PROGRAMMING
( Common to Mechanical Engineering, Mechatronics, Production
Engineering and Automobile Engineering)
www.andhracolleges.com
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) What do you mean by enumerated data type explain with example?
(b) Define local and global variable. [10+6]
2. (a) What are the commonly used Input / Output functions used in ‘C’. How they
are accessed?
(b) What is the standard Input / Output header files in ‘C’ ? How it is used?
[10+6]
3. Write a program to find sum of odd & even series by using function with argument
and no return value. [16]
4. Define two - dimensional array with an example. [16]
5. Write a program to compare individual members of the structure, members are
employee grade, basic salary and allowance. [16]
www.andhracolleges.com
6. Write a program to read the following data , to find the value of each item and
display the contents of the file. [16]
Item Code Price Quantity
Pen 101 Rs.20 5
Pencil 103 Rs.3 100
7. Explain the applications of stack and queue in detail. [16]
8. What do you mean by traversal? What are the types of binary tree traversal?[16]
?????
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
USA-UK-Australia-Germany-France-NewZealand Universities List
1 of 1
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: Z0322/R07 Set No. 3
I B.Tech Supplementary Examinations, November 2009
COMPUTER PROGRAMMING
( Common to Mechanical Engineering, Mechatronics, Production
Engineering and Automobile Engineering)
www.andhracolleges.com
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. What is the purpose of size of and pointer operator in ‘C’ explain with program?
[16]
2. (a) Write a ‘C’ program to print series of prime numbers using looping and break
statements.
(b) Write a ‘C’ program to find area of triangle. [10+6]
3. What is the working of following functions :
(a) ceil(x)
(b) exp(x)
(c) cos(x)
(d) tolower(x). [16]
4. Write a program to find inverse of a matrix. [16]
www.andhracolleges.com
5. Define Structure and write the general format for declaring and accessing structure
members with an example. [16]
6. (a) Write the syntax for opening a file with various modes and closing a file.
(b) Explain about file handling functions. [8+8]
7. What do you mean by exchange sorting? Explain about quick sort. [16]
8. (a) What is binary tree? What is the representation of binary tree?
(b) What are the common operations done in a binary tree explain any one?[6+10]
?????
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
USA-UK-Australia-Germany-France-NewZealand Universities List
1 of 1
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information
www.andhracolleges.com The Complete Information About Colleges in Andhra Pradesh
Code No: Z0322/R07 Set No. 4
I B.Tech Supplementary Examinations, November 2009
COMPUTER PROGRAMMING
( Common to Mechanical Engineering, Mechatronics, Production
Engineering and Automobile Engineering)
www.andhracolleges.com
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
?????
1. (a) Write a ‘C’ program to convert number of days - months and days.
(b) Find the output of the following C program [10+6]
main()
{
int x = 3 , y = 7 , z = 8;
x = y == z ;
printf (“%d” , x);
}
2. (a) What are the commonly used Input / Output functions used in ‘C’. How they
are accessed?
(b) What is the standard Input / Output header files in ‘C’ ? How it is used?
[10+6]
3. Explain call by value and call by reference and nesting of function. [16]
www.andhracolleges.com
4. (a) Write a program to evaluate the average of the a values in an array.
(b) Write a program to evaluate the largest number in an array. [8+8]
5. How can a entire structure be passed to a function? How can a entire structure be
returned from a function? [8+8]
6. Write a program to display the contents from the file. [16]
7. What are the advantages and disadvantages of stack? Write a program to illustrate
stack operation? [16]
8. (a) What is a network?
(b) What is a spanning tree?
(c) Define minimal spanning tree.
(d) What are the various traversals in a tree? [4+4+4+4]
?????
Seminar Topics - Scholarships - Admission/Entrance Exam Notifications
USA-UK-Australia-Germany-France-NewZealand Universities List
1 of 1
www.andhracolleges.com Engineering-MBA-MCA-Medical-Pharmacy-B.Ed-Law Colleges Information