Tuesday, October 4, 2011

JNTU PREVIOUS YEAR QUESTION PAPER C PROGRAMMING AND DATA STRUCTURES for Electrical & Electronic Engineering, Electronics & Communication Engineering, Electronics & Instrumentation Engineering and Electronics & Telematics


JNTU PREVIOUS YEAR QUESTION PAPER C PROGRAMMING AND DATA STRUCTURES for Electrical & Electronic Engineering, Electronics & Communication Engineering, Electronics & Instrumentation Engineering and Electronics & Telematics

C PROGRAMMING AND DATA STRUCTURES JNTU PREVIOUS YEAR QUESTION PAPER for Electrical & Electronic Engineering, Electronics & Communication Engineering, Electronics & Instrumentation Engineering and Electronics & Telematics

I B.Tech Semester Regular Examinations, June 2009
C PROGRAMMING AND DATA STRUCTURES
( Common to Civil Engineering, Electrical & Electronic Engineering,
Electronics & Communication Engineering, Computer Science &
Engineering, Chemical Engineering, Electronics & Instrumentation
Engineering, Bio-Medical Engineering, Information Technology, Electronics
& Control Engineering, Computer Science & Systems Engineering,


Electronics & Telematics, Electronics & Computer Engineering,
Aeronautical Engineering, Instrumentation & Control Engineering and
Bio-Technology)
Time: 3 hours Max Marks: 80
Answer any FIVE Questions
All Questions carry equal marks
⋆ ⋆ ⋆ ⋆ ⋆
1. (a) Write a ’C’ program which reads temperature in either Fahrenheit or Celsius
and compute temperature in the opposite scale.
Formulas are C = ( F - 32) * 5/9 , F = 9 (C/5) + 32
(b) Write a ’C’ program to find greatest common division (GCD) of two given
numbers. [6+10]
2. Explain the following library functions
(a) sqrt(x)
(b) fmod(x,y)
(c) toupper(x)
(d) fmod(x,y) [16]
3. Define an array. What are the different types of arrays. Explain.
[16]
4. Define Structure and write the general format for declaring and accessing members.
[16]
5. (a) Write the syntax for opening a file with various modes and closing a file .
(b) Explain about file handling functions . [8+8]
6. Write a program to explain selection sort . Which type of technique does it belong.
[16]
7. Define doubly linked list . Write a program in C to perform the following operations
in a doubly linked list.
(a) Insert
(b) Delete
(c) Display [16]
8. Write a ’C’ program to implement recursive algorithm for a Binary Search Tree.
[16]


No comments:

Post a Comment