Write syntax for following: 1) Take integer input from user 2) Let data=” Hello”. Print string data in reverse order. 3) Multiline comments 4) Declare tuple with multiple data type elements 5) Decimal number to octal conversion 6) While loop 7) Declare global variable
[7 marks]Write any one major difference between following: 1) Mutable and Immutable 2) Global and Local variable 3) Functions and Generators 4) append() and extend() list methods 5) readline() and readlines() 6) Canvas and frame 7) \d and \Dsequence characters in regular expression
[7 marks]Write program which have class Student with following instance variable. (empId,empName, empdesignation, Basicsalary), and having following instance methods. calculateHRA( 15 % of Sal), calculateTA(5 % of Sal), calculateDA( 25 % of Sal) calculateNetSal. Show proper use of class into main program.
[7 marks]What is Recursion? Write down program to find factorial of a number with iterative and recursive functions.
[7 marks]Explain types of variables and types of methods in class using example.
[7 marks]What are quantifiers and sequence character in regular expression? Explain using example.
[7 marks]Briefly explain the data types available in Python with real life examples. Write a code to explain use of different data types using class.
[7 marks]What is regular expression? Suppose str = “Dhara Om Bhavna 123 Ekta Jay 9abc“. Write a regular expression for following requirements on the basis of “str”: 1. Search all the word having length between 3 to 5. 2. Find all the word who start with numeric value. 3. Find all the non-alphabetic word. 4.
[7 marks]Explain iteration mechanism with real life examples of WHILE and FOR loops.1
[7 marks]Explain following methods of pyplot with example. 1. hist() 2. pie() 3. title()
[7 marks]What is Data Frame in python? Suppose to there is student.csv file which having data of stdid ,name, engMark, gujMark, hinMark, and total. Find out student for following criteria using pandas operation. 1. Create data frame from student.csv file using panda’s method. 2. Find out student who having maximum marks in engMark using data frame. 3. Find out student who having less than 35 marks in hinMark using data frame.
[7 marks]Write a Python program using PyLab to display strength of students in a college for 5 years. First year strength was 3000 which increased by 5% every year. Display graph accordingly. Use Xlabel, Ylabel, Title, Legend accordingly.
[7 marks]What is Data frame? Explain Data frame with different kind of source using example.
[7 marks]Write a python program which having two function to display a record from employee and department table as following criteria. 1. Display employee detail with department name. (first function) 2. Display employee from particular department only. (second function) Following are structure of table. Employee(empId,empName,empSal,depId) Department(depId,depName,depDesc)
[7 marks]Explain seek() and tell() methods in detail with proper example to read a binary file.
[7 marks]Write a python program which show to insert and delete records in Product table with following fields. (prodId,prodName,qty,rate,brandName)
[7 marks]Explain filter(), map() and reduce() functions using lambda with examples.
[7 marks]