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

Python Post Experiment Questions

The document outlines post-experiment questions for a Python programming course for the 2024-25 academic year. Each experiment focuses on comparing Python with C, handling mathematical operations, managing data structures, error handling, and creating executable files. The questions aim to deepen understanding of programming concepts and improve coding practices.

Uploaded by

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

Python Post Experiment Questions

The document outlines post-experiment questions for a Python programming course for the 2024-25 academic year. Each experiment focuses on comparing Python with C, handling mathematical operations, managing data structures, error handling, and creating executable files. The questions aim to deepen understanding of programming concepts and improve coding practices.

Uploaded by

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

PYTHON PROGRAMMING- 2024-25

Post Experiment questions

Expt 1.
1.Compare how input/output operations differ in Python and C.
2. Write the equivalent C program for this Python code.
Expt 2.
1. How does Python handle mathematical operations differently from C?
2. What are the required inputs for each shape?
Expt 3.
1. How would the result of 10 / 3 differ from 10 // 3?
2. How does Python’s modulus operation differ from C when negative numbers are
involved?
Expt 4.
1. Why would you use a list for storing tasks instead of a tuple?
2. How can you sort a list of tasks based on priority (e.g., "High" > "Medium" >
"Low") using Python?
Expt 5.
1. How can you update an existing student's grade or attendance?
2. How would you modify the program to display all students who have the highest
grade in case of a tie
Expt 6.
1. What happens if the user enters a non-numeric value (e.g., "hello") instead of a
number?
2. How can the user exit the infinite loop safely?
Expt 7.
1. Discuss how separating arithmetic operations into different functions makes
debugging and maintenance easier.
2. Describe common errors that may occur in a calculator program (e.g., division by
zero, invalid input).
Expt 8.
1. Explain how exceptions like FileNotFoundError and IOError can occur while
handling files.
2. Compare regex-based filtering with traditional string methods like split() and
replace().
Expt.9
1. What are the advantages and limitations of using pyinstaller for creating
executable files?
PYTHON PROGRAMMING- 2024-25
Post Experiment questions

2. How does exception handling improve the robustness of file handling


programs when converted into an executable format?

Expt 10
1. Why is exception handling important in division operations, and how does it
improve program reliability?
2. What are the different types of exceptions that can occur when performing division
in Python, and how can they be handled effectively?

You might also like