You are on page 1of 12
Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com SCHENE sn | LL 18CPS13/23 First/Second Semester B.E, Degree Examination, Aug/Sept.2020 - Programming for Problem Solving Time: 3 brs Max. Marks: | Note: Answer any FIVE full question, choosing ONE full question from te. @ i Modute-1 £1 a Detine Computer. Explain the generations of computer Mart) § "BL Listthe input devices of computer and explain any tw9 input evi Matas) Ze Define Algorithm. Write an algorithm to find the area and perimet@hot a rete g (06 Marks) ua E oR 25 2 a. Explsin the base stuctare of C program, witha exany oantas) 2%" b Whatis an Operator? List and explain any 4 types of opera (wana 22 ¢ Evahute the fallowing expressions ae 1) 100% 20<= 20-5 + 100% 10 20==5> ae ji) atebtece=5, wherea=3,b= Sar inary a f 2 3° a. Explain formatted input output function; les. (06 Marks) What are efferent pes of condi Explain if if else and nested if with : Syntax and examples Ce Mars) = c. Write a C program to find the sum of Fal nyffbers from | to N using while loop. : (6 Marks) i IR E 4 a List the differences bet ‘andgB — while loop along with syntax and example. < (06 Marks) i b. Write a C program tS all possible roots of quadratic equation and print them with ee appropiate mess (orstens) $ g c. Explain break and cor sti with example. (06 Marks) "i Module-3 Hos. ia fr declaring two dimensional aay and inkiaiae te same 2 (ow tak) . Fd biggest fn nambers using aay, bestrkg Hoe aces between Lines and binary sarch (oe Mans ee i OR =" 6 ‘plain any 4 string manipulation library functions with examples, (08 Marks) 3 ted progam to find transpose of even te (oer ' fam ego for near search (oe Mars) L Module-4 ~ Yefine Function. What are the advantages of user defined functions? (06 Marks) Explain yes ofirtions based on parameters (os sank ¢: Detne Ravan. Writes € progam nd factor ofa nomber using recursion 6 Mars) Tot? BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper DOWNLOAD THIS FREE AT www.viuresource.com 18CPS1323, oR 8 a. Define the following ‘Actual parameter fi) Formal parameter ii). Global variable iv) Local variable oad 0 Write « C function isprime (num) that accepts an integer argument and returns 1 if the argument is prime, 0 atherwise. Write a C program that invokes this funy prime numbers between given range. ‘Write a C program to generate Fibonacei series using recursive function. Modate-5, ‘What isa Structure? Explain structure with syntax and example (08 Marks) Differentiate between Structures and Unions. (04 Marks) ‘Write a C program to maintain record of m students using aggfetue’ fields (Rollno, marks, nome and grade). Print the names of students with = 70. (08 Marks) oR ‘What isa Pointer? Explain how pointer variable is lized. 6 Marks) What is Preprocessor directive? Explain #define and. cessor directive (oMars) Explain eal by value and call by reference w (os Maris) @. S * « 20f2 Go green BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com SCHEME usN I8CPS! First/Second Semester B.E. Degree Examination, Feb./Mar. € Programming for Problem Solving Time: 3 hs Max. Mameetoo i Note: Answer any FIVE full questions, choosing ONE full question ode E Module-1 Fa. Write an algorithm and draw flow chart, which reads 3 sides ofgn ints whether a itis equilatcral, isosceles and sealene. Cos tarts) i fh. Write basis stricture of C progeam and explain its differenugelipns. AID, give an example (9 Markey 2 © Weatty the following variable names. State whether vajpble is SHAE or invalid IF invalid z five reasons i) INT fi)for if) Larea iv) STAT] (oa Marks) : oR 2 a. List and mention function of any five flow chart Mbol wsinas . b. Define C-token. List and explain different C- cto Marks) ; ©. Write aC program to swap contents of {contents of variable belore swap i mil abet oe anans a q [3a Distinguish between the following : i) sean) and gets() 3 seanfi and print) putchar( ) and print (06 Maris) i b print first “N° Fibonacei numbers using, looping 3 (O# Marks) 5 ° ment and explain its working (06 ark) 4 & oR string “PROGRAM in following pattem using formatted xS PRO 3 PROG rE PROGRA 2 PROGRA ng dette no Nie. On cmpleng yor mata cpa sagan rico eating Bk pa cf (os Marks) 1b. Vstingyjgh between the Following: walle loop and do..while loop yreak and continue. 06 Marks) ‘he syntax of else.if ladder and explain its working (06 Marks) 1ot2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com 18CPSI3: Modute-3, $a. Define an array. Write the syntax of declaration and initialization of - one-dimensional and two-dimensional aay with example for each > b, Write a C program to searoh a key element in the given sorted array of intedér numiagys using binary search technique. (06 Mark) 8. Write « C program to copy one string fo another without using strepy¢ ). > on 6 4 Write program to read a square matric A (a xn) ad find het 2 (# Mansy 1. List advantages and disadvantages of array (6 Marks) © Write the syntax and give one example for builtin string Functjg Mats i) stmempc) id)stmopy()it)streve) iv) stmeatt) vy stro vipstrlenC) (06 Marks) Module-4 7 List and explain two techniques for passing parimgier Wp one function 19 another by taking an example of C program. (ao Mtarks) Differentiate between recursion and iteration (06 Mtarks) © Write aC program to find laotorial of «given mufidge using Bursion C4 Mtarks) 4, Write aC program to compute ne, for the ‘of and r using recursion, 10 Marks) b. Distinguish between built-in functions an i functions. (o4 Marks) fc. List any six benefits of functions. (06 Marks) 9 4. Write anote on the following by OB. i) Amay of'structure ii) Structure wi (68 Marta) b. Define pointer, Ment ences between pointer variable and a normal ariable (04 Marks) ‘©. What is pre-processor life tives? Mention significance of following C-pre-processors a) Hitler i) pega’ undef v)#define vi) error (O¥ Marks) oR judenfpiving members name and USN. Write aC program which reads iden int the same. (lo Marks) b ng. macros, write aC program to find area of cite. (06 Marks) e the syntax and give an example of declaring and assigning a value to (4 Marks) 20f2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com USN eS SemEMe OQ 4 sacra First/Second Semester B.E. Degree Examination, June/July 201 ¢ Programming for Problem Solving Time: 3 hes. i. Marks: 101 Nowe: Answer any FIVE fll questions choosing ONE fil question frm te. @ g Modute-t 1a. Witha cat blok diagramof computer, explants components sacks) 1, Classify the following inte input and output devices: Monitors, visual display unit, Trackballs. Bar code reader, Df (0s Macks) (0s Macks) “Microfiche, OMR, Flectronie Whiteboard, Plates «¢.Define the terms; Network, LAN, WAN, MAN and netwugope oR 2a, Write the basic saucture oC program, Explain each Sy brig ith suitable example. Film rocorder. b. Define operator. Explain any 6 operators with sufi exany (07 Marks) © State whether the following are valid ientifggs or oat, fan, 123_AbC 3 a. Define and write the classification 9 fr satemenis in C. Write a program a rata ©. ene tactng fp glenn wah ion siaievuanpl: enn 2 pie ae ‘a (os ark) oR a St back of Inder ios, Explain how go you resolve with suitable expe (8 Marks) We 1 € program to get the triangle of mumbers as esl 1 12 123 1234 6 Maris) Write a € program wo chosk whether given number is prime a no. (We Marks) BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Viuresource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com 18CPS13/23 rte ZO Ge i pia WAN ear ila nn TD \Writea€ program o serch anclenen sing nat and bio chaque, €) on 6 8. Define a string. Explain any 4 string library funetions with syntax and example. ¢ bb Writea C program to copy a string (combination of digits and alphabet (ons alphabet pas 7 a bel Marks) Le ie Marks) oR 8 a. Define « recursion, Write a C recursive function funevion eal is passed with wo integers mann by Ditlereniate() User defined snd bt-in unetign (i) RA 9 inegers whore a {ue Marks ahd iteration ("Marks MIR represent the memory for BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Viuresource Go Green initiative Save trees use e-Question Paper DOWNLOAD THIS FREE AT www.viuresource.com CBCSSCHENE usy | | ITI Go green 18CPS13/231 First/Second Semester B.E. Degree Examination, Dec.2019/Jan.21 C Programming for Problem Solving Time: 3 hes, Max. Marks: 1 (Note: Answer any FIVE full questions, choosing ONE full question from le. ¢ ‘Modute-t, B 1 & How would you explain the components of a computer with the block di isaris) 5 1b Describe the types of computers. ark) 2 . Conseethe following mathematical expression into C equivalenfftatemeny 2 (a E a maxis arena o6 A ip x ii) Area ar = 2h (06 Marts) or 2 How eanyou write the basi structure ofa examples. (08 Marts) 'b. Define a token. Explain the differen okey (08 Marks) «Hove would you explain logical operator {04 Mars) 3. a, With examples how would desexf th ted inpot and formated output statements tn € language. (08 Marks) b. How would you explain if ggg ten language? Give the relevant example. "6 Marks) © Write a program in Cro de based on the marks 2 follows Marks Grades 01039 F 404 EF 500 59 tow W077. B 80 594% a 5 Ws farks) oR How gud you explain switch statement with an example? (om Marks AIRhile loop differs from doswhile loop? (06 Marks) aun check whether a given integer is palindrome or not? (Wo Marks Modute-3, De an array. How would you explain declaration and iitilization erray? rite a program in C to implement binary searching technique tof? ‘ow would you explain with examples, the string manipulation functions? ‘of one dimensional (6 Marks) (06 Marks) (08 Maris) BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Viuresource Go Green initiative Save trees use e-Question Paper DOWNLOAD THIS FREE AT Go green www.viuresource.com von) oR \Wntea program to read N integers and to arrange them in ascending onder using © technique (We Mars 1, How would you explain the dsclration and iniilization of string variables (06 Mag) Waite program to multiply 2 matrices, by suring theie mulkipiation z stars) Modute-4 18 How would you illustrate the elements of ser defined finetions UO Marks) 1 Waite a program in to tnd the factorial ofa given integer us (05 Marks) Explain how ell by velue difers fom call by reference wi ion (@5 marks) oR How would you explain the categories oF user defined fags?” 10 Macks) be Wotea program in C to compute the Fibon using recursion, (6 Marks) List the storage cls specifiers. Explain any goa (04 Marks) Mod a. Define structure. How would you 7 structure variables? Give examples. (07 Macks) Define a Pointer. How the pote itialized? (6 marks Write aC program to read detail to prin the mars ofthe student i his ‘ame is given as input (07 Macks) OR 8 Write a program in C10 iihiyfrunihs using pointers. (05 Marks) 1b How would you explgi inSMlezonidpar prsprocessr ditectives in C? (Wo Marks) ‘6. How would you expe nes , (05 stacks) x 2of?2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Viuresource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com usw [ | < ) Lt irst Semester B.E. Degree Examination, Dee.2018/Jan.2019 ¢ Programming for Problem Solving ‘Time: 3 hes. yy > Note: Answer any FIVE full questions, choosing ONE all question from each module, oR Define datatype: Eyplain primis datatypes Su Lista he operations used in Cla sion iy xea-b Lowber ii) 10-10) S488, 4tarss © Deseribe the various type computer (We Marts) yplain dhe formated £0 § and example, Waite a C program to amp rygec a: (om Mar) naa Fin ates and explain their working. (0 Marke) oR ol el ring i stn nang ie pa a i sg ia) rite a € program der imeper data] Hy Babblesert 1 1 ich 10 Marks BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Viuresource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com 2O What i netion? plain the rent ype oF tanetions based on parameter. — 10(lgrtsy b. Wate a pao A number using lanetions. 1 0 find ICD and LCM of two numbers using coneept of fanctions, wo ihn copean 2) External variable 48) State variable (10 Macks) aa mle (0 Mars) 1h Watenoteon: i) Arrays withn stctures i aera (4 Mark) © Implement stractres 0 fead, write and compute avera the studoms scoring boys and below aserage maths for eh (22 Marts) 10 8 What sa pointer? Show ho a iniilied Us Mark) es Marks) ‘Sanarray using pointer, (10 Marka) BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS. A Viuresource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com SCHEME ey 18CPS First/Second Semester B.E. Degree Examination, July/August, © Programming for Problem Solving Time: 3 bs. Max. Martfo0 Nae Aras FI fl queso: showing ONE fl quinn de i Module Fo 1. Write base structure of * progran and explain ils different gis. esata E * & Deveribe the various types of computers (oestat J © Denes ephedra has mati poor (oe stan 2 oR 2a, Define w vaieble. Eeplaih the led for Gocatig Innguaget Give ¢ cccample for valid and invalid variable, ‘Go Mtaday $b, Sharia data type? Explain all the basis data TC language with exampln 2 ‘ossans) Sg List adhe operators used in C language and en é @ — xea-¥{-0#2-1 when a9 7 : Gi) Wi= 101s <48e8 (essay Za Whatare formatted and unformat ins? Explain them with syntax. (08 Marka) ®. Write aC" program to find area an ofseirle (oe Mtaa) j ©. What is looping? Explain for widhtatas and example (06 Marks) 3 on Ba a. Whatis branching? Liga the branching statements with syaias. _ oatart {|B Wee nC program oA Qapuie MM of « qonlenis equations ornen-rero coetfichnts ofa, i trey (oe Mtats) ce. Bring out diterenc Mgr Msi () oop and do... while (oop. (essay i 3 Module-3 Eos a wha 1ow ID snd 2D arrays are declared andintalized? (Mart a) Ma civen erty of integers in atconding order using Bubble sort techni (os Mtaa) Fc Explain cctanfn and intticaton of string variables (Gusta £ on M6 QQefine string: Lista ie string manipalition fonctions, Explain any 4 wih examples. roar 2 Programs for, Linear sour Bineey search Consider Integer dat a inp) omens 1 ot2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com I8CPSI3; Module 7 a. What are user defined finotions? List and explain all the categories of user defined fun ‘based on retum typo and parameters a +b. Write a program to find factorial of a number using function. (COS Nady) ©. Write & program to find GCD and LCM of two integer numbers using functions. Qos Max) oR a, Esplain Pass by value and pass by reference with syntas and examples, h 1b, What is recursion? What aro the elements for reeursion? Explain 8. Write a C recursive program to compute the Fibonacoi series uplo m (OS Marks) Modute-5 Define a structure, Explain the syntax of sintolure declaration fC with @xample, (06 Marks) 1b. List and explain types of structures with their syntax. (06 Marks) ©. Write a C program to implement structures to road, average marks and selec rondeh sere ahinion opscgreud te actrtcaie, ety 104, What ina Pointer? Show how pointer vail 1 inittized? List acvantages and dinadvantages of pointers ‘cena tb. Whats preprocetsor Gioative? Explain rdistives nC. (oe) ©) White #€ progam to wap contents of Cn Poin technique. (ee Mark) © < S Ay « 20f2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative

You might also like