You are on page 1of 4
http:/www-akubihar.com Code : 100204 . B.Tech 2nd Semester Exam., 2019 PROGRAMMING FOR PROBLEM SOLVING ( New Course } Time : 3 hours Full Marks : 70 Instructions The marks are indicated in the right-hand margin. (i) There are NINE questions in this paper. (ti) Attempt FIVE questions in all. (iv) Question No. 1 is compulsory. 1. Choose the correct alternative (any seven) Dn7H14 (a) What wil be the data type of result of the following operation? (Moat * fingo/fongle * (doubleld © int i) tong. (i) oat fy poubte AK9/693, (Tym Over upto akibihar.com |http:4www-akubihar.com imyernnnyccny (2) (0) What does the following declaration int (per) [108 ( per is array of pointers to 10 integers (i) ptr is @ pointer to an array of 10 integers (ii) per is an array of 10 integers (iv) ptr is a pointer to array fo) Which of the following is a correct format for declaration of function? z Se) returntype function-name = {argument pe); E (@ return-type fanction-name EB {argument type) {} 3 (ii) return-type (argument ype) = function-name: (fv) All of the above (d) The value obtained in the function is given back to main by using keyword A) return (i) static (ii) new (iv) volatile AK9/693 harps GRRE com, http:/www-akubihar.com (3) fe) Which data type is most suitable for storing @ number 65000 in a 32-bit system? (@) signed short (i) unsigned short Ati) Float ste = 962; (iv) None of the above Ait) long we . @ String str; 5 (i) char vat; E (a) Which of the ‘following is an invalid sfelse statement? Ay ie ie NL wtf) if (func 1 (al) (ay a) 1) (fu) if (ohare) a) ty AK9/693 (Tum Over } Ihutp://www akubihar.com tp: ‘www akubihar.com, (4) fry A local variable declaration with no storage class specified is by default fo auto (i extern (i static i reser () Automatic variables are inialed 10 @ zero 6 junk vue (Wy None of the above (iv) Both (and (i) W) The getchar() function is defined in ‘header fle oo seyrgnoye sass 4 conio.h (i) stdion (ii) iostream.h Av) None of the above FP» (a) What do you understand by the term ‘problem solving? How can programming be used to do problem solving? 4 aK /693 antinued | hip {Sew sebihar.com bhttp:/www-akubihar.com (5) b) Discuss about the components of computer system, How are they involved http:/www-akubihar.com 0) (6) What is branching? What are the possible types of branching and the C statements used for such type of in computer programming activity? 6 P branching? Give a detailed explanation fo) Write the algorithm for exchanging the with example. 8 values of two variables 4 6. (g) Write a C program to calculate (12/8. The operation is factorial of 12, divided 3. (a) Dilferentiate between lowchart, by 8. Also comment by examine whether pseudocode and source code 5 the algorithm used is efficient 9 (b) What are the outcomes of compilation of 2 (] What is type casting? Explain its g a program? Discuse in detail 6 = classification through examples SE {o) What are constants? List the types of 2 7 ee eT ety 2 : other variants of geten() and ‘gets 5 constants as defined in C language. 3 & 5 5 nctions s E ip: (/www akubibar.com z fu z 5 How can an array of numbers be passed z 4, fa) What are the libraries? How are they 5 ° Write an g © iterent from header files? 4 8 to function as parameter? Ws 3g example C program in support. 6 (0) What isan array? Write a C program to {© What is dynamic memory allocation find the average of 10 mumbers of an inc? 3 array, 6 8. (a) Differentiate between the following! 7 (e) What do you understand by the {i Structures and Union operator precedence? Explain 4 fi) Formatted and Unformatted. data fies 5. (a) Define storage classes of C with some (b) What is a fie? List dilferent operations appropriate examples ‘ performed on fe. How are they Schieved? Explain, 7 AK9/693 ( Continued ) AK9 693 ” nb ee dbibar-com Itp://wowakubibar.com bhttp:/www-akubihar.com (7) 9 (a) Write a program (occas an aay of structures named “STUDENT” with feds, Name, Cll no, Address and Mari, Howto show any student reord Using this structure? (8) Which of he sorting algorithm s beter han other and hy? Baan ‘ BL wnte © progam for mage sor 27 algo ‘ oo seyrgnge sane Ineps/wow.aknbinar.com ‘Whatsapp @ 9300930012 Your old paper & get 10 sya ash ar ote 10 ea a astm or Goose Pay Code : 100208 ‘AK9—-20/693 " Ihitp:/twww.akubihar.com

You might also like