HomeLanguages

List of programs to practise with different programming languages

List of programs to practise with different programming languages
Like Tweet Pin it Share Share Email

While most of the people show interest to learn programming languages, they easily tend to forget whatever is learnt, the main reason behind this is lack of practise. In this article we would like to introduce to you a huge list of programs that you can use for practising the programming languages.

Though the code snippets are enclosed here, we would recommend you to make truthful try, give yourself considerable amount of time to write the program and as a last attempt go through the code snippets enclosed & try to understand the code written. The code snippets included here are not the only ways to write the program, once you give a read and understand, try to think in different other ways to write code for the same programs, this will enable you to build different thought processes in yourself, which is quite useful for you in future.

You may observe that code snippets are not available, we would be adding them periodically, keeping this article open so that the readers can get started with practising on their own.

List of programs to practise at different levels of coding

 

Beginner Level Programs to practise

S.No Program Details Code Snippet
1.  Write a program to print Hello World!  JavaPython
2.  Write a program to print first n numbers.   Java | Python
3.  Write a program to print first n even numbers.   Java | Python
4.  Write a program to print first n prime numbers.   Java | Python
5.  Write a program to print first n Fibonacci numbers.   Java | Python
6.  Write a program to swap two numbers.   Java | Python
7.  Write a program to split a given string with spaces and print the number of words in the given string.   Java | Python
8.  Write a program to reverse a given number and print it .   Java | Python
9.  Write a program to reverse a given string and print it .   Java | Python
10.  Write a program to concatenate two strings and print it .   Java | Python

Intermediate Level Programs to practise

S.No Program Details Code Snippet
1.  Write a program to print the sum of left hand side ( LHS ) numbers & right hand side ( RHS ) numbers for a given array of numbers, and in case the the number of elements in the array are odd, you need to print that the input is invalid.   Java | Python
2.  Write a program to sort a given array of numbers.  Java | Python   Java | Python
3. Write a program to find the second largest number in an array of numbers.  Java | Python   Java | Python
4.  Write a program to work with properties file. And read and write values to properties.   Java | Python

Advanced Level programs to practise

S.No Program Details Code Snippet
1.  Write a program to print number of words and sentences in a given file.   Java | Python
2.  Write a program to connect to MY SQL Database and get the row count of a table you wish.   Java | Python
3.  Write a program to replace all words starting with any of the vowels with a word “VowelFound” in a given file .   Java | Python
4.  Write a program to read content from an excel file and display the number of rows filled with data.   Java | Python
5.  Write a program to connect to MY SQL Database and get the row count of a table you wish.   Java | Python

 

Please feel free to ask for more programs that you want to include, we shall try our best to include them in here, which could be helpful for many others.  Also, request you to share any of your queries in form of comments, we would get back to you with responses at the earliest.

Happy Practising 🙂 till then.

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *