Index of Practical File
S. No. Practical / Activity Title Page No.
1 Data and Information
(Definition & Example)
2 Number Systems (Decimal,
Binary, Octal, Hexadecimal)
3 Database and DBMS
(Introduction)
4 File System vs Database
System
5 Data Models (Hierarchical,
Network, Relational)
6 Relational Model Terms &
Keys
7 Computer Maintenance &
Preventive Care
8 Booting and Safe Mode
9 Types of Ports and Their
Uses
10 Windows Operating System
& Control Panel
11 Utility Programs (Disk
Cleanup, Backup)
12 Cyber Crime & Cyber Safety
13 E-Waste Management & IT
Act 2000
14 Introduction to
Python( features, data types,
operators, control statements
etc)
15 Python Programs (Simple
Programs)
10 Programs to Write in Practical File
1. Hello World
print("Hello, World!")
Output:
Hello, World!
2. Add Two Numbers
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
sum = a + b
print("Sum:", sum)
3. Check Even or Odd
num = int(input("Enter a number: "))
if num % 2 == 0:
print(num, "is even")
else:
print(num, "is odd")
4. Find the Largest of Two Numbers
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
if a > b:
print(a, "is greater")
else:
print(b, "is greater")
5. Print Numbers from 1 to 10
for i in range(1, 11):
print(i)
6. Simple Calculator (Add, Subtract, Multiply, Divide)
a = float(input("Enter first number: "))
b = float(input("Enter second number: "))
print("Addition:", a + b)
print("Subtraction:", a - b)
print("Multiplication:", a * b)
print("Division:", a / b)
7. Check Leap Year
year = int(input("Enter a year: "))
if (year % 4 == 0 and year % 100 != 0) or (year % 400 == 0):
print(year, "is a leap year")
else:
print(year, "is not a leap year")
8. Reverse a String
text = input("Enter a string: ")
print("Reversed string:", text[::-1])
9. Factorial of a Number
num = int(input("Enter a number: "))
factorial = 1
for i in range(1, num + 1):
factorial *= i
print("Factorial:", factorial)
10. Count Vowels in a String
text = input("Enter a string: ").lower()
vowels = "aeiou"
count = 0
for char in text:
if char in vowels:
count += 1
print("Number of vowels:", count)