PCA25C04J · End Semester
Covers all units: Introduction / Object Oriented Programming / Modules & Threads / Data Analysis / GUI and SQL lite
Answer any 5 Questions
Justify String is immutable with an example.
Compare and contrast Lists and Tuples in Python with example.
Quote on set and dictionaries in python.
Classify the different access modes of the files with example.
Write a program to check the eligibility for senior citizens (age 65 above) Implement exception handling mechanism to handle error such as negative number and non-integer input.
Describe Series indexing in Pandas with a simple example.
State the purpose of Matplotlib and list any four types of plots used in data visualization.
Outline the purpose of Message and Entry widgets in Tkinter with suitable examples.
Answer all Questions
i. Discover the datatypes supported in python with example. (7 marks)
ii. Discuss about operators and expressions. (8 marks)
Apply the following in Python and illustrate with examples:
i) Lambda functions
ii) Tuple operations
iii) Dictionary operations
Write a program to design a class using inheritance where Person is the base class with attributes name and age. Derive Student and Teacher subclasses, identify additional role-specific attributes and implement method to display their respective information.
Apply the exception handling mechanism in Python to handle errors and illustrate it with a suitable example
i. Explain how to create a thread and implement multithreading in Python. (8)
ii. Describe the design and implementation of a multithreaded Python program using threading functions. (7)
i. Explain the purpose of the random module and list any four commonly used functions with examples.
ii. Write the steps to create user defined module in python.
Illustrate the various array operations available in NumPy including arithmetic and statistical functions.
Describe the structure of a Pandas DataFrame and demonstrate various indexing operations with suitable examples.
Discuss the following with example
i. Radiobutton
ii. Listboxes
iii. Scrollbars
Summarize the basic SQLite commands CREATE, INSERT and SELECT. Provide examples of each command and explain.