Model Question Paper-1 with effect from 2019-20 (CBCS Scheme)

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

Q.1

(b)

What are the different flow control statements supports in python .Explain any 3 with an suitable example program and flow chart.

8

Write a python program to calculate the area of circle, rectangular and triangle. print (c) the results.

6

OR

(a)

What is a function? How to define a function in python? Write a program using function to find out the given string is palindrome or not.

6

(b)

What is local and global scope of variable in python .Explain the different scenarios with an example snippet.

8

Q.2

Write a python program to create a function called collatz() which reads as parameter

(c)

named number. If the number is odd then it

number is even it should print and return number//2 and if the should print and return 3*number+1. The function should keep

6

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 (c) example.

8

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.

(c) What are the different steps in project Adding Bullets to Wiki Markup.

4

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.

Q.9 (b) Explain in details how to parse HTML with the BeautifulSoup.

7

(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

Q.1 (a) (b) (c)

Q.2 (a) (b) (c)

Q.3 (a) (b) (c)

Q.4 (a) (b) (c)

Q.5 (a) (b) (c)

Q.6 (a) (b) (c)

Q.7 (a) (b) (c)

Q.8 (a) (b) (c)

Q.9 (a) (b) (c)

Q.10 (a) (b)

Bloom's Taxonomy Level attached

L1 L2 L3 L1 L2 L3 L1 L2 L3 L1 L2 L3 L1 L2 L3 L1 L2 L3 L1 L1 L3 L2 L1 L3 L2 L2 L3 L2 L2

Course Outcome CO1 CO1 CO1 CO1 CO1 CO1 CO2 CO2 CO2 CO2 CO2 CO2 CO3 CO3 CO3 CO3 CO3 CO3 CO4 CO4 CO4 CO4 CO4 CO4 CO5 CO5 CO5 CO5 CO5

Programme Outcome

1,2,3 1,2 1,3 4,5 11,12 8,9 4,5 1,2,3 4,5 3,6 9,10,11 1,2,3 5,6,7 11 5 4,5 5 5,7 3,4 3,4 4,5 3,5 2,3 1,4 5 5 5 5 5

Bloom's Taxonomy Levels

Remembering( knowledge):1

Analyzing (Analysis): 4

Lower order thinking skills

Understanding Comprehension): 2 Higher order thinking skills Valuating (Evaluation): 5

Applying (Application): 3

Creating (Synthesis): 6

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download