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

Computer Science Practical File

This document contains a list of 38 programming problems or exercises related to concepts like input/output, arithmetic operations, loops, patterns, and other common programming challenges. The problems are numbered and include a brief description of the required task and a space for the teacher's signature upon completion. Some example problems include writing a program to calculate the sum of two input numbers, finding the average of three numbers, checking if a year is a leap year, and generating the Fibonacci series up to a given number of terms.
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)
65 views

Computer Science Practical File

This document contains a list of 38 programming problems or exercises related to concepts like input/output, arithmetic operations, loops, patterns, and other common programming challenges. The problems are numbered and include a brief description of the required task and a space for the teacher's signature upon completion. Some example problems include writing a program to calculate the sum of two input numbers, finding the average of three numbers, checking if a year is a leap year, and generating the Fibonacci series up to a given number of terms.
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/ 42

NAME-HARSH VERMA

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

2 Swap 2 numbers using a third value

3 Find the average of 3 numbers


4 Find area of circle
5 Input a proverb and print it
6 Calculate in how many days would
A,B,C,D take to do the job alone
7 Check whether it is a leap year or not
8 Calculate amount payable after simple
interest
9 Calculate the area and its perimeter
10 Calculate sphere’s volume
11 Print string equal to its length
12 Print mean, median and mode
13 Working of all arithmetic operator
14 Find the area of rectangle
15 Conversion of Fahrenheit to Celsius
16 Reverse of a number
17 Height – Conversion of centimetres to
feet and inches
18 Find simple interest
19 Reverse number while using a loop
20 Find square root of a number
21 Generate a random number between 1
to 10
22 Find ASCII value of a character
23 Check whether a number is even or odd
24 Print the sum of a series
25 Find largest numbers among three
numbers
26 Print the sum of a series
27 First 10 natural numbers using loop
28 Sum of all numbers from 1 to a given
number
29 Print multiplication table of 18
30 Find factorial of a given number
31 Calculate cube of all numbers from 1 to
given number
32 Find the sum of the series upto n terms
33 Print the pattern
34 Count the total numbers of digits in a
number
35 Print list of reverse order using a loop
36 Display numbers using loop
37 Use else block to display a message ‘It’s
too big – I’m done!’ after successful
execution of for loop
38 Display all prime numbers within a
range
39 Fibonnaci series upto n-th terms
Program to obtain two numbers
and print their sum.

Answer –

Output –
Write a program to swap two numbers
using a third value.

Answer –

Output –
Write a program to find the average of
three numbers.

Answer –

Output –
Write a program of area of circle.

Answer –

Output –
Write a program to input a proverb and
print it.

Answer –

Output –

Write a program to calculate in how many


days a work will be completed by four
person A , B , C and D together A,B,C,D
take days w days , y days and z days
respectively to do the job alone.

Answer –

Output –

Write a program to take year as input and


check whether it’s a leap year or not.

Answer –
Output –

Write a program to calculate amount


payable after simple interest.

Answer –
Output –

Write a program to read base/length(l),


width(w) and height(h) of a parallelogram
and calculate its area and perimeter.

Answer –
Output –

Write a program to input the radius of a


sphere and calculate its volume.

Answer –
Output –

Write a program that inputs a string


and then prints it equal to number of
its length.

Answer –
Output –

Write a program to generate 6 random


numbers and then print their mean,
median and mode.

Answer –
Output –

Write a program to show working of all


arithmetic operator.

Answer –
Output –

Write a program to show Area of rectangle

Answer –
Output –

Write a program to show fahrenheit to


celsius

Answer –
Output –

Write a program to show reverse of a


number

Answer –
Output –

Write a program to show convert height, in


centimeters, convert it in feet and inches.

Answer –
Output –

Write a program to show input principle,


rate, time to find simple interest.

Answer –
Answer –

Reverse a number while using a loop

Answer –
Output –

Write a program to show enter a number


find the square root of a number

Answer –
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 –

Write a program to display all prime


numbers within a range

Answer –
Output –

Display Fibonacci series up to n-th terms

Answer –
Output –

You might also like