-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.html
More file actions
68 lines (56 loc) · 2.47 KB
/
python.html
File metadata and controls
68 lines (56 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Python Questions - CS Practical</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<main>
<a href="index.html" class="back-link">← Back to Home</a>
<h1>Python Programming</h1>
<div class="subtitle">CS10 Laboratory</div>
<div id="toc" class="toc">
<h2>Contents</h2>
<ul>
<li><a href="#q1">1 Stack from List</a></li>
<li><a href="#q2">2 Menu-driven Stack</a></li>
<li><a href="#q3">3 CSV File Operations</a></li>
<li><a href="#q4">4 Binary File Operations</a></li>
</ul>
</div>
<h3 id="q1"><a href="PythonQ1.html">Question 1: Stack from List</a></h3>
<p>Create a list of 10 integers. Write a program with separate user-defined functions to perform the following
operations:</p>
<ul>
<li><b>i) Push:</b> Push the items of the list into a stack which are divisible by 5.</li>
<li><b>ii) Pop & Display:</b> Pop and display the content of the stack.</li>
</ul>
<h3 id="q2"><a href="PythonQ2.html">Question 2: Menu-driven Stack</a></h3>
<p>Write a menu-driven program to handle stack operations such as <b>Push</b>, <b>Pop</b>, and <b>Display</b>.
</p>
<h3 id="q3"><a href="PythonQ3.html">Question 3: CSV File Operations</a></h3>
<p>Write a menu-driven program to add and display records in a <b>CSV file</b> (<code>students.csv</code>) which
contains at least three student records with the following fields:</p>
<ul>
<li><code>name</code> (str)</li>
<li><code>class</code> (int)</li>
<li><code>roll</code> (int)</li>
<li><code>marks</code> (int)</li>
</ul>
<h3 id="q4"><a href="PythonQ4.html">Question 4: Binary File Operations</a></h3>
<p>Write a menu-driven program to add and display records in a <b>binary file</b> which contains at least three
product records with the following fields:</p>
<ul>
<li><code>pname</code> (str)</li>
<li><code>price</code> (float)</li>
<li><code>qty</code> (int)</li>
</ul>
</main>
<footer>
<p>CS Practical Questions</p>
</footer>
<script src="script.js"></script>
</body>
</html>