18CS55
Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)
  USN
                              Fifth Semester B.E. Degree Examination
                              Application Development Using Python
TIME: 03 Hours                                                                                        Max. Marks: 100
   Note:         01. Answer any FIVE full questions, choosing at least ONE question from each MODULE.
                                                  Module – 1
        (a) List the salient features of python programming language.                                                   6
                  What are the different flow control statements supports in python .Explain any 3 with
           (b)                                                                                                          8
 Q.1              an suitable example program and flow chart.
                   Write a python program to calculate the area of circle, rectangular and triangle. print
           (c)                                                                                                          6
                   the results.
                                                       OR
                   What is a function? How to define a function in python? Write a program using
        (a)                                                                                                             6
                   function to find out the given string is palindrome or not.
                   What is local and global scope of variable in python .Explain the different scenarios
           (b)                                                                                                          8
                   with an example snippet.
 Q.2
                 Write a python program to create a function called collatz() which reads as parameter
                 named number. If the number is even it should print and return number//2 and if the
           (c)                                                                                                          6
                 number is odd then it should print and return 3*number+1. The function should keep
                 calling on that number until the function returns a value 1 .
                                                  Module – 2
        (a)        What is list? Explain the concept of slicing and indexing with proper examples.                  6
        (b)       For a given list num=[45,22,14,65,97,72], write a python program to replace all the               6
                  integers divisible by 3 with “ppp” and all integers divisible by 5 with “qqq” and
 Q.3              replace all the integers divisible by both 3 and 5 with “pppqqq” and display the output.
                  What are the different methods supports in python List. Illustrate all the methods with an        8
        (c)       example.
                                                      OR
        (a)       What is dictionary? Illustrate with an example python program the usage of nested             6
                  dictionary.
        (b)       List out all the useful string methods which supports in python. Explain with an              10
 Q.4              example for each method.
                  What are the different steps in project Adding Bullets to Wiki Markup.                        4
        (c)
                                               Module – 3
 Q.5    (a)       What are regular expression? What are the different steps to be follow to use a regular       5
                  expression in python.
                                                                                                         18CS55
             List out what are the different character classes and its representation also relular       9
       (b)
             expression symbol and its meaning.
       (c)   Write a python program to create phone number and email address by using regular            6
             expression.
                                                OR
       (a)   What are the key properties of a file? Explain in detail file reading/writing process wit   7
             an example of python program.
Q.6    (b)   Explain in briefly, What are the different methods of file operations supports in python    7
             shutil module.
       (c)   Write a python program to create a folder PYTHON and under the hierarchy 3                  6
             files file1,file2 and file3.write the content in file1 as ”VTU” and in file2 as
             “UNIVERSITY” and file3 content should be by opening and merge of file1 and
             file2. Check out the necessary condition before write file3.
                                            Module – 4
       (a)   What is a class? How to define class in python? How to initiate a class and how the         5
             class members are accessed?
       (b)   Explain init and str method with an example python program.                                 8
Q.7    (c)   Write a python program that uses datetime module within a class, takes a birthday as        7
             input and prints the age and the number of days, hours, minutes and second.
                                                OR
       (a)   What is a pure function? Illustrate with an example python program                          6
Q.8    (b)   Define polymorphism. Demonstrate polymorphism with function to find histogram to            8
             count the numbers of times each letters appears in a word and in sentence.
       (c)   What is type based dispatch? Illustrate with python program.                                6
                                           Module – 5
       (a)   What is web scraping? how to download files from web, check the error and save the 6
             downloaded files to hard drive with request module in python.
             Explain in details how to parse HTML with the BeautifulSoup.                       7
Q.9    (b)
       (c)   How to work with Excel spreadsheet in python. Explain briefly.                              7
                                              OR
       (a)   How to work with PDF document in python. Explain with extracting text, decrypting, 10
             creating copying pages, encrypting PDF.s
Q.10   (b)   What is CSV and JSON files? Exaplain with an example program the usage of json 10
             module in python.
                                                                                                       18CS55
      Table showing the Bloom’s Taxonomy Level, Course Outcome and Programme
                                      Outcome
 Question        Bloom’s Taxonomy Level              Course                Programme Outcome
                 attached                            Outcome
Q.1       (a)                   L1                 CO1                    1,2,3
          (b)                   L2                 CO1                    1,2
          (c)                   L3                 CO1                    1,3
Q.2       (a)                   L1                 CO1                    4,5
          (b)                   L2                 CO1                    11,12
          (c)                   L3                 CO1                    8,9
Q.3       (a)                   L1                 CO2                    4,5
          (b)                   L2                 CO2                    1,2,3
          (c)                   L3                 CO2                    4,5
Q.4       (a)                   L1                 CO2                    3,6
          (b)                   L2                 CO2                    9,10,11
          (c)                   L3                 CO2                    1,2,3
Q.5       (a)                   L1                 CO3                    5,6,7
          (b)                   L2                 CO3                    11
          (c)                   L3                 CO3                    5
Q.6       (a)                   L1                 CO3                    4,5
          (b)                   L2                 CO3                    5
          (c)                   L3                 CO3                    5,7
Q.7       (a)                   L1                 CO4                    3,4
          (b)                   L1                 CO4                    3,4
          (c)                   L3                 CO4                    4,5
Q.8       (a)                   L2                 CO4                    3,5
          (b)                   L1                 CO4                    2,3
          (c)                   L3                 CO4                    1,4
Q.9       (a)                   L2                 CO5                    5
          (b)                   L2                 CO5                    5
          (c)                   L3                 CO5                    5
Q.10      (a)                   L2                 CO5                    5
          (b)                   L2                 CO5                    5
                                            Lower order thinking skills
Bloom’s         Remembering(               Understanding                    Applying (Application):
Taxonomy        knowledge):𝐿1              Comprehension): 𝐿2               𝐿3
Levels                                     Higher order thinking skills
                Analyzing (Analysis): 𝐿4   Valuating (Evaluation): 𝐿5       Creating (Synthesis): 𝐿6