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

Practical File Computer Science Class 11 - A Comprehensive Guide

Uploaded by

pranjal roy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Practical File Computer Science Class 11 - A Comprehensive Guide

Uploaded by

pranjal roy
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Tue. Feb 4th, 2025 7:54:08 PM

    

TutorialAICSIP
A best blog for CBSE Class IX to Class XII

Practical File Computer Science Class 11 – A


comprehensive guide
By tutorialaicsip
 FEB 12, 2022

In this article, I will discuss Practical File Computer Science Class 11. This practical file is strictly based on the Computer
Science syllabi. So let’s discuss the practical file and practical assessment structure of class 11 computer science. So here
we go!

Topics Covered

1. Practical File Computer Science Class 11


2. Syllabus Computer Science Class 11
3. Suggested Programs – Practical File Computer Science Class 11
4. Practical File Computer Science Class 11
4.1. 3 Programs from list manipulations
4.2. 2 Programs from Tuples – Practical File Term 2 Computer Science Class 11
4.3. 3 Programs from Dictionary – Practical File Term 2 Computer Science Class 11
4.4. Introduction to python modules

Practical File Computer Science Class 11


As per the CBSE curriculum, the practical exam will be conducted at the end of academic year. Observe the structure of
practical assessment for Computer Science Class 11.

S.No Topic Marks

1 Python Program (60% Logic + 20% Documentation + 20% Code Quality) 12

2 Report File: 20 python 7

3 Viva Voce 3

4 Project (that uses most of the concepts that have been learnt) 8

Total 30

Syllabus Computer Science Class 11


The syllabus of computer science class 11 has these topics to be assedssed into practical:

1. Paython Fundamentals

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 1/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

2. If Conditions
3. Loops
4. String Manipulations
5. Lists Manipulations
6. Tuples
7. Dictionary
8. Introduction to Pyton Module

So the practical file programs should be prepared from basics, if conditions, loops, list, tuple, dictionary and python
modules. As per the above table, you need to prepare any 20 programs from these topics. Just check a list of programs for
the same.

Suggested Programs – Practical File Computer Science


Class 11
The list of suggested programs for Practical File Term 2 Computer Science Class 11 are as follows:

1. Input a welcome message and display it.


2. Input two numbers and display the larger / smaller number.
3. Input three numbers and display the largest / smallest number.
4. Generate the patterns using nested loop.
5. Generate the series.
6. Determine whether a number is a perfect number, an armstrong number or a palindrome.
7. Input a number and check if the number is a prime or composite number.
8. Display the terms of a Fibonacci series.
9. Compute the greatest common divisor and least common multiple of two integers.
10. Count and display the number of vowels, consonants, uppercase, lowercase characters in string.
11. Input a string and determine whether it is a palindrome or not; convert the case of characters in a string.
12. Find the largest/smallest number in a list/tuple
13. Input a list of numbers and swap elements at the even location with the elements at the odd location.
14. Input a list/tuple of elements, search for a given element in the list/tuple.
15. Input a list of numbers and find the smallest and largest number from the list.
16. Create a dictionary with the roll number, name and marks of n students in a class and display the names of students
who have scored marks above 75.

In my practical file, I have included the above programs. Along with these, I have included more programs from the topics
covered in coomputer science class 11. So here we go!

Practical File Computer Science Class 11


So let’s begin the Practical File Computer Science Class 11 now. I have included the programs as follows:

3 Programs from list manipulations


[1] Write a program to find the largest number in a list.

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 2/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

#Variable declaration
n=int(input("Enter the number of elements:"))
l=[]
m=0

#Input from user


for i in range(n):
val=int(input("Enter element:"))
l.append(val)
print("The original list:",l)

#Finding maximum
for i in l:
if i>m:
m=i
print("The lasrgest number is:",m)

Output:

[2] Write a program to swap elements at the even location with the elements odd location.

#Accept the list values


l=eval(input("Enter the list:"))

#printing orioginal list


print("Original List:",l)

#Finding length and determining length for odd location


length=len(l)
if length%2!=0:
length=length-1

#Logic for swapping elements


for i in range(0,length,2):
l[i],l[i+1]=l[i+1],l[i]

#printing elements after swap


print("List after swap:",l)

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 3/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

[3] Input a list of elements and search a particular element.

#Accept the list values


l=eval(input("Enter the list:"))

#Ask for element to search


n=int(input("Enter element to search:"))

#Variable to check whether element found or not


