Download JNTUH (Jawaharlal Nehru Technological University Hyderabad) MBA (Master of Business Administration) R16 2018 May Second Semester (2nd Sem) C Programming Question Paper.
.
.
MBAIISemesterEndExaminations(Regular/Supplementary)-May/June,2018
Regulation: .?R16
CProgramming
Time: 3Hours (MBA) MaxMarks: 70
AnswerONEQuestionfromeachUnit
AllQuestionsCarryEqualMarks
Allpartsofthequestionmustbeansweredinoneplaceonly
UNIT?I
1. (a) Identifythedi?erentsymbolsusedin?owchart. Drawa?owchartto?ndtheaverageofthree
inputintegernumbers. [7M]
(b) Ifafourdigitnumberisinputthroughthekeyboard,writeaCprogramtoobtainthesumof
the?rstandlastdigitofthisnumber. [7M]
2. (a) Whatisthedi?erencebetweenabreakandcontinuestatement?Explainwithanexample.[7M]
(b) Designanalgorithmthatacceptsapositiveintegerandreversestheorderofitsdigit. [7M]
UNIT?II
3. (a) ExplainrecursionfunctionusedinClanguagewithanexample. [7M]
(b) WriteaCprogramto?ndtransposeofamatrixanddisplaytheoutputinmatrixformat.
[7M]
4. (a) Explainthedi?erentstorageclassesusedinCprogramminglanguagewithexamples.
[7M]
(b) Whatwillbetheoutputofthefollowingcodesnippet?Justifyyouranswer. [7M]
main()
{
staticintc=5;
printf(?c=%d ?,c--); \ n
if(c)
main();
}
UNIT?III
5. (a) Explainthedi?erencebetweenmallocandcallocfunctions. [7M]
(b) WriteaCprogramtocountvowels,consonantsinastringwhichisenteredbytheuser. [7M]
6. (a) Listoutanyfourstringhandlingfunctionswithexample. [7M]
(b) WriteaCprogramtoswaptwonumberusingcallbyreference. [7M]
Page1of2
FirstRanker.com - FirstRanker's Choice
HallTicketNo QuestionPaperCode:CMB312
.
.
MBAIISemesterEndExaminations(Regular/Supplementary)-May/June,2018
Regulation: .?R16
CProgramming
Time: 3Hours (MBA) MaxMarks: 70
AnswerONEQuestionfromeachUnit
AllQuestionsCarryEqualMarks
Allpartsofthequestionmustbeansweredinoneplaceonly
UNIT?I
1. (a) Identifythedi?erentsymbolsusedin?owchart. Drawa?owchartto?ndtheaverageofthree
inputintegernumbers. [7M]
(b) Ifafourdigitnumberisinputthroughthekeyboard,writeaCprogramtoobtainthesumof
the?rstandlastdigitofthisnumber. [7M]
2. (a) Whatisthedi?erencebetweenabreakandcontinuestatement?Explainwithanexample.[7M]
(b) Designanalgorithmthatacceptsapositiveintegerandreversestheorderofitsdigit. [7M]
UNIT?II
3. (a) ExplainrecursionfunctionusedinClanguagewithanexample. [7M]
(b) WriteaCprogramto?ndtransposeofamatrixanddisplaytheoutputinmatrixformat.
[7M]
4. (a) Explainthedi?erentstorageclassesusedinCprogramminglanguagewithexamples.
[7M]
(b) Whatwillbetheoutputofthefollowingcodesnippet?Justifyyouranswer. [7M]
main()
{
staticintc=5;
printf(?c=%d ?,c--); \ n
if(c)
main();
}
UNIT?III
5. (a) Explainthedi?erencebetweenmallocandcallocfunctions. [7M]
(b) WriteaCprogramtocountvowels,consonantsinastringwhichisenteredbytheuser. [7M]
6. (a) Listoutanyfourstringhandlingfunctionswithexample. [7M]
(b) WriteaCprogramtoswaptwonumberusingcallbyreference. [7M]
Page1of2
UNIT?IV
7. (a) Mentionthedi?erencesbetweenstructuresandunions. [7M]
(b) Writeaprogramtoadd2complexnumberusingstructures. [7M]
8. (a) Whatwillbetheoutputofthefollowingcodesnippet?Justifyyouranswer. [7M]
i. #include
enumweek{Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday};
intmain()
{
enumweektoday;
today=Wednesday;
printf(?Day%d?,today+1);
return0;
}
ii. #include
intmain()
{
structvalue
{
intbit1:1;
intbit3:4;
intbit4:4;
}
bit={1,2,13};
printf(?%d,%d,%d ?,bit.bit1,bit.bit3,bit.bit4);return0; \ n
}
(b) WriteaCprogramtoaddtwodistancesenteredbyuser.Measurementofdistanceshouldbein
inchandfeet.(Note:12inches=1foot)
[7M]
UNIT?V
9. (a) Explainthefollowing?leI/Ofunctionswithexample
i.fopen() ii.fread() iii.fwrite() iv.fclose() [7M]
(b) WriteaCprogramtoreadnameandmarksofnnumberofstudentsfromuserandstorethem
ina?le. [7M]
10. (a) WriteaCprogramtocopycontentsfromone?letoanother. [7M]
(b) Whatwillbetheoutputofthefollowingcodesnippet?Justifyyouranswer. [7M]
main()
{
charch=?z?;
staticcharstr[]=?Zebra?,
putc(ch,strprn);
fprintf(stdprn,?%s?,str);
fwrite(str,5,1,stdprn);
fputs(str,stdprn);
}
Page2of2
FirstRanker.com - FirstRanker's Choice
This post was last modified on 04 December 2019