0% found this document useful (0 votes)
1 views3 pages

Python

The document outlines a comprehensive curriculum for learning Python, divided into four units covering various topics such as data types, exception handling, loops, functions, inheritance, file handling, and libraries like NumPy and Pandas. Each unit contains multiple questions and tasks aimed at reinforcing understanding of Python concepts and practical applications. Additionally, there is a section with 2-mark questions that address fundamental Python concepts and functionalities.

Uploaded by

berlin7san
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views3 pages

Python

The document outlines a comprehensive curriculum for learning Python, divided into four units covering various topics such as data types, exception handling, loops, functions, inheritance, file handling, and libraries like NumPy and Pandas. Each unit contains multiple questions and tasks aimed at reinforcing understanding of Python concepts and practical applications. Additionally, there is a section with 2-mark questions that address fundamental Python concepts and functionalities.

Uploaded by

berlin7san
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PYTHON

UNIT-1

1. Explain any 5 flavours of python (3 times)


2. Explain various data types in python (3 times)
3. Explain exception handling in Python with try... except... finally block. (3 times)
4. Explain use of [Link]() and f-string (2 times)
5. With example explain keyword arguments and default arguments to the function. (2 times)
6. Explain any 5 features of Python.
7. Explain 'while' and 'for' loops with syntax and example.
8. With example explain how command line arguments are passed to python program
9. With syntax and example explain how to define and call a function in Python
10. Give the syntax of range function. Explain with example.

UNIT-2
1. Explain concatenation, repetition and membership operations on string (3)
2. With example explain how to Access and Modity key : value Pairs in Dictionaries.(2)
3. Explain any four list methods with syntax (2)
4. Explain split and join methods of string with example (3)
5. Write a note on indexing and slicing operations on tuples. (3)
6. Explain any four set methods. (2)
7. Write a Python code to implement stack operations using lists
8. What is string slicing ? Explain with examples
9. Explain any five dictionary methods with syntax
PYTHON

UNIT 3
1. What is inheritance ? How to implement inheritance in Python ? Give an example. (3)
2. Write a note on arranging Widgets in a frame using layout managers with example
3. Explain declaring a class, defining an object and constructor with syntax and example.(2)
4. How to create a button widget and bind it to the event handler ? Explain with example (2)
5. With example explain how'with' statement is used to open and close files.
6. With example explain any two methods to read data from the file
7. Explain multipath inheritance with example.
8. Explain the process of creating a Listbox widget with a suitable example. Also, explain different
values associated with selectmode option
9. List and explain various file opening modes with examples
10. Explain multi-level inheritance with example
11. Explain method overloading and overriding with example.
12. Write a note on : i) Text Widget ii) Entry Widget

UNIT 4
1. Explain any four NumPy array creation functions with example (2)
2. Explain Bar Graph creation using Matplot Library module (2)
3. Explain any four SQLite database operations with example (2)
4. Explain any four operations on Dataframe with example. (2)
5. Explain four SQLite mcdule methods required to use SQLite database.
6. Explain any four NumPy array attributes with usage syntax.
7. Explain any four string processing methods supported by Pandas Library with example
8. Write a Python program to demonstrate any four SQLite Database operations
9. Explain with example any two methods of creating Data Frame.
10. Explain basic arithmetic operations on NumPy array with examples
11. Write a program to display histogram.
PYTHON

2 MARKS
1. What is Pandas Series ? Give example.

2. How to determine the data type of a variable ? Give the syntax and example.

3. What is indentation ? Why it is required ?

4. Why strings are called immutable ?


5. What is tuple ? Give example.

6. What is root window ? How it is created in Python ?

7. What is matplotlib and pyplot ?

8. What is Python Virtual Machine ?

9. What is Keyword argument ? Give example.


10. What is the use of negative indexing ? Give example.
11. What is dictionary ? Give example.

12. What is the use of seek() and tell() methods ?

13. List any two file object attributes and mention its purpose.

14. How to connect to the SQLite database ? Give example.

15. How to define private instance variable and methods in Python ?


16. What is Canvas ? How it is created in Python ?

You might also like