f=0

#printing orioginal list


print("Original List:",l)

#Checking element is present in the list or not


for i in l:
if i==n:
f=1
break
else:
f=0

#Printing the message if element found in the list


if f==1:
print("Element found in the list")
else:
print("Element not found in the list")

2 Programs from Tuples – Practical File Term 2 Computer Science


Class 11
[1] Write a python program to create a tuple and print a square of each element.

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 4/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

#Accepting the tuple


t=eval(input("Enter elements for tuple"))

#Converting the tuples into list for manipulation


l=list(t)

#Printing original list


print("The original tuple:",t)

#traversing the list for computation


for i in range(len(l)):
l[i]=l[i]**2

#Converting list back to tuple


t=tuple(l)

#Printing the square of each element


print(t)

[2] Write a program to accept string into tuple and extract the digits into a new list. Print the extracted numeric
list.

#Accepting the tuple


t=eval(input("Enter string elements for tuple:"))

#Declaring list object for extracted elements


l=[]

#Logic to extract numbers from the given tuple


for i in t:
if i.isdigit():
l.append(i)

#CONVERTING THE STRIN INTO INTEGER


for i in range(len(l)):
l[i]=int(l[i])

#PRINTING THE FINAL EXTRACTED LIST


print(l)

3 Programs from Dictionary – Practical File Term 2 Computer


Science Class 11
[1] Write a program to create a dictionary with the roll number, name and marks of n students in a class and
display the names of students who have marks above 75.

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 5/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

#Input for Number of stude


n=int(input("How many students?:"))

#Empty Dictionary
stu={}

#Data Input
for i in range(n):
print("Enter details of student:")
rn=int(input("Enter roll number:"))
name=input("Enter Name:")
marks=float(input("Enter Marks:"))
stu[rn]=[name,marks]

#Logic to display detail of students more than 75 marks


for i in stu:
if stu[i][1]>75:
print("Name:",stu[i][0],"Marks:",stu[i][1])

[2] Write a menu-driven program to perform following operations:

1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 6/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

n=int(input("How many customers:"))


cust={}
for i in range(n):
print("Enter details of customer:",i+1)
cname=input("Enter name of customer:")
pn=int(input("Enter Phone number:"))
cust[cname]=pn
c=0
while c!=7:
print('''
1. Show record
2. Add new customer
3. Delete a customer
4. Search record
5. Update record
6. Sort record
7. Exit
''')
c=int(input("Enter your choice:"))
if c==1:
for i in cust:
print(i,":",cust[i])
elif c==2:
print("Enter details of new customer:")
cname=input("Enter name:")
pn=int(input("Enter phone number:"))
cust[cname]=pn
elif c==3:
nm=input("Enter name to be deleted:")
f=cust.pop(nm,-1)
if f!=-1:
print(f, " is deleted successfully.")
else:
print(f, " not found.")
elif c==4:
name=input("Enter Customer Name:")
if name in cust:
print(name, " found in the record.")
else:
print(name, " not found in the record.")
elif c==5:
cname=input("Enter Customer Name:")
pn=int(input("Enter phone number to modify:"))
cust[cname]=pn
elif c==6:
l=sorted(cust)
for i in l:
print(i,":",cust[i])
elif c==7:
break

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 7/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 8/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

[3] Write a python program to find the highest 2 values in the dictionary.

n=int(input("How many students:"))


std={}
for i in range(n):
print("Enter details of customer:",i+1)
sname=input("Enter name of student:")
per=int(input("Enter percentage:"))
std[sname]=per

s=sorted(std.values())
print("Top two values:",s[-1],s[-2])

Introduction to python modules


[1] Write a program to choose any 4 customers randomly for lucky winners out of 100 customers.

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 9/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

import random
c1=random.randint(1,100)
c2=random.randint(1,100)
c3=random.randint(1,100)
c4=random.randint(1,100)
print("Lucky winners are:",c1,c2,c3,c4)

[2] Write a menu-driven program to perform these operations by importing string module.

1. Display the ascii letters


2. Display the digits
3. Display Hexadedigits
4. Display Octdigits
5. Display Punctuation
6. Display the first letter of each word into capital by removing spaces

