Future Vision BIE Future Vision BIE


ONE STOP FOR ALL STUDY MATERIALS & LAB PROGRAMS


E MENU Whatsapp Share Join Telegram, to get Instant Updates
× NOTE! Click on MENU to Browse between Subjects...

Advertisement

PYTHON APPLICATION PROGRAMMING

[As per Choice Based Credit System (CBCS) scheme]

(Effective from the academic year 2017 - 2018)

SEMESTER - VI

Subject Code 17CS664

IA Marks 40

Number of Lecture Hours/Week 3

Exam Marks 60



17CS664 - PYTHON APPLICATION PROGRAMMING

Important Questions - MODULE - 4




Advertisement

These Questions are being framed for helping the students in the "FINAL Exams" Only (Remember for Internals the Question Paper is set by your respective teachers). Questions may be repeated, just to show students how VTU can frame Questions.

- ADMIN



17CS664 - PYTHON APPLICATION PROGRAMMING

Important Questions - MODULE - 4




Advertisement

1. Define class and object? What are programmer defined types? Explain with example. (05 Marks) (Dec.2019/Jan.2020)

2. Illustrate the concept of pure function with python code. (05 Marks) (Dec.2019/Jan.2020)


Advertisement

3. What is the difference between method and function? Explain the working of init method with suitable code. (06 Marks) (Dec.2019/Jan.2020)

4. Define attribute? With the help of python code, explain how functions return instance values. (06 Marks) (Dec.2019/Jan.2020)

5. Explain the concept of modifier with python code. (05 Marks) (Dec.2019/Jan.2020)

6. What is type based dispatch? Illustrate with python example. (05 Marks) (Dec.2019/Jan.2020)


Advertisement

7. What is a Class? How to define a class in Python? How to instantiate a class and how the class members are accessed? (04 Marks) (June/July.2019)

8. Differentiate class variables and instance variables. (02 Marks) (June/July.2019)

9. Write a Python program that uses date time module within a class, takes a birthday as input and prints the age and the number of days, hours, minutes and seconds until the next birthday. (10 Marks) (June/July.2019)

10. Write a program that has a class Point with attributes as X and Y co-ordinates. Create two objects of this class and find the midpoint of both the points. Add a method reflex_x to class point, which returns a new point. Which is the reflection of the point about the x - axis. Ex: point (5, 10) => reflex_x returns point (5, -10). (06 Marks) (June/July.2019)


Advertisement

11. Differentiate between simple, multiple and multi - level inheritance. (06 Marks) (June/July.2019)

12. Write a program that has a class Person, Inherit a class Student from Person which also has a class MarksAttendance. Assume the attributes for Person class as: USN, Name, dob, gender. Attributes for Student class as : Class , branch , year , MA. Attributes for Marks, Attendance: Marks, Attandance. Create a student S = Student ("lLAB16CS005", "XYZ", "18-1-90", "M", 85, 98) and display the details of the student. (04 Marks) (June/July.2019)

13. How class can be instantiated in python? Write a python program to express instances as return values to define a class RECTANGLE with members width, height, corner_x, corner_y and member function: to find centre, area and perimeter of a rectangle. (08 Marks) (Dec.2018/Jan.2019)

14. Explain init and str method with an example python program. (08 Marks) (Dec.2018/Jan.2019)

15. Define polymorphism. Demonstrate polymorphism with function to find histogram to count the numbers of times each letters appears in a word and in sentence. (08 Marks) (Dec.2018/Jan.2019)


Advertisement

16. What is a pure function? Write a python program to find duration of event if start and end time is given by defining class TIME. (08 Marks) (Dec.2018/Jan.2019)

17. Create a student class and initialize it with name and roll number. Design methods to:

i. Display_to display all information of the student.

ii. setAge_to assign age to student.

iii. setMarks_to assign marks to the student. (07 Marks) (June/July.2018)

18. Using datetime module write a program that gets the current date and prints the day of the week. (04 Marks) (June/July.2018)


Advertisement

19. What are polymorphic functions? Explain with a snippet code. (05 Marks) (June/July.2018)

20. What does the keyword self in Python mean? Explain with an example. (05 Marks) (June/July.2018)

21. Show using a Python code how_init_method is invoked when an object is initiated Explain its working. (06 Marks) (June/July.2018)

22. Explain _ str_ method with a Python program. (05Marks) (June/July.2018)


ANSWER SCRIP FOR THESE QUESTIONS WILL BE UPLOADED "AS SOON AS POSSIBLE"

Visit: https://hemanthrajhemu.github.io/AnswerScript/

For immediate Notification Join the Telegram Channel





× Note Please Share the website link with Your Friends and known Students...

-ADMIN

× Note Page Number is specified to navigate between Pages...
T = Text book
QB = Question Bank
AS = Amswer Script


-ADMIN

Advertisement