What are key features of python?
[3 marks]What is Immutable Data type? Explain any one immutable data type in python.
[4 marks]Write Python statements that performs following operation on a string str1 = “GTU University Examination”. a. Prints length of str1 b. Prints a character on 11th index of str1 c. Prints a substring from 0th index to 13th index of str1 d. Prints all characters of str1 in Upper case e. Prints reverse string of str1
[7 marks]Explain range () function with an example.
[3 marks]Consider two lists L1 = [1,4,6,8,12] and L2 = [1,2,4,8,9], Write a python function that takes list L1 and L2 as arguments and returns a list that has all the elements of L1 that do not occur in L2.
[4 marks]Explain how list are a mutable data type? Write a python function that takes a list Las an argument and returns a list with the elements "shifted right by one position". For example if L = [1,2,3,4] then output is [4,1,2,3].
[7 marks]What is a recursion? Implement a python function that counts the number of occurrences of a character in the given string using recursion method.
[7 marks]Explain split() function with an example.
[3 marks]What is specification? What is importance of writing specification in a program? How to write them in python?
[4 marks]How to handle Exception in python? Write a python program that raises a ValueError exception with a Message “Input value is not a valid even number” if user enters an odd number or any input that is not a number.
[7 marks]Explain usage of assert statement in python.
[3 marks]What do you mean by bugs? Explain them with its types.
[4 marks]Write a python program to implements insertion sort on a list of integer values.
[7 marks]What is socket? How to create a socket in python?
[3 marks]Create a class Employee with data members: name, department and salary. Create suitable methods for reading and printing employee information.
[4 marks]How to create a Multithreaded program in Python? Explain it with an appropriate example
[7 marks]Explain the function which is used to retrieve the parts of URL.
[3 marks]Write a Python program to read a text file and do following: 1. Print no. of unique words 2. Print no. of lines in text file
[4 marks]Write a python program that creates a class student with following member attributes: enrollment_no, name and semester. Create suitable methods for reading and printing member variables, also an operator overloading function that converts student object to string.
[7 marks]Explain the use of following turtle functions with appropriate example: penup() and goto()
[3 marks]Write a python program to implement a Caesar cipher.
[4 marks]Explain the major steps used to create widgets. Write a python program to display a push button labeled as “Click Here”. Also add a function on that button that will show a message box having message “You have clicked a button”.
[7 marks]Write a note on Tkinter widget: Listbox and RadioButton.
[3 marks]Explain in detail about pack attributes in Tkinter
[4 marks]Create following regular polygons (regular means all sides the same lengths, all angles the same) using for loop in turtle • An equilateral triangle • Asquare • Apentagon • Ahexagon
[7 marks]