Write a python program that finds the factorial of a natural number n.
[3 marks]Explain the concept of specification with a suitable example.
[4 marks]Is String a mutable data type? Also explain the string operations length, indexing and slicing in detail with an appropriate example.
[7 marks]Write a python program that reads a text file and changes the file by capitalizing each character of file.
[3 marks]Explain the concept of stack frame in python with an appropriate example.
[4 marks]What do you mean by immutable data type? Explain immutable data types with their operations and functions.
[7 marks]Write a python program that sorts the list [34, 25, 81, 12, 5] using merge sort.
[7 marks]Explain Lambda function with a suitable example.
[3 marks]Explain the following python regular expression function with an example: match() and search().
[4 marks]What are bugs? Write about different types of bugs. What steps will you perform to identify and remove the bugs in a python script?
[7 marks]Explain the use of assert statement with a python program.
[3 marks]Describe how aliasing creates a problem in mutable data type with an example.
[4 marks]Write a python program that creates a class Student having attributes {Enrollement_No, Name} and methods set_data that takes the values from the user and assigns them to attributes of the class and an operator overloading function that converts Student object to string. Also create an Class variable student_count that will maintain the count of Student Instances and a method that will display this count.
[7 marks]Explain the use of following socket functions: socket(), bind() and listen().
[3 marks]Write a simple python program that draws a line graph where x = [1,2,3,4] and y = [1,4,9,16] and gives both axis label as “X-axis”and “Y-axis” using pylab.
[4 marks]Write a python program that implement Caesar encryption and decryption algorithm.
[7 marks]Write a python program that shows the concept of Inheritance.
[3 marks]Write a python function that displays a regular polygon of side n in turtle. Assume that the number and length of side of regular polygon is provided by user. Regular polygon means all sides the same lengths, all angles the same.
[4 marks]Write a python program that reads a text file containing full-name of the employees of a company and then from these names it extracts Last-name of1 employee and stores them in sorted order in new file. Input Text file contains names in format: First-name Middle-name Last-name
[7 marks]Write a note on Tkinter widget: Text (Multiline text).
[3 marks]Explain in detail about Grid attributes in Tkinter
[4 marks]Write a TCP/IP client server chat application.
[7 marks]Explain the use of following turtle functions with appropriate example: turn() and move()
[3 marks]Write a Python GUI program of window size 100*200 that displays a button at x = 20 and y = 100 labeled as “Click Here”. Also add a function on that button that will create a message box having message “Thank you for clicking”.
[4 marks]How to create a thread in python? Explain with an example.
[7 marks]