Sei sulla pagina 1di 5

Section A (10 * 2 = 20) answer any ten questions. all questions carry equal marks.

each answer should not exceed 30 words. 1) what are constants? 2) what are relational operators in c? 3) what is the purpose of conditional operator? 4) what is the use of '\n'? 5) define: recursion. 6) what is the static variable? when should it be used? 7) what is meant by prototyping? 8) what is an array variable? how does it differ from an ordinary variable? 9) what are self-referential structures? 10) mention the features of 'union' data type. 11) write the advantages of pointers. 12) what is the use of append mode in file handling? Section B (5 * 5 = 25) answer any five questions. all questions carry equal marks.each answer should not exceed 200 words. 13) write short notes on : declarations and expressions in c. 14) explain any four library functions with examples. 15) write a c program to find the sum of odd integers between 1 and n. 16) compare 'while' and 'do-while' statements. 17) write a c program to find the biggest of given n numbers. 18) explain about the logical bitwise operators with examples. 19) discuss briefly about pointer declarations with examples. Section C (3 * 10 = 30) answer any three questions. all questions carry equal marks. each answer should not exceed 500 words. 20) write a c program to evaluate the series: s = 1 + 1/2 + 1/3 + ... + 1/n. 21) explain about various data input and output functions in c with suitable examples. 22) write a c program which calls a function reverse() which accepts a string and displays its reverse. 23) explain about passing arrays to functions with an example c program. 24) describe in detail, file handling functions in c with examples.

PROGRAMMING IN C (April-2006)

PART A - (10 x 3 = 30 marks) Answer any TEN questions. All questions carry equal marks. Each answer should not exceed 50 words. 1. List down the differences between Break and Continue statement. 2. List down the different operators available in C. 3. Define register variable. 4. What do you mean by preprocessor? 5. What is the meaning of '&' operator? Along with which variable it may be used? 6. What is meant by multi-dimensional array? 7. Explain the term void function. 8. Give the syntax of union. 9. Explain any two standard mathematical functions. 10. List down the different I/O operations on files. 11 .What is stack? 12. How can labeled data items be generated by the printf function? PART B - (5 x 6 = 30 marks) Answer any FIVE questions. All questions carry equal marks. Each answer should not exceed 200 words. 13. Develop a C program to find the smallest and second smallest from a set of numbers.

14. Write the difference between while and for statement. 15. Write a program in C to multiply two matrixes A and B the resultant matrix in C. 16. Write a function using pointers to exchange the values stored in two locations in the memory. 17. Write a program to read a line of text containing a series of words from the terminal. 18. Discuss the uses and limitations of a function getc and putc. Distinguish the following concepts: getch and getchar printf and f printf feof and ferror. 19. Write a C program to read 100 numbers into an array and compute the mean of only the seven numbers. PART C - (4 x 10 = 40 marks) Answer any FOUR questions. All questions carry equal marks. Each answer should not exceed 500 words. 20. Write the different types of IF structure available in C. 21. Summarize several types of commonly used linked data structures. Write a C program to create and maintain a singly linked list. 22. Write a C program to compute the real and complex roots of a quadratic equation ax2 + bx + c = 0. 23. An n -order polynomial can be evaluated as follows: P = (...(aoX + at)X + az)X + ...an) Write a function to evaluate the polynomial using

an array variable n . 24. Using pointers, write a function that receives a character string and a character as argument and delete all occurrences of this character in the string. This function should return the corrected string with holes. 25. What is meant by Nested structure and Array of structure? Explain it with example. Section A (10 * 2 = 20) answer any ten questions. all questions carry equal marks. each answer should not exceed 30 words. 1) what are constants? 2) what are relational operators in c? 3) what is the purpose of conditional operator? 4) what is the use of '\n'? 5) define: recursion. 6) what is the static variable? when should it be used? 7) what is meant by prototyping? 8) what is an array variable? how does it differ from an ordinary variable? 9) what are self-referential structures? 10) mention the features of 'union' data type. 11) write the advantages of pointers. 12) what is the use of append mode in file handling? Section B (5 * 5 = 25) answer any five questions. all questions carry equal marks.each answer should not exceed 200 words. 13) write short notes on : declarations and expressions in c. 14) explain any four library functions with examples. 15) write a c program to find the sum of odd integers between 1 and n. 16) compare 'while' and 'do-while' statements. 17) write a c program to find the biggest of given n numbers. 18) explain about the logical bitwise operators with examples. 19) discuss briefly about pointer declarations with examples. Section C (3 * 10 = 30) answer any three questions. all questions carry equal marks. each answer should not exceed 500 words.

20) write a c program to evaluate the series: s = 1 + 1/2 + 1/3 + ... + 1/n. 21) explain about various data input and output functions in c with suitable examples. 22) write a c program which calls a function reverse() which accepts a string and displays its reverse. 23) explain about passing arrays to functions with an example c program. 24) describe in detail, file handling functions in c with examples.

Potrebbero piacerti anche