0% found this document useful (0 votes)
11 views

Feb 2023

Uploaded by

neelambika ns
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
11 views

Feb 2023

Uploaded by

neelambika ns
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
Save trees use e-Question Paper Go green DOWNLOAD THIS FREE AT www.viuresource.com CBS SoneNE ow | j Sixth Semester B.E. Degree Examination, Jan./Feb. 2023 Python Application Programming Time: 3 hes. Max. fibeks: 1 Note: Answer any FIVE full questions, choosing ONE full question from each m’ Module 1a, Identify theee types of errors encountere blocks of Python program. yihon and also expl pF b. Predict the output and justify your answer (i) -13%9 (i) 6.6 i 20304" (iv) not “False” (99 S#1483 (0 starts) © Develop python programs to, () Find largest of three numbers hor the given {year 1s leap year or not with functions. (08 Marks) oR 2 a. Make use of necessary examples and flow chart ‘execution, chained conditional and nested conditions concept of alternate (08 Marks) sum and difference of two (os Mi hing ~ (2) Short cine evaluation (07 Marts 1g and average of elemems using oops (06 Marks) © Mention the advantages of brg © statement, Write @ program to compute the sum of only odd numbers sifu! nurnber using continue statemen or 4 Make use of necessary Jn fileopen, filcclose, fleread and filowrite concepts in python, b. Develop i pythoy ofthe file, (i) (08 Marks) to aecept a file name from the user : (i) Display the frst N lines sncy of occurrence of the word accepted by the user (08 Marks) © Use find and string 9 act the portion of the string after the colon charactor an then uge the to convert the extracted string into a floating point number Assur : su=X 2:99.94 (04 Marts) eel Le Sa, Dgscriboyy two list operations and list methods. Develop a python progeaim 1 acvept 2 af user, find sum of all even numbers and product of all odd numbers in enicred : hist (08 Saris Identify pop and remove methods on lists, How to delete more than one element (Fama list coi fF the difterence between list and tuples and also demonstrate (2) How a dictionary ean be represented as a list of tuples, (i) How tubles can be used as keys in ronaries. {06 Maris tof? 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 IxECHs6 on 6 & Develop a program to check the validity of a password read by the users. The follo criteria should be used to eheck the validity. Password should have at least, © One lower case letter. © Onedigit © One upper ease lever. © Ono special character from (S# 4 Sixeharsetens (08 Marks) Build a python program that accepts a sentence and builds « dicta DIGITS, UPPERCASE, LOWERCASE as key values and their ¢ values and their count inthe sentence as values, VTU(@123.c-L earn TERS" :12, “DIGITS” :3, “UPPERCASE” : 4, “LO SEREAS (06 Maria) © Develop a python program to count accuirence Reequeney of offs in ale using dictionary 7 a Create a student class and initialize it with name and (i) SetAge to assign age to student (ii), SetMarks ~ to assign marks to student Gi) Display to display all information b. Differentiate between pure function and: modi “duration of an event i'start and end time ty Demonstrate the concept of operator over Mp 2 code 1 Tiger. Develop metiod to, ain to find (08 Marks) ippet (os Maras) Ba, Make use of necessary exampley ‘inheritance, b. Develop a python program 10 RECTANGLE with member Find center. area and periny Explain __init__method Itilevel and nivarchial (8 Marks) fionces as return values 10 dofine a class per_¥ and member fanetions : 10 (OR Marks) (o1 Marks) fe, multiple, » 9 a Explain any two functions. Explain support for parsing HTML using regular expression with rogram, {8 Marks) » Opin the significance of XML over the web development {08 Sark) e .vaScript object Notation (JSON) and XML. (0 Marks) oR wa database table using database eursor architecture, (08 Marks) 6 dering program that will go through Twitter agcounts and build & {08 Marks) © -e oriented architecture? List the advantages ofthe same. (8 Marks) 2of2 BRANCHES | ALL SEMESTERS | NOTES | QUESTON PAPERS | LAB MANUALS A Vturesource Go Green initiative

You might also like