Introduction: Algorithms & flowcharts-Overview of C-Features of
C-IDE of C Structure of C program-Compilation & eecution of C program-Identifiers! varia"les! epression! #e$words! data t$pes! constants! scope and life of varia"les! local and glo"al varia"les% Operators: arithmetic! logical! relational! conditional and "itwise operators- Special operators: si&e of '( & comma '!( operator-)recedence and associativit$ of operators & *$pe conversion in epressions% +asic input,output and li"rar$ functions: Single character input,output i%e% getch'(! getchar'(! getche'( & putchar'(-Formatted input,output: printf'( and scanf'(--i"rar$ Functions: concepts! mathematical and character functions% 1.What is the use of size of operator? Give an example. 12/2013 2.What is the use of main () an print f fun!tions? 12/2013 1. "tate the stru!ture of # pro$ram. 0%/2013 2. What is t&pe !onversion? 0%/2013 1.Give the ifferen!e 'et(een a !ompiler an interpreter. 12/2012 2. What is the ifferen!e 'et(een )o$i!al *+, an -it(ise *+,? 12/2012 1. Give the stru!ture of a .#/ pro$ram. 2. 0rovie an example for relational expression an lo$i!al expression.? .1. ,efine s!ope an life of varia'les. 01/2012 2."tate the si$nifi!an!e of sizeof() an !omma operators01/2012 1. What is a flo(!hart? 2. What are 2e&(ors in #? Give examples. 1. ,efine al$orithm. 12/2011 2."tate the ifferen!e 'et(een 3f an 3$ format spe!ifiers. 12/2011 1. Write the e4uivalent .#/ expressions for the follo(in$ e4uations. (a) t5(a6'36a') 2 /a6'71) (') y x p b a x % 2 + + + = 2. What is a flo(!hart? What are the s&m'ols use for 8/9 an #onitions in a flo(!hart? 1. ,efine t&pe !astin$ (ith an example. 01/2011 2. *ppl& operator pre!een!e to evaluate the expression :/22;(3.1<62)/; 3/%. 01/2011 1. ,efine varia'le. Give =xample. 12/2010 2. )ist an& four math fun!tions. 12/2010 1. Write the !hara!teristi!s of "tru!ture 0ro$rammin$ )an$ua$es. 2. >o( o !onstants iffer from varia'les? 1. What are the four ifferent !lasses of ata t&pes? 0%/2010
2. What is the pre!een!e asso!iate (ith the operators in #? 0%/2010 1. Write # assi$nment statements to evaluate the follo(in$ e4uation. ? 5 (2'!/'6!)$ 12/200@
2. What is !oer!ion? Give an example. 12/200@ 1. ,etermine the value of the follo(in$ lo$i!al expressions 8f a 5 % ' 5 10 an ! 5 71 05-2009 2. ,es!ri'e the purpose of the 4ualifiers !onst an volatile. (a) a 55 ! AA ' B a (') a B ' CC a D ! 705-2009 0*E? F - *ns(er *)) the Guestions 11. (a) What are the varia'les use in # pro$ram? =xplain the rules for them an provie examples in ea!h !ate$or&. (') What is 'it (ise operators? =xplain the s&ntax for them an is!uss their uses in # pro$ram. 12/2013 11. )ist the various operators in # an explain an& four in etail. 0%/2013 11. What is a ata t&pe? =xplain the ata t&pes (ith suita'le examples12/2012 11. (a) Write the ifferen!es 'et(een top o(n an 'ottom up approa!hes. (<) (') ,ra( a flo( !hart for finin$ the roots of a 4uarati! e4uation. (H) 11(a) ,is!uss a'out the ifferent t&pes of !onstants in #. 01/2012 (') Write short notes on various lo$i!al an relational operators in #. 01/2012 11. (a) =xplain the stru!ture of a # pro$ram. (') Write a note on top o(n approa!h. 11.=xplain a'out the various operators supporte in #12/2011 11. (a) What is meant '& a "tru!ture 0ro$rammin$? What are the approa!hes that are to 'e aopte in the pro$ram evelopment? (') Give the $eneral format of a # pro$ram an es!ri'e the various !omponents of a pro$ram. 11. (a) 8f a five i$it num'er is input throu$h a 2e&'oar. Write a pro$ram to print a ne( num'er '& ain$ one to ea!h of the i$its. (Ior example 123@1 is printe as 23<02). (') 8llustrate the usa$e of t&pe efinition (ith an example. 01/2011 11. What are the ifferent operators availa'le in #? =xplain (ith examples. 12/2010 . 1. (a) What is meant '& flo(!hart? =xplain the s&m'ols use for ra(in$ a flo(!hart. (') Write the stru!ture of a # pro$ram. =xplain it (ith an example pro$ram. 11. Write a pro$ram to solve the 4uarati! e4uation. 0%/2010 11. =xplain the hierar!h& an asso!iativit& of 'inar& operators in # (ith example. 12/200@ 11.=xplain a'out the stru!ture of 'asi! # pro$rams? 05-2009 (or) 12. ,is!uss the follo(in$J (a) $et !h () (') $et !har () (!) put !har ()712/2013 12. (a) ,is!uss the ifferen!e 'et(een sin$le !hara!ter input/output fun!tions. (H) 0%/2013 (') Write a note on formatte input/output fun!tions. (<) 0%/2013 .12. Write a # pro$ram to !he!2 (hether the $iven num'er is prime or not. 12/2012 12. Kention the various t&pes of operator use in .#/. Give example for ea!h 12. (a) =xplain in etail the formatte input an output fun!tions. (H) 01/2012 (') Write a # pro$ram to evaluate the expressionJ (<)
Z XYZ X Y X + + 2 2 2
(here LM N an O are small inte$ers. 01/2012 12. (a) ,es!ri'e the various t&pes of operators in # (ith suita'le examples. (') What are !onstants in #? Give its t&pes (ith an example 12. (a)Write a # pro$ram to shift the input ata '& t(o 'its ri$ht. (') Write a # pro$ram to s(ap the values of the t(o varia'les (ithout usin$ a thir varia'le. 12/2011 12. (a) )ist the operators availa'le in #. =xplain their usa$e in etail usin$ examples. (') =xplain (ith an example the effe!t of appl&in$ the rule of pre!een!e in evaluatin$ expressions in # lan$ua$e. 12. (a) ,etermine the hierar!h& of operations an evaluate the follo(in$ expression 2;3;%/(161) F 1%/3;(262). (') What (oul 'e the output of the follo(in$ !oe? main() P int x51%Q printf(3 3 3M xR51%M x520MxD30)Q S (!) *!!orin$ to Gre$orian !alenarM it (as Kona& on the ate 1/1/1@00. 8f an& &ear is input throu$h the 2e&'oarM (rite a pro$ram to fin out (hat is the a& on 8 Tanuar&01/2011 12. =xplain the input/output fun!tions of .#/ (ith suita'le example12/2010 12. =xplain the various t&pes of operators availa'le (ith a sample pro$ram for ea!h t&pe 12. Write a pro$ram to etermine an print the sum of the follo(in$ series 1 6 U 6 1/3 6 V1/n. 0%/2010 12. Kention various ata t&pes (ith sizeM ran$e of values an example. 12/200@ 12.=xplain the !lassifi!ation of operators in # 05-2009 UNIT II CONTROL STRUCTURES AND FUNCTIONS 10 hrs. Control structures: Conditional control--oop control and .nconditional control structures% Functions: *he /eed of a function-.ser defined and li"rar$ function- )rotot$pe of a function-Calling of a function-Function argument-)assing arguments to function- 0eturn values-/esting of function- main'(-Command line arguments and recursion% Storage class specifier 1 auto! etern! static! & register% 3. ,ifferentiate 'et(een 'rea2 an !ontinue statements. 12/2013 <. What is the use of s(it!h statements? 12/2013 3. Write the usa$e of un!onitional !ontrol stru!tures. 0%/2013 <. ,efineJ Ee!ursion. 0%/2013 3. "tate the ifferen!e 'et(een if an (hile statement? 12/2012 <. Write a pro$ram to fin the maximum of t(o num'ers12/2012 3. >o( o &ou use $ets() an puts() fun!tions in #? <. ,ifferentiate 'et(een 'rea2 an !ontinue statement 3. Write a small ! pro$ram to !he!2 (hether a $iven num'er is o or even. 01/2012 <. +ame the ifferent me!hanisms use for passin$ ar$uments to fun!tion 01/2012 3. Kention the use of $ets() an puts() fun!tions. <. Give the s&ntax of s(it!h7!ase statement in # 3. Write a # pro$ram to print the first five num'ers startin$ from one to$ether (ith their s4uares. 12/2011 <. What is meant '& operator pre!een!e? Give the pre!een!e for lo$i!al operators. 12/2011 3. ,ifferentiate 'et(een 'rea2 an !ontinue statements. <. What is the output of the follo(in$ statement? Ior ( Q Q ) printf(Wel!omeWn)Q 3. What is the use of the 2e&(or .stati!/? 01/2011 <. Given three points (x1M&1)M (x2M&2)M (x3M&3)M (rite a pro$ram to !he!2 if all the three points lie on the same line. 01/2011 3. Write a !oe se$ment usin$ (hile statement to print the num'ers from 10 o(n to 1. 12/2010 <. What is the nee of !omman line ar$ument? 12/2010 3. !har sX20Y 5 0ro$rammin$ in #Q s!anf(3sMs)Q $ets(s)Q What (ill 'e the output of this pro$ram se$ment? <. When !an 'rea2 an !ontinue 'e use? 3. Write a pro$ram to rea an print real num'ers. 0%/2010 <. =xplain (ith example the $et!har() fun!tion. 0%/2010 3. Give the impa!t of omission of initializationM !onition an in!rement expressions. 12/200@ <. Write a # pro$ram to fin the $reatest of $iven 10 num'ers. 12/200@ 3.Write o(n the ifferen!e 'et(een oV(hile an (hile. 05- 2009 <.Write o(n the steps of loopin$ pro!ess. 05-2009 0*E? F - 13. What is neste if7else statement !an this 'e repla!e (ith s(it!h7!ase statement al(a&s? =xplain. 12/2013 13. Write a # pro$ram to ispla& all the prime fa!tors for the $iven num'er .n usin$ fun!tions. 0%/2013 13. -riefl& explain the !onitional statements (ith examples for ea!h. 12/2012 13. -riefl& es!ri'e a'out the loop !ontrols in .#/. Give appropriate examples 13. =xplain in etail the !onitional !ontrol stru!tures in #. *lso (rite a # pro$ram to fin (hether a $iven num'er is palinrome or not. 01/2012 13. (a) =xplain the sin$le !hara!ter input an output fun!tions in # (ith an example. (') Write a # pro$ram to fin the lar$est amon$ three num'ers *M- an #. 13. (a) Write a # pro$ram to ispla& the follo(in$ usin$ for loop. z 6 & 6 x 6 VVV. 6 a (') With suita'le pro$ram explain the ifferent parameter passin$ me!hanism of a fun!tion12/2011 13. Write a pro$ram to rea a list of elements !onsistin$ of positiveM ne$ative an zero values until 7@@@ is entere. ?he pro$ram shoul !ount the num'er of positiveM ne$ative an zero elements in the listM an print the !ounts as output. 13. (a) * positive inte$er is entere throu$h the 2e&'oar. Write a fun!tion to fin the 'inar& e4uivalent of the num'er usin$ re!ursion. (') 8llustrate !all '& value an !all '& referen!e (ith an example. 01/2011 13. =xplain the follo(in$ !onitional statements. 12/2010 (a) neste if7else statement (') s(it!h7!ase statement 13. (a) Give the s&ntax of s!anf ( ) an printf ( ) an explain their usa$e in # lan$ua$e. (') Write a # pro$ram to a!!ept num'ers from the user until their sum ex!ees %0. 13. =xplain the various (a&s in (hi!h the ifferent ata t&pes in # !an 'e rea. 0%/2010 13. Write a # pro$ram to !al!ulate the sum of the remainers o'taine '& iviin$ (ith moular ivision operation '& 2 on 1 to @ num'ers. 12/200@ 705-2009 13.(a) Write a # pro$ram for Ii'ona!!i "eries. (') Write a # pro$ram to !ompute the sum of the i$its of a $iven inte$er num'er. 1<. What are the various stora$e !lasses availa'le in #? =xplain 'riefl&. 12/2013 1<. =xplain the stora$e !lass spe!ifier (ith one example. 0%/2013 1<.Write a pro$ram to print the entere !hara!ter in upper !ase of lo(er !ase '& usin$ $et!har() an put!har() fun!tion12/2012 1<. Write a .#/ !oe to ispla& the result of a stuent. ?he !onitions are $iven 'elo(J Kar2s s!ore @0 C a'ove 8 #)*"" -et(een :0 F H@ 88 #)*"" -et(een %0 F 1@ 888 #)*"" -elo( %0 I*8) 1<. (a) ,es!ri'e the various parameter passin$ me!hanism use in # fun!tions. (H) 01/2012 (') Write a # pro$ram to fin the fa!torial of a $iven num'er usin$ a re!ursive fun!tion.(<) 01/2012 1<. =xplain the various loopin$ statements in # (ith suita'le examples. 1<. ,efine a fun!tion to fin the sum of ia$onal elements of a s4uare matrix an (rite a main fun!tion to test it. 12/2011 1<. =xplain (ith exampleM the various loopin$ !onstru!ts availa'le in #. 1<. (a) Write a # fun!tion to evaluate the series sin(x) 5 x F (x 3 /3R) 6 (x % /%R) 6 V (') =xplore the various stora$e !lasses in # (ith an example. 01/2011 1<. (a) Write a # pro$ram that reas a num'er an ispla& (hether the num'er is prime or not usin$ fun!tion. (') Write short notes on stora$e !lass spe!ifiers. 12/2010 1<. Write a # pro$ram to fin the roots of a 4uarati! e4uation. Zse s(it!h !ase. 1<. (a) Write a pro$ram to rea 10 names an print them. (') Write a pro$ram to rea the ifferent ata t&pes an print them. 0%/2010 1<. ,is!uss an !ompare the features of printf() an s!anf() fun!tion. 12/200@ 1<. =xplain the e!ision ma2in$ statements05-2009 UNIT III ARRAYS AND STRUCTURE 10 hrs. Arra$s: Single and multidimensional arra$s-Arra$ declaration and initiali&ation of arra$s-Arra$ as function arguments% Strings: Declaration-Initiali&ation and string handling functions% Structure and .nion: Defining structure-Declaration of structure varia"le- Accessing structure mem"ers-/ested structures-Arra$ of structures- Structure assignment-Structure as function argument-Function that returns structure- .nion% %. What is meant '& arra&? Give an example. 12/2013 1. "tate the ifferen!es 'et(een arra&s an stru!tures. 12/2013 %. )ist out the rules to pass a 2, arra& to a fun!tion. 0%/2013 1. ,istin$uish 'et(een stru!ture an union. 0%/2013 %. What o &ou mean '& .!all '& referen!e? 12/2012 1. What are the ifferent stora$e !lasses availa'le in .#/? 12/2012 %. What is the use of strstr() an strrev() fun!tions? 1. )ist out the stora$e !lasses use in .#/. %. What is an arra&? Write the e!laration of a sin$le imensional arra&. 01/2012 1. Write notes on str!mp() fun!tion (ith example. 01/2012 %. ,efine arra&. 1. )ist the various stora$e !lasses use in #. %. 8s it possi'le to use multiple efault statements in s(it!h ( ) statements? 12/2011 1. ,ifferentiate li'rar& fun!tion an user efine fun!tion. 12/2011 %. Write an& four strin$ manipulation fun!tions. 1. What is the avanta$e an isavanta$e of re$ister stora$e !lass? %. What is a neste stru!ture? 01/2011 1. ,ifferentiate a stru!ture an a union (ith an example. 01/2011 %. What are the avanta$es of union over stru!ture? 12/2010 1. Write a # pro$ram to reverse the $iven strin$. 12/2010 %. What is an inex an (h& oes it have to 'e uni4ue? 1. ,efine re!ursion %. >o( o &ou e!lare a multiimensional arra&? Give example. 0%/2010 1. )ist an& t(o ifferen!es 'et(een arra&s an stru!tures0%/2010 %.Kention an& of four fun!tions of stio.h (ith their purpose. 12/200@ 1. What (ill 'e the value of the follo(in$ fun!tion !alls? (a) ivie(1%.3) (') ivie(1.0M1.%) (!) ivie(HM3) () ivie(@.0M 3) 12/200@ %.Write o(n the !ommon operations performe on !hara!ter strin$s. 05-2009 1.,efineJ re!ursion 05-2009 0*E? F - 1%. >o( arra&s are passe as ar$uments to a fun!tions? ,es!ri'e (ith suita'le # pro$ram. 12/2013 1%. Write a # pro$ram to perform strin$ !on!atenation an !op&in$ (ithout usin$ 'uil7in fun!tion. 0%/2013 1%. (a) What o &ou mean '& re!ursion? 12/2012 (') Write a # pro$ram to !al!ulate the fa!torial of .n/ num'ers usin$ Ee!ursion. 1%. (a) Write a .#/ pro$ram to reverse the $iven < i$it num'er. (') >o( (ill &ou use multiimensional arra& in .#/? Give a suita'le example 1%. (a) =xplain the e!laration an initialization of sin$le an multi imensional arra&s.(:) 01/2012 (') Write a # pro$ram to a 2 matri!es.(%) 01/2012 1%. Write a # pro$ram to multipl& t(o matri!es * an -. 1%. Write a # pro$ram to repla!e the zero (ith the su!!essive num'er in the follo(in$ arra& int xX10Y5P1M0M3M0M%M0M:M0M@M0S 712/2011 1%. Write a pro$ram to rea .+/ unsorte num'ers into an arra& an sort an print the arra& elements in es!enin$ orer. 1%. Write a pro$ram to o'tain the eterminant of a s4uare matrix. 01/2011 1%. Write a # pro$ram that $ets an ispla&s the report of n stuents (ith their personal an a!aemi! etails usin$ stru!tures. 12/2010 . 1%. (a) Write a # pro$ram to fin the transpose of a matrix. (') *ssume s1 5 Wel!ome s25hai. Write a # pro$ram to (i) fin the len$th of s1. (ii) !op& to another strin$ s3 (iii) !ompare s1 (ith s2 1%. Write a etaile note on user efine fun!tions. 0%/2010 1%. Write a # pro$ram to arran$e the names in alpha'eti!al orer. 12/200@ 1%. Write a # pro$ram (hi!h (ill rea a text an !ount all o!!urren!es of a parti!ular (or. 05-2009 11. =xplain a'out strin$ hanlin$ fun!tions in etail. 12/2013 11. What is stru!ture? =xplain ho( the stru!ture is passe as a fun!tion ar$ument (ith an example. 0%/2013 11. (a) Write short notes on i) strlen( ) ii) str!at( ) iii) strrev( ) iv) str!mp( ) v) str!hr( ). (') Write a # pro$ram to reverse the $iven strin$. 12/2012 11. What is re!ursion? 0rovie .#/ !oe for finin$ the fa!torial of a num'er 11(a)Write notes on efinin$ an e!larin$ stru!tures in #. 01/2012 (') Write a # pro$ram to !reate a stru!ture to store roll num'erM name an mar2s of all the stuents in a !lass an fin the total mar2 of ea!h stuent. 01/2012 11. (a) =xplain the various strin$ hanlin$ fun!tions use in #. (') Write a # pro$ram to fin the fa!torial of a $iven num'er usin$ re!ursion. 11. * Namaha ealer maintains a re!or of a sales of various vehi!les in the follo(in$ formJ [ehi!le ?&pe Guantit& Konth/"ales 0ri!e IO 2 2/@@ 1M%0M000 E71% 1 1/2\ 1M10M000 Iazer 3 @/@@ 2M<0M000 Write a # pro$ram to rea the a'ove ata into an arra& of stru!tures an print the etails of a parti!ular vehi!le sol urin$ a spe!ifi! perio. ?he pro$ram shoul re4uest the user to input the vehi!le t&pe an the perio. 12/2011 11. =xplain the various stora$e !lasses availa'le in # (ith respe!t to s!ope an lifetime of ea!h stora$e !lasses (ith an example. 11. *n automo'ile !ompan& has serial num'er for en$ine parts startin$ from **9 to II@. ?he other !hara!teristi!s of parts to 'e spe!ifie in a stru!ture are Near of Kanufa!tureM material an 4uantit& manufa!ture. (a) Write a stru!ture to store information !orresponin$ to a part. (') Write a pro$ram to retrieve information on parts (ith serial num'ers 'et(een --1 an ##1. 01/2011 11. Write a # pro$ram to perform the multipli!ation of t(o matri!es12/2010 11. )ist the ifferent stora$e !lasses availa'le in #. =xplain ea!h of them in etail. 11. Write a pro$ram to evaluate *5* 6 -;# (here *M- an # are matri!es 0%/2010 11. Write a # pro$ram to fin the thir lar$est num'er in an arra&12/200@ 11.=xplain the stora$e !lasses in # 05-2009 UNIT IV POINTERS 10 hrs. )ointers: *he 2&3 and 24 3 operators-)ointers epressions-)ointers vs arra$s-)ointer to functions-Function returning pointers-Static and d$namic memor$ allocation in C% D5A functions: malloc'(! calloc'(! si&eof'(! free'( and realloc'(-)reprocessor directives% :. What is &nami! memor& allo!ation? >o( (ill &ou a!hieve it? 12/2013 H. ,efine ma!ro. Give an example. 12/2013 :. What (oul 'e the e4uivalent pointer expression for referrin$ the arra& element a X8Y XTY X\Y? 0%/2013 H. What is &nami! memor& allo!ation? 0%/2013 :. Write an& three !omparison 'et(een !all '& value an !all '& referen!e. 12/2012 H. ,efine stati! memor& allo!ation. 12/2012 :. #reate an arra& of pointers usin$ .#/. H. #reate a union varia'le for a 'oo2. :. What are the avanta$es of usin$ pointers? 01/2012 H. What is the nee for performin$ &nami! memor& allo!ation? 01/2012 :. >o( is a pointer varia'le e!lare an initialize? H. What is union? :. >o( o fun!tions help to reu!e the pro$ram size? 12/2011 H. Kention the si$nifi!an!e of voi as return t&pe in fun!tion efinition. 12/2011 :. What is a pointer? H. Write the stru!ture for an =K0)9N== (ith attri'utes =mplo&ee num'erM nameM aressM >E*M ,*M ##*M 0IM )8#. ,e!lare an arra& of %0 emplo&ees (ith stru!ture =mplo&ee. :. 8llustrate the use of pointers to pointers (ith an example. 01/2011 H. =nlist the ifferen!es 'et(een mallo!() an !allo!() fun!tions in !M 01/2011 :. What is meant '& mallo!() fun!tion? Give example12/2010. H. ,ifferentiate pointers (ith arra&s. 12/2010 :. What is the use of .;/ an .7B/ operators in pointers? H. >o( is a stru!ture ifferent from an arra&? :. >o( o &ou e!lare an arra& of stru!tures? 0%/2010 H. ,istin$uish 'et(een (;m) % an ;mX%Y. 0%/2010 :. ,ifferen!e 'et(een stru!ture an union. 12/200@ H. What is the relationship 'et(een arra& an a pointer varia'le? 12/200@ :.What is a pointer? >o( is a pointer initialize? 05-2009 H.Write o(n the ifferen!e 'et(een stru!ture an union. 05- 2009 0*E? F - 1:. >o( o pointers are relate to arra&s? =xplain in etail. 12/2013 1:. Write a # pro$ram to perform matrix multipli!ation '& usin$ pointers. #reate the matri!es '& usin$ &nami! memor& allo!ation. 0%/2013 1:. (a) What o &ou mean '& ,&nami! memor& allo!ation? (') Write a pro$ram to print Ii'ona!!i series usin$ ,&nami! memor& allo!ation. 12/2012 1:. "tore an ispla& the mar2 etails of the stuents in a !lass usin$ stru!tures in .#/ lan$ua$e. 1:. =xplain the follo(in$J (a) 0ointer an arra&s (') 0ointer to Iun!tions701/2012 1:. (a) =xplain the !all '& referen!e (ith an example # pro$ram. (') Write 'riefl& a'out arra& of pointers in #. 1:Write a # pro$ram to fin the transpose of a t(o imensional matrix usin$ &nami! memor& allo!ation12/2011 1:. ,efine a stru!ture "tuent !onsistin$ of Eoll noM nameM ?est1M ?est2M "eminarM "emester mar2s an !reate an arra& of .+/ "tuent. (a) Write a pro$ram to print the Eoll +oM +ameM 8nternal Kar2M =xternal Kar2M an ?otal Kar2. (') #al!ulate the $rae of the stuent 'ase on total mar2 usin$ the follo(in$ ta'le Kar2 Grae B@% ."/ H% D5 K D5@% .*/ :% D5 K D5H% .-/ 1% D5 K D5:% .#/ %% D5 K D5 1% .,/ B5%0 .=/ D%0 .I/ 1:Write a pro$ram to perform insertM elete an !ount the noes in a lin2e list usin$ &nami! memor& allo!ation. 01/2011 . 1:. ,ifferentiate pass '& value an pass '& aress in #. Give example. 12/2010 1:. (a) Write a # pro$ram to s(ap t(o num'ers usin$ pointers an (ithout usin$ pointers. (') >o( !an an arra& of pointers 'e a!!esse? With an example pro$ramM explain in etail. 1:. (a) Write a pro$ram usin$ stru!tures to store stuents ata. (') #ompare unions an stru!tures. 0%/2010 1:. Write a # pro$ram to ispla& arra& elements an their aress usin$ pointers. 12/200@ 1:.=xplain the stru!tures an unions in # (ith an example. 05- 2009 1H. ,is!uss the follo(in$J 12/2013 (a) mallo! () (') !allo! () (!) free () 1H. Wh& prepro!essor ire!tives are re4uire? ,is!uss in etail a'out various prepro!essor ire!tives. 0%/2013 1H.(a) ,efine union . Give the !omparison of stru!ture an Znion. (') Write a pro$ram to rea an (rite emplo&ee an their ate of ]oinin$ usin$ neste stru!ture. 12/2012 1H Zsin$ pointers in #M sort an ispla& the $iven .n/ names in alpha'eti!al orer. 1H. Write a # pro$ram to !ount the len$th of a strin$ usin$ pointers an explain. 01/2012 1H. ,efine a stru!ture !alle student (oul !ontain nameM re$no an mar2s of % su']e!ts an per!enta$e. Write a pro$ram to rea the etails of nameM re$no an mar2s of % su']e!ts for 2% stuentsM !al!ulate the per!enta$e an ispla& the nameM re$noM mar2s of % su']e!ts an per!enta$e of ea!h stuent. 1H. Write a # pro$ram to a the o elements present in an arra& '& !reatin$ an arra& usin$ mallo!( ). 12/2011 1H. Write a pro$ram to &nami!all& !reate an arra& of .+/ elements an fin the sum an avera$e of .+/ elements. 1H. Write a pro$ram to sort n num'ers usin$ a fun!tion that a!!epts a pointer to a!!ess the arra& elements01/2011 1H. =xplain the ifferent t&pes of memor& allo!ation fun!tions (ith examples12/2010 1H. Write a stru!ture (ith follo(in$ mem'ersJ stuent nameM stuent roll noM three su']e!ts mar2sM totalM per!enta$e. Iin the sum an per!enta$e of mar2s for 10 stuents. 1H. Write a pro$ram to sort a set of names in as!enin$ orer usin$ pointers0%/2010 1H. ,is!uss an !ompare arra& of stru!tures an neste stru!tures12/200@ 1H.=xplain the pointers as fun!tions ar$uments in #. 05-2009 UNIT V FILE MANAGEMENT AND GRAPHICS 10 hrs. File management: Defining! opening & closing a file! tet file and "inar$ file- Functions for file handling: fopen!fclose! gets! puts!fprint! fscanf! getw! putw! fputs! fgets! fread! fwrite-0andom access to files: fsee#! ftell! rewind- File name as Command -ine Argument% 6raphics in )C-Initiali&e 6raphics 5ode-Functions used In 6raphics - Drawing a )oint on the Screen-Drawing lines! rectangles! ovals! circles! arcs! pol$gon! filling colors-.sing *et in 6raphics Displa$% @. What is a manipulator? 12/2013 10. What is an 8/9 stream? 12/2013 @. >o( to initialize the s&stem in $raphi!s moe? 0%/2013 10. What is a !omman line ar$ument? 0%/2013 @. What is the ifferen!e 'et(een printf() an fprintf() ? 12/2012 10. Give the rules for efinin$ prepro!essor. 12/2012 @. Write a statement in # for openin$ the file test.txt in (rite moe? 10. What is the purpose of usin$ !omman line ar$uments @. Give the meanin$ of an& four file 8 / 9 fun!tions. 01/2012 10. Write o(n the $eneral s&ntax of setlinest&le( ). 01/2012 @. What is the primar& avanta$e of usin$ a ata file? 10. "tate the use of fsee2() fun!tion in #. @. What is the use of t&peef statement? 12/2011 10. Give the s&ntax of stru!ture. 12/2011 @. Write the $eneral s&ntax an use of fsee2 fun!tion. 10. What is a file? Write the s&ntax for openin$ a file in rea moe in #. @. What is meant '& evi!e inepenent ra(in$? 01/2011 10. >o( is =9I ete!te? 01/2011 @. What is meant '& prepro!essor ire!tives? 12/2010 10. Give the importan!e of $raphi!s pa!2a$es. 12/2010 @. What is a file? 10. Kention the use of fprintf an fs!anf. @. What is the si$nifi!an!e of =9I? 0%/2010 10. What are !omman line ar$uments? 0%/2010 @.,ifferentiate se4uential file an ranom a!!ess file. 12/200@ 10. *ssume &ou are openin$ a file in .a6/ moe. What (ill happen? (a) if file existsM an (') When file oes not exist12/200@ @.Write o(n the four file li'rar& fun!tions. 05-2009 10.Write o(n the si$nifi!an!e of =9I 05-2009 0*E? F - 1@. =xplain a'out fs !an t an frea file hanlin$ fun!tions in etail. 12/2013 1@. =xplain the fun!tions for file hanlin$ (ith one !ommon example. 0%/2013 1@Writeapro$ram tostore three re!ors in one stru!ture. 12/2012 1@. Write a .#/ pro$ram to !op& the !ontent of a $iven text file to another file 1@. =xplain the follo(in$ fun!tionsJ 01/2012 (a) fopen( ) (') f!lose( ) (!) fprintf( ) () fs!anf( 1@. (a) =xplain the ifferent moes in (hi!h a file !an 'e opene. (') -riefl& explain the various 8/9 operations on files (ith suita'le examples 1@. Write a pro$ram to animate the 'all usin$ Graphi!s in #12/2011 1@. Write a file pro$ram to rea a ata file .+ZK.,*?/ !onsistin$ of positive num'ers an !op& an o num'ers into .9,,.,*?/ an even num'ers into file .=[=+.,*?/. 1@. Write a pro$ram to rea a list of (orsM sort the (ors in alpha'eti!al orer an ispla& them one (or per line. *lso !al!ulate the num'er of (ors in the list. 9utput format shoul 'eJ (a) ?otal num'er of (ors in the list is ^^^^^^^^^ (') *lpha'eti!al listin$ of (ors. ^^^^^^^ ^^^^^^^01/2011 1@. ,is!uss the file hanlin$ fun!tions of # in etail (ith suita'le example. 12/2010 1@. =xplain the steps that are follo(e (hile a!!essin$ a file. 1@. )ist all the fun!tions that are asso!iate (ith files. 0%/2010 1@. Write a # pro$ram to (rite ata to a text file an to rea it. 12/200@ 1@.Write a # pro$ram to !op& the !ontents of one file to another. 05-2009 20. Write a # pro$ram to !reate a file (ith a num'er of inte$ers. 12/2013 .20. Write a # pro$ram to ispla& the 8nian fla$ (ith appropriate !olors an title. 0%/2013 20. Write a pro$ram to !reate stuent ata'ase usin$ 8nexe se4uential file12/2012 20. Write a .#/ pro$ram to !on!atenate the $iven strin$s in the !omman line. 20(a) ,is!uss a'out some 'asi! $raphi!s fun!tions in #(H) 01/2012 (') Write a # pro$ram to ra( a re!tan$le an !ir!le.(<) 01/2012 20. Write a # pro$ram to !op& the !ontents of a file to another. Eea the sour!e file name an tar$et file name usin$ !omman line ar$uments 20. Write a # pro$ram to rea the !ontents of one file an !han$e the !hara!ters into num'ers an num'ers into !hara!ters an ispla&. 12/2011 20. What are !omman line ar$uments? Write a !omman line pro$ram to !op& the !ontents of file 1 an file 2 to file 3. I!op& Dfile 1B Dfile2B Dfile3B 20. Write a pro$ram to !reate !hess'oar li2e 'oxes (HL H) in the !lient area. 8f the (ino( is resize the 'oxes shoul also $et resize so that all the 1< 'oxes are visi'le at all times. 01/2011 20. ,is!uss the # fun!tions use in $raphi!s in etail (ith suita'le example12/2010 20. =xplain ho( ranom a!!ess is one in a file. 20.Write a pro$ram to appen a file an (rite it to a ne( file0%/2010 20. =xplain ho( to !reate an a!!ess se4uential an ranom file in #. 12/200@ 20.=xplain the !omman line ar$uments (ith an example05- 2009