import string
ch=0
while ch!=7:
print('''
1. Display the ascii letters
2. Display the digits
3. Display Hexadedigits
4. Display Octaldigits
5. Display Punctuation
6. Display string in title case
7. Exit
''')
ch=int(input("Enter your choice:"))
if ch==1:
print(string.ascii_letters)
elif ch==2:
print(string.digits)
elif ch==3:
print(string.hexdigits)
elif ch==4:
print(string.octdigits)
elif ch==5:
print(string.punctuation)
elif ch==6:
s=input("Enter sentence:")
print(string.capwords(s))
elif ch==7:
break

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 10/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 11/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Follow below-given link to download the file:

 Practical File Computer Science Class 11

Watch this video for more understanding:

Class 11 Computer science Practical File annual practical exam 2022-23 | Computer Science Prac…
Prac…

Thank you for reading this. Follow below-given links for notes, QnA and Practicals.

 Computer Science Class 11

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 12/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

     

 Practical File Informatics Practices Class 11 Class 11 Practical Paper IP Term 1 Download PDF
Comprehensive Guide Free 

By tutorialaicsip

Related Post

A python program to check valid password


At TutorialAICSiP, we are dedicated to providing high-quality, easy-to-understand tutorials on a wide
range of CBSE subjects, focusing on Artificial Intelligence, Computer Science, Informatiocs Practices and
Information Technology. Join our community and take the next step toward ace your exams!

 Home

Class 11 computer science half yearly exam practical question paper


 About us

Comprehensive
 Privacy Policy Guide

 Diclaimer

 Terms & Conditions

 Contact Us

 200+ MCQs AI Class 10

 300+ MCQs IT Class 10

program to print a table of an entered number n computer science class 11


 100+ Most expected questions cs class 12

 100+ Most expected questions IP class 12

 200+ PYQs CS Class 12

 Sample Papers

Leave a Reply
Copyright & All Rights Reserved © 2025 TutorialAICSIP | Powered by TutorialAICSIP

You must be logged in to post a comment.

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 13/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Trending

Important Artificial Intelligence Class 9 Book Complete PDF 2022-23

CBSE Artificial Intelligence Class 10 Sample Paper – A Comprehensive Guide

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 14/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Important computer science class 12 viva voce questions

IT 402 Practical file Class 10 Best PDF Sample

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 15/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

IP project class 12 python with coding – Comprehensive Guide

Computer Science Class 11 Sample Papers Comprehensive Guide

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 16/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

5 Sets of Important Practical Question Paper Class 12 Computer Science

Answer Key Computer Science Class 12 Board Paper 2023 PDF Easy Complete Solutions

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 17/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Class 10 IT Viva Questions with complete solutions

Important QnA Working with functions Class 12

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 18/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

LATEST

Important PYQs Information Technology Class 10

Informatics Practices Class 11 Annual Exam Paper – A comprehensive Guide

Computer Science Class 11 Sample Papers for Annual Exam 2024-25 – A comprehensive guide

AI Class 9 Annual Exam Paper – A comprehensive guide

Comprehensive guide Computer Science Class 12 Practical Exam and Important tips

WHAT YOU MISSED

A python program to check valid password

Class 11 computer science half yearly exam practical question paper Comprehensive Guide

program to print a table of an entered number n computer science class 11

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 19/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Python program to print your favorite poem computer science class 11 Comprehensive guide

important class 11 python dictionary program accepts transaction details and displays balance

Class 11 Practical Python Program to add duplicate and unique items of a given list into 2 different lists

Important python program list manipulations computer science class 11

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 20/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Important Python program swap string first part second part CBSE class 11

Class 11 IP Term 2 Practical Paper 2022 – Comprehensive Guide

2 Sets solved Class 11 CS Practical Paper for Annual Exam – Comprehensive Guide

Practical File Informatics Practices Class 11 Comprehensive Guide

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 21/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Practical File Computer Science Class 11 – A comprehensive guide

Class 11 Practical Paper IP Term 1 Download PDF Free

Class 11 Term 1 IP Practical File – Important PDF

Important PDF Term 1 CS practical file class 11

Important 30 python list manipulation programs

Important Python Loop Programs for Class 11 Practical File

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 22/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

if-elif-else python exercises Class11

Practical file questions for Python programming fundamentals

Practical Getting started with python class 11 Comprehensive Guide

Rate our website

Name (required)

Email (required)

Please rate our website (required)

How could we improve? (required)

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 23/24
2/4/25, 7:54 PM Practical File Computer Science Class 11 - A Comprehensive Guide

Send Feedback

https://www.tutorialaicsip.com/xi-practicals/practical-file-computer-science-class-11/ 24/24

You might also like