Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
No: 41014
R07 SET-1
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.TECH SUPPLEMENTARY EXAMINATIONS JANUARY- 2010
COMPUTER PROGRAMMING
(Common to ME, CHEM, MCT, MEP, AME)
Time: 3hours Max.Marks:80
Answer any FIVE questions
All questions carry equal marks
---
1.a) Define an algorithm? Write an algorithm to find the sum of all even numbers
between 1 and n?
b) What are various conditional and logical operations in ‘C’. Explain them with an
example? [8+8]
3.a) Explain in detail about user-defined functions with the help of sample `C’
program?
b) Write a `C’ program to find factorial of a number using recursion? [8+8]
8. Explain various binary tree transversal techniques with the help of example?
[16]
*****
Code.No: 41014
R07 SET-2
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.TECH SUPPLEMENTARY EXAMINATIONS JANUARY- 2010
COMPUTER PROGRAMMING
(Common to ME, CHEM, MCT, MEP, AME)
Time: 3hours Max.Marks:80
Answer any FIVE questions
All questions carry equal marks
---
3.a) With the help of a sample `C’ code explain various parameters passing methods?
b) Write a `C’ program to find Fibonacci numbers for a given ``N’’ using recursion?
[8+8]
7.a) Explain Circular Queue operations (Insert and Delete) with an example?
b) Write a `C’ program to implement Binary search method? [8+8]
8. Explain breadth first search (BFS) and Depth first search (DFS) algorithms with
an example? [16]
*****
Code.No: 41014
R07 SET-3
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.TECH SUPPLEMENTARY EXAMINATIONS JANUARY- 2010
COMPUTER PROGRAMMING
(Common to ME, CHEM, MCT, MEP, AME)
Time: 3hours Max.Marks:80
Answer any FIVE questions
All questions carry equal marks
---
1.a) Define the flow chart? Draw a flow chart for finding GCD of two numbers?
b) What are various assignment and relational operators in `C’, explain them with an
example? [8+8]
4.a) Define 2-D array? Write a `C’ program to eliminate duplicate elements in an array
(i.e input: 1,1,2,3,2,4: Output: 1,2,3,4)?
b) With a sample `C’ code explain calloc() and malloc() functions? [8+8]
5. Explain pointers to structures with the help of a sample `C’ program? [16]
6. Elaborate file handling functions in `C’ with the help of sample code? [16]
7. Explain the Quick sort algorithm with the help of an example? [16]
8. Explain breadth first search (BFS) and Depth first search (DFS) algorithms with
an example? [16]
*****
Code.No: 41014
R07 SET-4
JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD
I B.TECH SUPPLEMENTARY EXAMINATIONS JANUARY- 2010
COMPUTER PROGRAMMING
(Common to ME, CHEM, MCT, MEP, AME)
Time: 3hours Max.Marks:80
Answer any FIVE questions
All questions carry equal marks
---
3.a) Write a `C’ code to send and receive value from user defined functions?
b) State and explain the storage classes in `C’ language. [8+8]
6. What is random access file? Explain the functions used in random access file?
[16]
7. Explain the Merge sort algorithm with the help of an example? [16]
8. Explain various binary tree traversal techniques with the help of examples?
[16]
*****