Important Q
Important Q
Topics:
1.NumPy:
Creating arrays and Indexing Arrays, Array Transposition.
3.Pandas:
What are pandas? Where it is used?
Series in pandas, pandas DataFrames.
4.Matplotlib:
Python for Data Visualization. Visualization Tools .
7.Inheritance, super class and overloading operators, Static and class methods
,Constructor, class attributes and destructors .
9.Python Object Types-Number, Strings, Lists, Dictionaries, Tuples, Files, User Defined Classes.
Question:
1.Explain the concept of module and packages with suitable example.
3.What is thread? Write a program that creates two threads. One thread should print even
numbers from 2 to 8 and the other should print odd numbers from I to 7.
4.What is thread synchronization? Explain with suitable example.
5.Create a class "Bank" having attributes "Bank name”, “Branch", "City". "Manager Name" and
methods "Change manager name" and "Display details." Write a constructor-to initialize the
instance variables. Write a main program to Constate the use of Bank class.
6.Write program using mango DB database to create a employee". Collection having fields Emp ID,
Name, Designation, Mobile, Department. Accept the input from the user to insert the documents.
9.Write a program using Mongo DB database to create a collection Chess player competition"
with field (Player id, player_name., player_age, phone) and display all registrations.
10.Create pandas data frame using 2D list and perform following operations. 51
12.Create data frame using three series having size 10' series are account number., name and
balance.
13.Draw pie chart using matplot lib and decorate it by adding various elements use suitable
data.
Program
Find Even and odd.
Constructor
Swapping
Write a program to accept an integer number and use try except to catch the exception if a floating
point number is entered.
Write a program that reads a text file and count the number of lines and words in the file.
Write a program to validate strong password using regular expression specify rules for the
strong password.
---------------------------------------------------------------------------------------
1. Explain any Four of the following:
a) Features of Python b) Modules in Python c) Mutable & immutable d) Explain break, continue and pass
of Python e) Lambda Function
3. Explain how to access Strings, also various methods associated with it.
4. What do you mean by function? Explain function and it’s type with suitable example.
6. Write a program to open a textfile ‘emp1’ and ‘emp2’ and store all the information of both the files in ‘
emprecord’ file.
8. Write a program to create a derived class current_ account from Account class derived class consist
two method deposit and withdraw display the deposit and withdraw amount.
9. Write a program to perform basic CRUD operations with MongoDB 10. Short notes on a) Series in
pandas b) Visualization Tools c) Universal Array Function