Sunteți pe pagina 1din 2

Model Question paper: 2009-10 Second semester Diploma Examination - (CS & IS)

Programming with C (Theory) Time: 3 Hours Max. Marks: 100 Note: Answer three full questions from each section. Section I 1. A Fill in the blanks: i) ii) iii) iv) v) B. Write a short on features of C. Section II 2. Define the following. a) Keyword b) variable c) constant d) Identifier e) data 3. a) Mention the significance of modulo operator. b) Evaluate the expression 2+4/2*8-2 c) Write a note on ternary operator. 4. a) Compare while & do-while control structure. b) Write the syntax of a switch statement c) Differentiate between Break and continue. 5. Write a C program to check the type of a triangle using if else Section - III
6. a) Discuss the one dimensional array with an example

1*5=5

5 2*5 = 10 2 3 5 4 2 4 10

b) Explain different operation on array 7. Write a C program to compute multiplication of two matrices. 8. Explain initialization of one & two dimensional array with example 9. a) Write a note on declaration & initialization of strings b) Explain Strcmp, Strcat & Strlen with example

5 5 10 10 4 6

Section IV 10. a) Write the block structure of the function b) Explain passing arguments as value to function with an example 11. Write a C program to find factorial of a given number Using function. 12. a) Write a structure definition for the following Item number, Item Name, Item Cost b) How Structures are initialized? Explain 13. a) Define Pre-processor b) Write a program using #define to computer area of circle.

4 6 10 5 5 2 8

S-ar putea să vă placă și