CS-PRACTICALS LIST -1- FOR XIB
List
of Programs for Practical : 2012-13
Subject:
Computer Science (083) Class: XI
1. Write a program to find the value of “m” to the
power “n”.
2. Write a program to print the mathematical table
of number 1 to 10.
3. Write a program to find the factorial value of a
number entered by the user.
4. Write a program to check whether the number is
prime or not.
5. Write a program to find the sum of first “n
“natural numbers.
6. Write a program to find the minimum and maximum
value from an array of size 10.
7. Write a program to print the given figure (make
a general prog. for any no. of rows)
*
* *
* * *
* * * *
* * * * *
8. Write a program to print
the following pattern:
1
2 2
3 3 3
4 4 4 4
9. Write a program to print
the following pattern:
1
2
2
3 3
3 3
4 4 4
4 4 4
10. Write a program to print the reverse of a
string.
11. Write a program to display the name of the
month depends upon the number
(between 1-12) be enter by the user.
12. Write a program to print the Fibonacci series
of specified terms (0 1 1 2 3 5 ………)
13. Write a program to check whether a entered year
is leap year or not.
14. Write a program to check whether a character is
alphabet.
15. Write a program that reads a string and
converts it to uppercase.
16. Write a program to find sum
and average of n natural numbers, odd numbers and even
numbers.
17. Write a program to arrange the array elements
in ascending order.
18. Write a program to convert a decimal number
into binary number.
19. Write a program to find the product of two
matrices.
20. Write a program to
search a specified element from an array.
21. Write a program
to check whether a number is palindrome or not.
22. Write a program for call by value and
call by reference.
23. Write
a program to find the sum of left diagonal of a 3x3 matrix.
24. Write a program to print sum of digits of entered number.(for
example 125=1+2+5=8).
25. Write a program to convert a decimal number into binary number.
26. Write a method that accepts two parameters a and b and interchange
their values without using temporary
variable.
27. Write a method pow(a, b) to calculate the
value of a raised to the power b(botha and b are integers).
28.Write a program to display Bar chart of a
statistical data .
29.Write a menu based program to perform
ADD,SUBTRACT,MULIPLY,DIVISION of two
given numbers.
30.Write a prog. To display Geometric series and Arithmetic series having
a given initial value and a factor to add/multiply.