Computer Science - Informatics Practices Class XI/XII Python List Solved Test Part 10

 

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.

2 comments:

  1. Good evening sir,Test are very informative and helpful please send its solution too.

    ReplyDelete
  2. Thanks for your appreciation. In few tests, solutions are already added. For rest, I will add soon.

    ReplyDelete

Most Recently Published

File Handling Test 6

 File Handling Test 6 Q1 . Do we need to use the close() function when we use 'with' statement to open a file? Q2. Which mode you wi...

CS - IP Assignment/Worksheet