Adv. Python Pro. IMP Questions
Adv. Python Pro. IMP Questions
Patel Polytechnic
Advanced Python Programming
IMP Questions
5 What are lists and tuples? What is the key difference between the two?
7 What is List? What are the uses of a List in Python and write
characteristics of a List.
● Programming Questions
13 Write a program that finds maximum and minimum numbers from a
list. (repeated 2 times)
4 Define PIP.
● Programming Questions
10 Write a program to define a module to find the sum of two numbers.
Import the module into another program. (repeated 2 times)
2 What are the built-in exceptions and give their types. (repeated 2 times)
● Programming Questions
12 Write a user-defined exception that could be raised when the text
entered by a user consists of less than 10 characters.
4 How to open and close a file? Also give the syntax for the same.
● Programming Questions
8 Write a program to sort all the words in a file and put them in a list.
(repeated 2 times)
9 Write a program that inputs a text file. The program should print all of
the unique words in the file in alphabetical order. (repeated 2 times)
7 What are the various types of pen commands in Turtle? Explain them
all. (repeated 2 times)
8 Explain the Shape function in Turtle. How many types of shapes are
there in Turtle?
● Programming Questions
10 Write a program to draw a square, rectangle, and circle using turtle.
(repeated 2 times)
11 Draw Circle and Triangle shapes using Turtle and fill them with red
color. (repeated 2 times)
14 Draw circle and star shapes using turtle and fill them with red color.