0% found this document useful (0 votes)
93 views

Python-3rd IA Important Questions

The document outlines 20 tasks related to Python programming concepts and techniques: 1) Implementing forward chaining for problem solving using a Python program. 2) Solving the 8 queens problem using assumptions in a Python program. 3) Demonstrating best first search on an AI problem using a Python program. 4) Defining an Employee class with methods to set/display attributes like ID, name, age, and salary. 5) Illustrating modifiers with Python code.

Uploaded by

KAVYASHREE B L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
93 views

Python-3rd IA Important Questions

The document outlines 20 tasks related to Python programming concepts and techniques: 1) Implementing forward chaining for problem solving using a Python program. 2) Solving the 8 queens problem using assumptions in a Python program. 3) Demonstrating best first search on an AI problem using a Python program. 4) Defining an Employee class with methods to set/display attributes like ID, name, age, and salary. 5) Illustrating modifiers with Python code.

Uploaded by

KAVYASHREE B L
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Write a python program to implement problem solving strategies using forward chaining
technique. (refer lab program)
2. Write a python program to Solve 8-queens problem using suitable assumptions.(refer lab
program)
3. Write a python program to demonstrate Best first search algorithm on any AI problem?
(refer lab program)
4. Define classes and objects in Python. Create a class called Employee and initialize it
with employee id and name. Design methods to:
(i) i) setAge_to assign age to employee.
(ii) ii) setSalary_to assign salary to the employee.
iii) Display_to display all information of the employee.
5. Illustrate the concept of modifier with Python code.
6. Explain init and __str__ method with an example Python Program.
7. Define polymorphism? Demonstrate polymorphism with function to find histogram to
count the number of times each letter appears in a word and in a sentence.
8. Illustrate the concept of pure function with Python code.
9. Define Class Diagram. Discuss the need for representing class relationships using Class
Diagram with suitable example.
10. What is class? How do we define a class in python? How to instantiate the class and
how class members are accessed?
11. Write a python program that uses datetime module within a class , takes a birthday as
input and prints user’s age and the number of days, hours ,minutes and seconds until
their next birthday.
12. Explain operator overloading with example.
13. Illustrate the concept of inheritance with example
14. What is JSON? Briefly explain the json module of Python. Demonstrate with a Python
program.
15. Discuss the Creation, Encryption and Decryption of a PDF.
16. Write a python program to give search keyword from command line arguments and open
the browser tab for each result page.
17. Use the datetime module to write a program that gets the current date and prints the day
of the week.
18. Write a python program to access a cell in a worksheet.
19. Define and illustrate the CSV file. What are the advantages of CSV file?
20. Write a program to get a list of all files with the .pdf extension in the current working
directory and sort them.

You might also like