November 2005
Time: Three hours Maximum: 100 marks
PART-A (10 * 3 = 30 marks)
Answer any TEN questions.
All questions carry equal marks.
Each answer should not exceed 50 words.
PART-B (5 * 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 matrices 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:
a) getch and getchar
b) printf and fprintf
c) 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 * 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. An n-order polynomial can be evaluated as follows: P= (… (a0X + a1)X +a2) X+…an. Write a function to evaluate the polynomial using an array variable n.
23. 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.
24. What is meant by Nested structure and Array of structure? Explain it with example.
25. Write a C program to compute the real and complex roots of a quadratic equation ax2 + bx + c=0.
Time: Three hours Maximum: 100 marks
PART-A (10 * 3 = 30 marks)
Answer any TEN questions.
All questions carry equal marks.
Each answer should not exceed 50 words.
- List down the differences between Break and Continue statement.
- List down the different operators available in C.
- Define register variable.
- What do you mean by preprocessor?
- What is the meaning of ‘&’ operator? Along with which variable it may be used?
- What is meant by multi-dimensional array?
- Explain the term void function.
- Give the syntax of union.
- Explain any two standard mathematical functions.
- List down the different I/O operations on files.
- What is stack?
- How can labeled data items generated by the printf functions?
PART-B (5 * 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 matrices 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:
a) getch and getchar
b) printf and fprintf
c) 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 * 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. An n-order polynomial can be evaluated as follows: P= (… (a0X + a1)X +a2) X+…an. Write a function to evaluate the polynomial using an array variable n.
23. 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.
24. What is meant by Nested structure and Array of structure? Explain it with example.
25. Write a C program to compute the real and complex roots of a quadratic equation ax2 + bx + c=0.