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

VTU Question Paper of 15CS664 Python Application Programming Jan-Feb-2023

VTU QP

Uploaded by

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

VTU Question Paper of 15CS664 Python Application Programming Jan-Feb-2023

VTU QP

Uploaded by

Zafar Muzawar
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
pases. Important Note: 1. On comple Ibe treated as feaion, appeal evaluator and for equ Ces Somalis 15CS664 Max. Marks: 80 swer any FIVE full questions, choosing ONE full question from-each module. Module-1 Explain various building blocks of a program, 7 (05 Marks) Explain values and types in python. (05 Marks) Write a program to prompt.the user for hours and Rate-pér hour to compute gross pay (gross pay = hours * rate). (06 Marks) oR Explain the followiig with syntax, flowchart and example i) Chained conditions ii) Nested conditions (04 Marks) Explain the following with example i) Type conversion functions ii) «Math functions iii) Random functions (09 Marks) Write a note on catching an exception in python. (03 Marks) ™ Module-2 Explain the use of break and continue in while loop with example. (04 Marks) With a python seript to find the largest-value in a list or sequence using for loop. (06 Marks) Explain string indexing and traversing-through string with a Toop. (06 Marks) OR Discus various string methods with example. (06 Marks) Write a python seript to'count number of lines in a file entered by users. (05 Marks) Write a python script to print all the lines which starts with word “python” froma file. (05 Marks) ; © Modutle-3 Discuss various list methods (06 Marks) Explain the following operators i)in ii) notin iii) is iv) is not (04 Marks) Write a python script to print frequency of each word in a given file (06 Marks) $ OR Write a python séript to print 10 most common words from given text file (08 Marks) Explain search and find all methods from re module. (08 Marks) lof2 10 oe 15CS664 Module-4 5 Explain classes in python with example. (04 Marks) Write a Rectangle class and show objects are mutable with example (04 Marks) Write a definition for a class named circle with attributes ‘center’ and “values’ where center is a point object and radius is a numbersInstantiate a circle object that represents a circle with its center at (150, 100) and radius 75.°Write a function named “area_ of_circle” that calculate and returns area of a givencitele: (08 Marks) OR Explain ‘pure functions’ with example. (05 Marks) Explain the importance of “ int_’ method in python,with example. (05 Marks) Discuss Type — Based dispatch with example. (06 Marks) Module-5 ‘What is a Socket? Explain different methods of socket (08 Marks) Explain file retrieving using “urllib” with €xample and print the frequency of words. (08 Marks) OR What is XML? Explain XML parsing with example (08 Marks) Explain Cursor and its methods with example in Database (08 Marks) seen CMRIT LIBRARY 20f2 BANGALORE - 560 037

You might also like