Sei sulla pagina 1di 2

PGMT-4B (PA/10/IVB) PGMT-4B (PA/10/IVB) 2

POST-GRADUATE COURSE e) How many memory cells are required to


Assignment June, 2017 store a single character ?
MATHEMATICS
Paper - 4B : Computer Programming & Its f) How is a structure member accessed ? How
Application To Numerical Analysis can a structure member be processed ?
Full Marks : 50 Weightage of Marks : 20%
Special credit will be given for accuracy and relevance g) Explain %[^...] format specification.
in the answer. Marks will be deducted for incorrect
spelling, untidy work and illegible handwriting.
The weightage for each question has been h) Define queue. How does a queue differ from
indicated in the margin. a stack ?

Answer Question No. 1 and any four from the rest. 2. a) What is structure ? How does a structure
differ from an array ? How is an array of
1. Answer any five questions : 2 5 = 10 structures initialized ?

a) What are the rules for naming a b) How is a pointer variable declared ? What is
C variable ? the purpose of the data type included in the
declaration ?
b) What do you mean by local and global
variables ? c) Write a short note on 'if' statement used
in C ? 4+3+3
c) Explain the 'comma' operator used in for
loop. 3. a) Write an algorithm to evaluate a positive
expression.
d) What is meant by 'the address of a memory
cell' ? How are addresses usually b) Write a program to arrange the names of n
numbered ? people in alphabetic order. 5+5

PG-Sc.-AP-3104 [ P.T.O. PG-Sc.-AP-3104


3 PGMT-4B (PA/10/IVB) PGMT-4B (PA/10/IVB) 4

4. a) Write a program to fit a straight line for the 7. a) Write a program to find the value of a
given data points (xi , yi ), i = 1,2,...,n by least polynomial by Horner's method.

square method.
b) What is the purpose of the indirection
operator ? To what type of operand must
b) Write an algorithm to create a single non-
the indirection operator be applied ? 5+5
circular linked list containing n elements
x1, x 2 ,..., xn and find the maximum among

them. 5+5
1. Date of Publication : 13/02/2017
5. a) What is macro ? Summarize the similarities 2. Last date of submission of
answer script by the student to
and dissimilarities between macros and the study centre : 19/03/2017
3. Last date of submission of
functions. marks by the examiner to the
study centre : 16/04/2017
4. Last date of submission of
b) Describe the use of arguments within a
marks by the study centre to
macro. How is multiline macro defined ? the Department of C.O.E. on or
before : 21/04/2017
5. Date of evaluated answer script
(2+3)+(2+3) distribution by the study centre
to the student : 30/04/2017

6. a) Write a function to compute the value of a


determinant of order 2 and use it to find
the value of a determinant of order 3.

b) Write a program to find the value of n!,


where n is a positive integer, using
recursion. 5+5

PG-Sc.-AP-3104 [ P.T.O. PG-Sc.-AP-3104

Potrebbero piacerti anche