Computer Science - Informatics Practices Class XI/XII Python List Solved Test Part 10
Q1. Write a program to input a number and count the occurrence of that number in the given list.
B =
[34,21,3,12,34,56,76,5,4,21,12,34]
Q2. Write a program to separate the character and numeric value from
a given list and store them in a separate list.
A = [1,’f’,2,’b’,3,4,’h’,j’,6,9,0,’k’]
Q3. What do you mean by sorting?
Q4. Name any two sorting techniques.
Q5. Write a program to create a list of 10 integers and sort the list
in increasing order using bubble sort.
Q6. Suppose total element in a list are 7, so how many times the
outer loop will be executed in bubble sort.
Q7. A = [23,45,21,78,43]
Write the order of the elements in the above list after first pass of
bubble sort (in ascending order).
Q8. Write any one application of bubble sort.
Good evening sir,Test are very informative and helpful please send its solution too.
ReplyDeleteThanks for your appreciation. In few tests, solutions are already added. For rest, I will add soon.
ReplyDelete