Skip to main content

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]


Comments

Popular posts from this blog

PROBABILITY AND STATISTICS previous question paper for JNTU university 2nd year first semester students Dept: CSE,IT,CSSE

PROBABILITY AND STATISTICS previous question paper for JNTU university 2nd year first semester students Dept: CSE,IT,CSSE PROBABILITY AND STATISTICS previous question paper for JNTU university 2nd year first semester students Dept: CSE,IT,CSSE II B.Tech I Semester Regular Examinations, November 2007 PROBABILITY AND STATISTICS ( Common to Computer Science & Engineering, Information Technology and Computer Science & Systems Engineering) Time: 3 hours Max Marks: 80 Answer any FIVE Questions All Questions carry equal marks ⋆ ⋆ ⋆ ⋆ ⋆ 1. (a) If A and B are events with P(A) = 1/3, P(B) = 1/4, and P(A U B) = 1/2, find i. P(A/B) ii. P(A \Bc ) (b) Three students A,B,C are in a running race. A and B have the same probability of wining and each is twice as likely to win as C. Find the probability that B or C wins. (c) The students in a class are selected at random one after the other for an examination. Find the probability that the boys and girls are alternate if there are i....