Download JNTUH MBA 2017 July 2nd Semester C Programming Question Paper

Download JNTUH (Jawaharlal Nehru Technological University Hyderabad) MBA (Master of Business Administration) R16 2017 July Second Semester (2nd Sem) C Programming Question Paper.

HallTicketNo QuestionPaperCode:CMB312
.
.
MBAIISemesterEndExaminations(Regular)-July,2017
Regulation: .?R16
CProgramming
(MasterofBusinessAdministration)
Time: 3Hours MaxMarks: 70
AnswerONEQuestionfromeachUnit
AllQuestionsCarryEqualMarks
Allpartsofthequestionmustbeansweredinoneplaceonly
UNIT?I
1. (a) Discusstheconceptofimplicittypeconversionwithasuitableexample. [7M]
(b) WriteaCprogramthatcalculatesandprintstheaverageofenteredintegers. Assumetheuser
willentercontrol-dtoendtheinput. [7M]
SampleRun:
Enteraninteger(control-dtoend):23
Enteraninteger(control-dtoend):123
Enteraninteger(control-dtoend):45
Enteraninteger(control-dtoend):987
Enteraninteger(control-dtoend):87
Enteraninteger(control-dtoend):098
Enteraninteger(control-dtoend):
Theaverageis:227.17
2. (a) Apalindromeisanumberoratextphrasethatreadsthesamebackwardsasforwards.Writea
Cprogramthatreadsina?ve-digitintegeranddetermineswhetherornotitisapalindrome.
Hint:Usethedivisionandmodulusoperatorstoseparatethenumberintoitsindividualdigits.
SampleRun1: [7M]
Entera?ve-digitnumber:12345
12345isnotapalindrome
SampleRun2:
Entera?ve-digitnumber:12321
12321isapalindrome
(b) Discusstheconceptofidenti?ersanddata-typesinC. [7M]
UNIT?II
3. (a) Withasuitableexample,discussthefollowingcategoriesofuserde?nedfunctionsinC [10M]
i. functionswithargumentsandreturnvalues
ii. functionwithnoargumentandreturntype
(b) Explainbrie?yhowdoyoupassa2DarrayasaparameterinC? [4M]
Page1of2
FirstRanker.com - FirstRanker's Choice
HallTicketNo QuestionPaperCode:CMB312
.
.
MBAIISemesterEndExaminations(Regular)-July,2017
Regulation: .?R16
CProgramming
(MasterofBusinessAdministration)
Time: 3Hours MaxMarks: 70
AnswerONEQuestionfromeachUnit
AllQuestionsCarryEqualMarks
Allpartsofthequestionmustbeansweredinoneplaceonly
UNIT?I
1. (a) Discusstheconceptofimplicittypeconversionwithasuitableexample. [7M]
(b) WriteaCprogramthatcalculatesandprintstheaverageofenteredintegers. Assumetheuser
willentercontrol-dtoendtheinput. [7M]
SampleRun:
Enteraninteger(control-dtoend):23
Enteraninteger(control-dtoend):123
Enteraninteger(control-dtoend):45
Enteraninteger(control-dtoend):987
Enteraninteger(control-dtoend):87
Enteraninteger(control-dtoend):098
Enteraninteger(control-dtoend):
Theaverageis:227.17
2. (a) Apalindromeisanumberoratextphrasethatreadsthesamebackwardsasforwards.Writea
Cprogramthatreadsina?ve-digitintegeranddetermineswhetherornotitisapalindrome.
Hint:Usethedivisionandmodulusoperatorstoseparatethenumberintoitsindividualdigits.
SampleRun1: [7M]
Entera?ve-digitnumber:12345
12345isnotapalindrome
SampleRun2:
Entera?ve-digitnumber:12321
12321isapalindrome
(b) Discusstheconceptofidenti?ersanddata-typesinC. [7M]
UNIT?II
3. (a) Withasuitableexample,discussthefollowingcategoriesofuserde?nedfunctionsinC [10M]
i. functionswithargumentsandreturnvalues
ii. functionwithnoargumentandreturntype
(b) Explainbrie?yhowdoyoupassa2DarrayasaparameterinC? [4M]
Page1of2
4. (a) ThefactorialofaintegerN,denotedbyN!istheproductofallpositiveintegerslessthanor
equaltoN.Factorialdoesnotexistfornegativenumbersandfactorialof0is1.Writearecursive
routinetocomputefactorialofanumber.Writeatestdriverforthesame. [8M]
(b) Whatisanarray?Howisanarraydeclaredandinitialized? [6M]
UNIT?III
5. (a) Bringoutthesigni?canceofpointerstovoidwithasuitableexample. [8M]
(b) InC,astringcanbereferredeitherusingacharacterpointerorasacharacterarray.Explainit
withexamples.
[6M]
6. (a) Explainbrie?ypointerarithmeticinCwithsuitableexamples. [6M]
(b) WhataretheunformattedstringinputandoutputfunctionsavailableinC?Istheinputfunction
safe?Ifyes,whyandIfno,Justify? [8M]
UNIT?IV
7. (a) Withasuitableexampleexplaintheconceptoftypedef. [6M]
(b) Acomplexnumberisanumberthatcanbeexpressedintheforma+bi,whereaandbarereal
numbersandiistheimaginaryunit,satisfyingtheequation i
2
=?1.WriteaCProgramtoadd
twocomplexnumbersbypassingstructuretoafunction. [8M]
8. (a) WriteaCprogramusingnestedstructurestoread3employeesdetailswiththefollowing?elds;
emp-id,name,designation,address,basic,da,hraandcalculategrosssalaryofeachemployee.
(Hint:grosssalary=basic+da+hra).
[9M]
(b) BringouttheadvantageofusingBitFieldsinCwithasuitableexample. [5M]
UNIT?V
9. (a) Whyisfseek()preferredoverrewind()inC? [6M]
(b) WriteaCProgramtoCopyContentsofone?letoanother?le. [8M]
10. (a) Discusshowreadingandwritingw.r.tbinary?ledoneinC. [8M]
(b) Explainbrie?yfgets()andfputs()withanexample. [6M]
? ? ? ? ? ? ?
Page2of2
FirstRanker.com - FirstRanker's Choice

This post was last modified on 04 December 2019