Exam Details

Subject Programming and Data Structures
Paper
Exam / Course Master's in Mathematics with Applications in Computer Science
Department School of Sciences (SOS)
Organization indira gandhi national open university
Position
Exam Date December, 2016
City, State new delhi,


Question Paper

1. Write the output of the following pieces of code. Justify your answers with short explanations.

(a) int
for
for
printf("%d",
printf("
");
int n 9999, s
while n
n/ 10;
printf("%d
", int
P
printf("%d
",
x 1
printf
static int a
a printf("x
int main()
int
for i i
return 0;
int x
y x z y
printf("%d, Y.
2.(a) Write any two differences between a Macro and a Function in language.

(b) Write a program that finds the maximum of a list of integers.

3.(a) What is 'call by value' and 'Call by reference' Explain with an example.
Evaluate the following expression which is in RPN, clearly showing all the stages:

4. Write the functions for the following stack operations in a stack holding character data. (Assume that the stack is implemented using linked list):

creation

push

pop

isempty

5. Explain each of the following with an example:
calloc( function in language Node structure in a doubly linked list with integer data
Anyone string function in language with their prototypes


Departments

  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • Centre for Corporate Education, Training & Consultancy (CCETC)
  • National Centre for Disability Studies (NCDS)
  • School of Agriculture (SOA)
  • School of Computer and Information Sciences (SOCIS)
  • School of Continuing Education (SOCE)
  • School of Education (SOE)
  • School of Engineering & Technology (SOET)
  • School of Extension and Development Studies (SOEDS)
  • School of Foreign Languages (SOFL)
  • School of Gender Development Studies(SOGDS)
  • School of Health Science (SOHS)
  • School of Humanities (SOH)
  • School of Interdisciplinary and Trans-Disciplinary Studies (SOITDS)
  • School of Journalism and New Media Studies (SOJNMS)
  • School of Law (SOL)
  • School of Management Studies (SOMS)
  • School of Performing Arts and Visual Arts (SOPVA)
  • School of Performing Arts and Visual Arts(SOPVA)
  • School of Sciences (SOS)
  • School of Social Sciences (SOSS)
  • School of Social Work (SOSW)
  • School of Tourism & Hospitality Service Sectoral SOMS (SOTHSM)
  • School of Tourism &Hospitality Service Sectoral SOMS (SOTHSSM)
  • School of Translation Studies and Training (SOTST)
  • School of Vocational Education and Training (SOVET)
  • Staff Training & Research in Distance Education (STRIDE)

Subjects

  • Algebra
  • Coding Theory
  • Complex Analysis
  • Computer Graphics
  • Cryptography
  • Design and Analysis of Algorithms
  • Differential Equations And Numerical Solutions
  • Functional Analysis
  • Graph Theory
  • Linear Algebra
  • Mathematical Modelling
  • Pattern Recognition and Image Processing
  • Probability And Statistics
  • Programming and Data Structures
  • Real Analysis
  • Soft Computing and its Applications