Professional Documents
Culture Documents
Computer Science Practical File
Computer Science Practical File
CLASS-11COMMERCE
ROLL NO-7
SECTION-C
SUBJECT-COMPUTER
SCIENCE
SUBMITED- MS
SUCHITA MITTAL
INDEX
S. PRACTICAL TEACHER’S
NO. SIGN
1 Obtain 2 numbers and print their sum
Answer –
Output –
Write a program to swap two numbers
using a third value.
Answer –
Output –
Answer –
Output –
Answer –
Output –
Answer –
Output –
Output –
Answer –
Output –
Answer –
Output –
Answer –
Output –
Answer –
Output –
Output –
Answer –
Output –
Answer –
Output –
Answer –
Output –
Output –
Output –
Output –
Answer –
Output –
Output –
Write a program to show python program
to generate a random number between 1 to
10.
Answer –
Output –
Write a program to find the ASCII value of
a character.
Answer –
Output –
Write a program to check a number Even
Odd
Answer –
Output –
Write a program to show eligible to vote or
not (Enter age)
Answer –
Output –
Write a program to enter 3 numbers and
find the largest among three numbers
Answer –
Output –
Write a program in Python to print the
sum of the following series:
4s=1+x+x2+x3+…+xn
Answer –
Output –
Print first 10 natural number using while
loop
Answer –
Output –
Calculate the sum of all numbers from 1 to
a given number
Answer –
Output –
Write a program to print multiplication
table of a number, say 18
Answer –
Output –
Find the factorial of a given number.
Answer –
Output –
Calculate the cube of all numbers from 1
to given number
Answer –
Output –
Find the sum of the series upto n terms
Answer –
Output –
Print the following patterns:
1
12
123
Answer –
Output –
Count the total numbers of digits in a
number
Answer –
Output –
Print list in reverse order using a loop
Answer –
Output –
Display numbers using for a loop
Answer –
Output –
Use else block to display a message “Too
big – I’m giving up!” after successful
execution for a loop
Answer –
Output –
Answer –
Output –
Answer –
Output –