You are on page 1of 2

Code No: C1CS12-C1903 NR

I B.Tech (CCC) Regular Examinations, December 2006


PROGRAMMING IN C AND DATA STRUCTURES
( Common to Civil Engineering, Mechanical Engineering and Electronics &
Communication Engineering)
Time: 3 hours Max Marks:100
Answer any FIVE Questions
All Questions carry equal marks
?????

1. (a) Define address bus, data bus, control bus and address. [10]
(b) Explain the working principle of ink jet printer . [10]

2. (a) What is a Data type? Describe the basic data types of C with an example.
[10]
(b) List out the valid and invalid identifiers from the following: [10]
i. nternet
ii. DD9
iii. Total-amt
iv. 123 sum
v. sal net
vi. read

3. (a) Distinguish between structure and constructs in C.


(b) Write a program using structure to read and write employee details of an
organization. The field of the structure are : [8+12]

Field Name Data Type


name string
designation string
salary float
dept string

4. 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. [20]

5. (a) Explain the significance of “initgraph ( )” function. What is its syntax.


(b) Write a C Program to draw a circle with center at (200,200) and with the
radius as 50. Fill the circle with slash-fill pattern. [6+14]

6. Write a routine to concatenate two doubly linked lists. [20]

1 of 2
Code No: C1CS12-C1903 NR
7. Demonstrate the purpose of stack in implementing a recursive procedure, with a
suitable example. [20]

8. What is sorting? Explain about tree sorting technique with suitable examples. [20]

?????

2 of 2

You might also like