0% found this document useful (0 votes)
26 views4 pages

Practice Problems

The document provides a list of 18 practice problems for advanced numeric problems and 14 practice problems using lists. It discusses doing the problems in Python and being available to provide solutions in other languages if needed. It also explains a lack of timely responses due to an internet connection issue.

Uploaded by

yeshwanth_r
Copyright
© Attribution Non-Commercial (BY-NC)
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)
26 views4 pages

Practice Problems

The document provides a list of 18 practice problems for advanced numeric problems and 14 practice problems using lists. It discusses doing the problems in Python and being available to provide solutions in other languages if needed. It also explains a lack of timely responses due to an internet connection issue.

Uploaded by

yeshwanth_r
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 4

Practice Problems

Advanced Numeric Problems:-


1. To print all factors of a given number which are prime

2. To print all prime numbers in the fibonacci series below a given number.

3. To print 5 random prime numbers

4. To find LCM and HCF of a 2 given numbers

5. To check whether a number is divisible by 2 or not (without dividing by 2) (Note:


Contact Maths mentors for logic)

6. To check whether a number is divisible by 3 or not (without dividing by 3) (Note:


Contact Maths mentors for logic)

7. To Calculate the batting average of a player. Take the batting scores of last 10
matches and the number of not outs.

8. To print the highest score of a player given the last 5 scores. (Note:Dont use list)

9. To print the biggest and smallest of 10 given numbers. (Note:Dont use list)

10.To print the number of digits of a given number.

11. To print a particular digit in a given number (Input: number and place of digit)

12. To print a series of numbers with increments of 9 until a given number.

13. To print the largest and smallest of the 3 given numbers

14. Calulcate the compound interest of an amount p with rate r% for n years
compounded annually.

15. Calculate the grades of a students, given 5 subjects,


maths,english,computers,economics and accounts. Grade A: More than 80; Grade
B:70-79; Grade C:60-69 Grade F: less than 60

16. To check whether a number is a palindrome as well as prime

17. To print a series of numbers as follows: 1,4,7,10,13,16,19.....


18.To print a series of numbers as follows: 1,2,4,8,16,32,64.....
19.

Using Lists:-
1. Read elements in an List and print the elements in List in reverse order.

2. To print the fibonacci series of a given number in reverse order.(Note: Use List)

3. Generate n number of random numbers and store in an List.

4. Generate n number of random numbers, store in an List and print the even
numbers.

5. To print the highest score of a player given the last 5 scores.(Note: Use List)

6. To print the biggest and smallest of 10 given numbers.(Note: Use List)

7. To sort numbers given in an List (Use your own logic)

8. To search for a particular element in n given numbers.

9. To swap the numbers of 2 Lists. Read the values in 2 Lists and swap the contents.

10. Read elements in an List and add the values of alternative positions (1,3,5...) and
print the sum.

11. Read elements in an List and multiply each value with 5 and store the result in a
new List.

12. Read elements in 2 Lists of size n and add the 1st element of first List with last
element of
second List, 2nd element of first List to last-1 element of second List and so on and
store
the result in a new List.

13. Read elements in an List and print the positions of odd numbers in the List.

14.Read elements in an List and print the prime numbers and their positions in the
List.
These are the models given by our mentors for us to practice.
I want some more models to practice .
Now here we are doing these programs in python language.
If you have questions in any other language kindly send them.

We don't have INTERNET connection since a couple of days. That's why I am


replying lately.

Thank you,

Yours kindly,
A.MadhaviLatha.

You might also like