*3111*

(Pages : 2)

3111

Reg. No. : .................................... Name : .........................................

Third Semester B.Tech. Degree Examination, June 2009 Branch : Electrical (2003 Scheme) 03-305 : INTRODUCTION TO COMPUTERS AND PROGRAMMING (E) Time : 3 Hours

Max. Marks : 100 PART – A

Answer all questions. 1. Briefly explain the functional units of a computer. 2. Write notes on variable names. 3. What are system calls ? 4. Distinguish between a structure and an array. 5. Explain the switch construct with an example. 6. Write a ‘C’ program to find the sum of digits in a 4-digit number. 7. What is meant by default argument ? 8. Write a ‘C’ program to copy the contents of one string to another. 9. Explain operating system as an extended machine. 10. Write a C program to generate the Fibonacci series upto terms less than or equal to 1000. (4×10=40 Marks)

P.T.O.

*3111*

3111 PART – B Answer one full question from each Module. Module – I

8

11. a) What are the steps involved in problem solving ?

12

b) Draw a flow chart to print prime numbers less than 1000. OR

6

12. a) Explain different translators with example. b) Explain straight line sequencing.

6

c) Draw a flow chart to print sum of ‘N’ integers.

8

Module – II 13. a) Write a ‘C’ program to find the sum of ‘n’ terms of the following series

10

s = 1 − x 2 2! + x 4 4! − x 6 6! + ......

b) Write a ‘C’ program to convert binary number to decimal number.

10

OR 10

14. a) With an example explain the different loops available in C. b) Write a ‘C’ program to convert decimal number to binary number.

10

Module – III 15. a) Write a C program to find product of two matrices of order m × n.

10

b) Write a C program to arrange a given array in ascending order.

10

OR 6

16. a) Explain the concept of dynamic memory allocation. b) Differentiate between function call, function definition and function prototype.

6

c) Write a program to find the smallest element of an array using pointers.

8

(20×3=60 Marks) ———————

Branch Electrical 03-305 INTRODUCTION TO COMPUTERS AND PROGRAMMING (E)