[go: up one dir, main page]

0% found this document useful (0 votes)
3 views21 pages

Khushi Sec

Uploaded by

Harshul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views21 pages

Khushi Sec

Uploaded by

Harshul
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

SEC PRACTICAL

1) WAP to check entered character is vowel or consonant.

CODE:

2) WAP to check a year is leap year or not.

CODE:
3) WAP to evaluate the student performance based on %age of marks.

CODE:

4) WAP to print the natural numbers up to N

CODE:
5) WAP to print odd numbers up to n

CODE:

6) WAP to print 1, 2, 4, 8, 16, 32, … 2^n


CODE:

7) WAP to check whether a number is prime or not.

CODE:

8) WAP to calculate sum of natural numbers upto N.


CODE:

9) WAP to print all characters of a given string and count number of vowels.

CODE:

10) WAP to reverse a string and to replace part of string with another string.
CODE:

11) WAP to print unique characters from a string.

CODE:

12) WAP to find average of marks in a list.


CODE:

13) WAP to check whether the student’s name is there in the class list.

CODE:
14) WAP that takes a list of lists as an input from user, where each sub-list comprise subject name and
corresponding marks. It should display sum total of marks.

CODE:

15) WAP to determine number of students who have obtained distinction (>=75).

CODE:
16) WAP that takes a list as an input and removes all occurrences of a particular value.

CODE:

17) WAP to delete name and corresponding roll number of student using lists.

CODE:
18) WAP to arrange the elements in a list in ascending order and then reverse the order of the elements.

CODE:

19) WAP to remove all duplicates from a list.

CODE:
20) WAP to determine if a specified item is present in a tuple.

CODE:

21) WAP to show tuple packing, unpacking, joining and replication.

CODE:
22) WAP to create a dictionary which has record of student information: {Admission No ,Roll No, Name,
Marks}. Display information on the basis of <admission no>.

CODE:

23) WAP which takes input from user for shape for which area to be calculated and then calculates area
of circle, rectangle or square using user-defined functions.

CODE:
24) WAP to return Multiple Values from a function.

CODE:

25) WAP to add N natural numbers using recursion.

CODE:
26) WAP to generate N Fibonacci numbers using recursion.

CODE:

27) WAP to find time of execution of code using numpy.

CODE:
28) WAP to store marks scored by students using numpy.

CODE:

29) WAP to create numpy array from list of lists.

CODE:
30) WAP to create 1D/2D array of zeros and ones.

CODE:

31) WAP to generate random integers within specified range.

CODE:
32) WAP to show indexing and slicing in 2D array.

CODE:

33) WAP to draw a line from position (0,0) to position (6,250).

CODE:
34) WAP to draw a line from position (1, 3) to (2, 8), then to (6, 1), then to position (8, 10).

CODE:

35) WAP to display Multiple Plots with Titles and Supertitle.

CODE:
36) WAP to Display Histogram, Bar and Scatter type of graphs.

CODE:

37) Write a menu driven program to calculate area of circle, rectangle, square using if-elif-else.

CODE:
38) WAP to count number of vowels using sets in a string.

CODE:

39) WAP to read a list of N integers (positive and negative) and create two new lists one having all
positive numbers and the other having all negative numbers from the given list. Print all three lists.
CODE:

40) WAP to create a list of tuples from given list having number and its cube in each tuple.

CODE:

You might also like