Exam Details

Subject programming in c
Paper paper 4
Exam / Course m.sc. mathematics
Department
Organization rayalaseema university
Position
Exam Date December, 2017
City, State andhra pradesh, kurnool


Question Paper

M.Sc. DEGREE EXAMINATION, NOVEMBER/DECEMBER 2017.
Third Semester
Mathematics
Paper IV PROGRAMMING IN C

2 20534
Time 3 Hours Max. Marks 100
SECTION — A
Answer any FIVE questions. 8 40 Marks)
1. Distinguish between the pair of statements
while and do....while,
break and go to,
continue And go to,
while and for, in terms of their functioning.
2. Write the general form of nested if....else structure. Using this write a program in
to select and print the largest of their given numbers.
3. What is a null statement? Explain its usefulness.
4. State and explain the four basic string handling functions.
5. Explain the need for array variables.
6. What is meant by recursion? Write a C program to complete the factorial of a
number using recursion.
7. Describe the limitations of using getchar and scan f function for reading strings.
8. Explain the general format of f seek function. Write the difference between the
statements rewind(fp); and f seek 0L, 0).

SECTION — B
Answer ALL questions. 15 60 Marks)
9. Write a program in C that will print all the positive integers less than 1000
that are divisible by 10, Using if then else and go to statement.
Or
Write a program to find a real root of the equation f x cosx 0 using
Newton Rasphson method verify the procedure with an example.
10. Write a program for fitting a straight line through a set of points
(xi yi I . This straight line equation is y c and the values of
m and c are given by. All assumptions are from 1 to n.
Or
State limitations of using char and scanf functions for reading strings. Write
a program to sort a given list of numbers and to compute its median.
11. Write a function 'exchange' to interchange the values of two variables, say X
and Y. Illustrate the use of this function, in a calling function.
Or
Explain briefly the terms
nested structure
array of structures.
Write a program to find a sequence of a given number using function
declaration and return statements.
12. Explain the difference between "call by reference" and "call by value". Write a
program using pointers to determine the length of a character string.
Or
How is a pointer initialized? Distinguish
get C and get chart
print f and fprintf.
Write a function using pointers to add two matrices and to return the
resultant matrix to the calling function.



Other Question Papers

Subjects

  • programming in c
  • topology