You are on page 1of 3

Gopalan College of Engineering and Management

(ISO 9001:2015)
Approved by All India Council for Technical Education (AICTE) , New Delhi
Affiliated to Visvesvaraya Technological University (VTU), Belagavi, Karnataka
GCEM Recognised by Govt. of Karnataka

Address: 181/1, 182/1, Sonnenahalli, Hoodi, K.R.Puram, Whitefield, Bangalore, Karnataka - 560 048
Phone No: (080) - 42229748 Email: gcem@gopalancolleges.com Website: www.gopalancolleges.com/gcem

INTERNAL ASSESSMENT TEST – III

Academic Year 2020-21 (ODD) Dept. CSE


Program B.E Date 09/01/2021
Year / Semester III/V Duration 1.30 Hrs
Course Code 18CS55 Time AN:9.30AM – 11.00AM
Course Name Application Development using Python Max. Marks 50

Note 1.Answer any three questions, choosing one full question from each part
2. Question No. 1, 2, 3 & 4 carries 20 marks and Question No. 5 & 6 carries 10 marks

Q. No. RBT**
Questions Marks COs*
level
1. a Define class and object? What are programmer defined types? Explain with 4
examples. Differentiate class variables and instance variables. L1

b Develop a python program that has a class Point with attributes as X and Y 6
coordinates. Create two objects of this class and find the midpoint of both the
points. Add a method refles_x to class point, which returns a new point. Which is
the reflection of the point about the x-axis? L3
20 CO 4
Example: point (5,10)=> reflex_x returns point(5,-10).

c Develop a python program that uses datetime module within a class, takes a 5
birthday as input and prints the age and number of days, hours, minutes and
L3
seconds until the next birthday.

d What is type based dispatch? Illustrate with python example. 5 L1

OR
2. a Define attributes? With the help of python code, explain how functions return L1
instance values. 4

b Develop a python program that has a class Person, Inherit a class Student from 6 L3
Person which also has a class MarkAttendance. Assume the attributes for Person
class as: USN, Name, dob, gender, Attributes for Student class as: class, branch,
year, MA. Attributes for MarkAttendance: Marks, Attendance. Create a student, S 20 CO 4
= Student(“1GD18CS001”, “aaa” , “18-10-90”, “M”, 85, 98) and display the
details of the student.

c Explain the concept of modifier with python code. 4 L2

d Explain operator overloading and data encapsulation with suitable examples. 6 L2

Page 1 of 3
3. a Explain __init__ and __str__ method with suitable examples. 4 L2

b Define polymorphism. Demonstrate polymorphism with function to find 6 L1


histogram to count the number of times each letter appears in a word and in
sentences.

c How class can be instantiated in python? Write a python program to express 5 L1


20 CO 4
instances as return values to define a class RECTANGLE with member width,
height, corner_x, corner_y and member function: to find center, area and
perimeter of a rectangle.

d What is a pure function? Write a python program to find duration of event if start 5 L1
and end time is given by defining class TIME.

OR
4. a Explain beautifulsoup module and Explain how HTML is parsed with the 5 L2
BeautifulSoup Module
b Develop a python program to Saving Downloaded Files to the Hard Drive 5 L3
c Develop a python program to Downloading All XKCD Comics 5 20 CO 5 L3
Briefly describe the differences between the webbrowser, requests, 5 L1
BeautifulSoup, and selenium modules . What type of object is returned by
requests.get()? How can you access the downloaded content as a string value?

5. a Develop a python program to overlay the contents of one page over another and 5 L3
to merge all the pages of two pdfs into one pdf
10 CO 5
b Develop a python program to Encrypting and Decrypt PDFs 5 L3

OR
6. a Explain the process of reading and writing in Excel document with the relevant 4 L2
functions
Develop a python program to update the data of the excel sheet with the 6 10 L3
CO 5
b following attributes(Product, cost per pound, pound sold, total) . Update the price
of the product: Celery 1.19, Garlic 3.07, Lemon 1.27.
Also update the total based on the new price.

*Course Outcomes (COs):


CO NO. COs Marks
At the end of the course, students will be able to…
CO4 Interpret the concepts of Object-Oriented Programming as used in Python. 60
Determine the need for scraping websites and working with CSV, JSON and other file
CO5 40
formats.

**Revised Bloom’s Taxonomy (RBT) Levels:


RBT Remember Understand Apply Analyze Evaluate Create
RBT Levels L1 L2 L3 L4 L5 L6
Marks 34 23 43

Prepared by Approved by
V N Manju/AP/CSE

Page 2 of 3
(Name of Faculty / Designation / Dept.) (HOD – DEPT)

Page 3 of 3

You might also like