Entrance Announcement
MICTE 2080
2080 Magh 07
BICTE ICTED 477 Python Programming 2081: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 16: | Line 16: | ||
# Write a Python program to demonstrate list slicing and the use of list comprehension. | # Write a Python program to demonstrate list slicing and the use of list comprehension. | ||
# Discuss the methods available for string manipulation in Python. Provide examples of split, replace, and strip methods. | # Discuss the methods available for string manipulation in Python. Provide examples of split, replace, and strip methods. | ||
# 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. | # Discuss the concept of data hiding in Python. Why is it important, and how is it achieved? <br>''OR'' <br>Explain the different types of inheritance in Python with suitable examples. | ||
# Write a Python program to demonstrate file operations, including reading from and writing to a file. | # 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. | # Write a Python program to demonstrate how exceptions are handled when dividing a number by zero. | ||
# 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. | # Write a Python program to design a simple GUI with labels, text entries, and buttons. <br> ''OR''<br> Explain the role of tkinter in Python GUI programming. Discuss the use of at least three Tkinter widgets. | ||
[[Category:OLD is Gold]] | |||
[[Category:Python Programming]] | |||
[[Category:2081]] | |||
[[Category:BICTE]] | |||
[[Category:7th Semester]] |
Latest revision as of 05:58, 12 January 2025
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.
- Discuss the methods available for string manipulation in Python. Provide examples of split, replace, and strip methods.
- 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. - 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.
- 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.