Aug 2022

You might also like

Download as pdf
Download as pdf
You are on page 1of 2
Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com SCHEME Sixth Semester B.E. Degree Examination, July/August 2022 Python Application Programming 18ECC ‘Time: 3 hes. Max ftarks: Note: Answer any FIVE full questions, choosing ONE full question from each 1a. Explain Conditional Execution , Alternative execution , Chain at Bnd Nested conditionals with examples, (8 Marks) Explain the rules of procedence used by Python to evaluate an g , (04 Marks) ©. Write a Python Program to prompt the user for hours and 1 pay computation with time and a half for overtime. To give the employee hourly rate for hours cal ati Worked above 40 hours (canta) ag on FE 2 2. List tne femurs of Python Programming Language EMVE, (essere Fe 7 8. What are User defined functions? How can we parSWggi in user defined ftnctions? ee Explain with suitable example. (06 Marks) 45 cc. Write a program to prompt for a score between if the score is out of rangs print sf fan error manage and exit. If the score ‘and 1.0 print a grade using the ie fotowing table (oonarky Al Ta P==0s]=06 it ae eT i d BY 3 * wansytny explain te FgQReping constructs in Python. What i the need if for break and continue stat rath examples {08 Marks) ze b. What are String Slices? E: jicing Operator in Python with examples. (05 Marks) £8 Whiton Python promrargg ght ae name rom tho wer | t > Display the sung d Fa ths fil. : it) Find the frequencg.gccurehes of the lines which started with a word From rf or stariy HI or Bw a xy Fe Mout in sting manipulation functions supported by Python with fe sian) ¢ £ b, ile close , file read and file write concepts in Python with examples. : 108 Sark) ie fe program to find the largest value from the given st of accepted values. 0 (06 Marks) i ncaa 5 a Agsargymtable, Justify the statement wir examples, Discuss the ist handing funtion in i pond¥ih cxanpes (Osxtars) i tine between List aid Ditioatey (osstart) ‘a Python program to search lines that start with the word from’ and a character Howed by a two digit number between 00 and 99 followed : Print the number ifit greater han zero, Assume any input file (08 Marks) 1of2 . 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 18EC or 6 4, Compare and contrast tuples with tests, Explain the following operation in tuples w examples : i) Sumoftwo tuples ii) Slicing operations ))_ Compression of two tuples iv) Assignment to variables (e >. Write a Python program that accept a sentence and build dictionary wilGh LETTERS DIGITS , UPPERCASE , LOWERCASE as key values and their count in sent gg as lues. jacks) © Explain the need of Regular expression in Python language, with an example, (04 Marks) ¢ Module. 7a Explain Classes and Attributes in Python language with examples. (06 Marks) ‘What is the difference between Method and Function? Explas of init method swith suitable code (06 Marks) c. Write a function named move — rectangle that takes a Regtafigle and jo numbers named dx and dy. It should change the location of the rectangle Wa the x co-ordinate of comer and adding dy to the y co-ordinate of comer. (08 Marks) oR 8 a, Show using a Python code how ste_mothod iginvoked@hen you print an object. Explain its working, (06 Marks) Ilustrate the concept of Pure funetion and My c. What is Operator Overloading? Write Pyy by providing the methods add umples. (06 Marks) fo overload “+ , "and “” operator imal (08 Marks) 9m Define Seatue Eaptan how oferta. cen be eblehed to the internet wing Python code over the TCP/IP comgg@fion Bd the http protocol to get the web document (08 Marks) b. Compare and Contrast the fect Notation (JSON) and XML. Explain parsing of XML with example, (06 Marks) ©. Define “ute and Close command of databases with a snippet code. (06 Marks) OR 10. a, What is Embedded in the importance of SQLite data base (04 Marks b. Write Geo coding Web service. Using Python supported libraries demons 1 code. (08 Marks) ce. Write a read the file from web using urllib and retrieve the data of the fi Also ed juency of each word in the file (08 Marks) 20f2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative

You might also like