Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
5 views

PLT_Algorithmic_Assignment-Questions

The document is a question bank containing a list of programming tasks and challenges primarily focused on string manipulation, array operations, and basic algorithms in Java. It includes tasks such as checking for palindromes, finding prime numbers, and sorting arrays without built-in methods. The questions are designed to test various programming concepts and problem-solving skills.

Uploaded by

kuldeepmahto1216
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

PLT_Algorithmic_Assignment-Questions

The document is a question bank containing a list of programming tasks and challenges primarily focused on string manipulation, array operations, and basic algorithms in Java. It includes tasks such as checking for palindromes, finding prime numbers, and sorting arrays without built-in methods. The questions are designed to test various programming concepts and problem-solving skills.

Uploaded by

kuldeepmahto1216
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Question Bank

1. Check Two String which are reverse of each other or not.


2. Find the Smallest Sum of consecutive Number from given Array.
3. Find the Power without using math.pow function.
4. Find the negative Power without using math.pow function.Reverse the String with and without
recursion
5. Find the unique Character in the String
6. Print the repeated characters in a String
7. How many times a particular character is repeated in a string
8. Count the no of vowels and constants in a string
9. Convert a String into integer?
10. Write a program to find the difference between equals and ==
11. How to remove characters from the first String which are present in the second String?
12. How to print all permutation of a String?
13. Check whether the string is Anagram or not?
14. WAP to read name (program) and print letters in ascending order (agmoprr)
15. WAP to read a number (28156437) and it should print digits order wise(12345678)
16. Take 10 integers from keyboard using loop and print their average value on the screen.
17. Write a program that reads a set of integers, and then prints the sum of the even and odd
integers.
18. Determine and print the number of times the character ‘a’ appears in the input entered by the
user.
19. Java program to check leap year
20. Java Program to Find the Largest and Smallest Numbers From an Array of Random Numbers
21. Printing only not-repeated digits in the array.
22. Printing Second largest no. in the array.
23. Sorting the array without using built in sort methods. 4. Copy all the elements from one array to
another array.
24. Printing Odd and Even no. from the array.
25. Merging 2 array into one array.

26. Finding Prime Factors of a number


27. Find Prime number within a given range or between two numbers.
28. Find Strong number
29. Find Perfect number
30. Check Armstrong number.
31. Armstrong number in given range.
32. Calculate the number of digits in an integer.
33. Find Smallest and largest number from Array.
34. Find Number of even and odd elements from Array.
35. Rotation of elements of array-left and right.

36. Find length of string without using function.


37. Remove Spaces from string.
38. Check if given string is Palindrome or not.
39. Capitalize the first and last character of each word of String.
40. Find a greatest pair from Array.
41. Write a program in Java to display the pattern like right angle triangle with a number.
42. Write a Java program to check whether the first two characters present at the end
of a given string.
43. Write a Java program that keeps a number from the user and generates an integer between 1
and 7 and displays the name of the weekday.
44. Write a Java program that checks if 2 array contains the same element.

45. How do you shuffle an array in Java.


46. Find the array pairs whose sum is equal to the given number.
47. Write a Java program to divide a string in n equal parts.
48. Write a Java program to count and print all the duplicates in the input string.
49. Write a Java program to check whether a given string starts with the contents of another string.
50. WAP to print Diamond pattern.
51. WAP to print Pyramid of Character.
52. WAP to print Pyramid of Number.

53.

54.

55.

You might also like