Entrance Announcement
MICTE 2080
2080 Magh 07
BICTE ICTED 477 Python Programming 2081
TRIBHUVAN UNIVERSITY
2081-ii (New Course)
Bachelor/ Education /7th Semester
Full Marks: 40
ICT.Ed.477 Python Programming
Time: 3 hrs.
Candidates are required to give answers in their own words as far as practicable. The figures in the margin indicate full marks.
Attempt all questions
Group "B"
6 X 5 marks =30
Write a Python program to demonstrate list slicing and the use of list comprehension.
2. Discuss the methods available for string manipulation in Python. Provide examples of split, replace, and strip methods.
3. Discuss the concept of data hiding in Python. Why is it important, and how is it achieved?
OR
Explain the different types of inheritance in Python with suitable examples.
4. Write a Python program to demonstrate file operations, including reading from and writing to a file.
Write a Python program to demonstrate how exceptions are handled when dividing a number by zero.
6. Write a Python program to design a simple GUI with labels, text entries, and buttons.
OR
✓ Explain the role of tkinter in Python GUI programming. Discuss the use of at least three tkinter widgets.