university, bhopal assignment question paper - Madhya Pradesh ...
university, bhopal assignment question paper - Madhya Pradesh ...
university, bhopal assignment question paper - Madhya Pradesh ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
M P BHOJ (OPEN) UNIVERSITY, BHOPAL<br />
ASSIGNMENT QUESTION PAPER<br />
2009-10<br />
CLASS : M.Sc. Final SUBJECT: Mathematics<br />
Paper - V - Programming in C (Theory & Practical)<br />
funsZ'k %&<br />
1- lHkh iz'u Lo;a dh gLrfyfi esa gy djuk vfuok;Z gSA 2- nksuksa l=h; iz'ui= gy djuk vfuok;Z gsa<br />
3- l=h; dk;Z mÙkjiqfLrdk ds vafre i`"B ij lacaf/kr fo"k; dh laiUu<br />
laidZ d{kkvksa dh frfFk;ksa ,oa ijke'kZnkrk ds uke ,oa in dk<br />
vo'; mYys[k djsaA<br />
5- l=h; dk;Z mÙkjiqfLrdk,a tek djus dh vafre frfFk 20<br />
vizsy 2010 gSA<br />
4- vafre frfFk mijkar l=h; dk;Z mÙkjiqfLrdkvksa dks ekU; ugha djrs<br />
gq, ewY;kafdr ugha dh tkosxhA<br />
6- l=h; dk;Z mÙkjiqfLrdk,a tek djus dh jlhn vo'; izkIr dj ysaA<br />
7- nks l=h; dk;Z izkIrkadksa esa ls fdlh ,d esa vf/kdre vad dh iwoZ izpfyr O;oLFkk ds LFkku ij nksuksa l=h; dk;ksZa ds izkIrkadksa<br />
ds vkSlr vad l=kar ijh{kk ifj.kke esa tksM+s tk,axsA lHkh iz'uksa ds vad leku gSaA<br />
First Assignment Max Marks - 30<br />
Q.1 write a program to print series of prime no. from 1 to n. Where n is a user defined no.<br />
Q.2 Write a program to add digits of a no. given by the user.<br />
Q.3 write a program to print given no. in reverse order without using array.<br />
Q.4 Write a program for reversing an array.<br />
Q.5 Give characterstics of good programming?<br />
Q.6 write short notes on<br />
(i) OOPS; (ii)Tokens.<br />
Q.7 What will be the value of a & b after the execution of the following statement:<br />
a=a++ + ++a + b++ + (b35;<br />
(iii)If the employee is not married & female , age> 30.<br />
In all other cases insurance is denied . Age, gender & martial status is given by<br />
user & check wheather he or she is eligible for insurance or not. Usintg neste if & logical<br />
operators.<br />
Q.4 Take two number in two variables and swap them by using functions (by passing address of the<br />
wwo no.s in the function).