Skip to main content

Top 97 logical coding Question | for Freshers for getting a job in MNC Company | by er prince kumar

            Top 97 logical coding Question  for Freshers 


If you do this you will become good logical programmers
  1. Write a Java program to perform input/output of all basic data types.
  2. Write a Java program to enter two numbers and find their sum.
  3. Write a Java program to enter two numbers and perform all arithmetic operations.
  4. Write a Java program to enter the length and breadth of a rectangle and find its perimeter.
  5. Write a Java program to enter the length and breadth of a rectangle and find its area.
  6. Write a Java program to enter the radius of a circle and find its diameter, circumference, and area.
  7. Write a Java program to enter the length in centimeter and convert it into meter and kilometer.
  8. Write a Java program to enter the temperature in Celsius and convert it into Fahrenheit.
  9. Write a Java program to enter the temperature in Fahrenheit and convert to Celsius
  10. Write a Java program to convert days into years, weeks and days.
  11. Write a Java program to find a power of any number x ^ y.
  12. Write a Java program to enter any number and calculate its square root.
  13. Write a Java program to enter two angles of a triangle and find the third angle.
  14. Write a Java program to enter the base and height of a triangle and find its area.
  15. Write a Java program to calculate the area of an equilateral triangle.
  16. Write a Java program to enter marks of five subjects and calculate total, average, and percentage.
  17. Write a Java program to enter P, T, R and calculate Simple Interest.
  18. Write a Java program to enter P, T, R and calculate Compound Interest.
  19. Write a Java program to check the Least Significant Bit (LSB) of a number is set or not.
  20. Write a Java program to check Most Significant Bit (MSB) of a number is set or not.
  21. Write a Java program to get an nth bit of a number.
  22. Write a Java program to set an nth bit of a number.
  23. Write a Java program to clear nth bit of a number.
  24. Write a Java program to toggle nth bit of a number.
  25. Write a Java program to get the highest set bit of a number.
  26. Write a Java program to get the lowest set bit of a number.
  27. Write a Java program to count trailing zeros in a binary number.
  28. Write a Java program to count leading zeros in a binary number.
  29. Write a Java program to flip bits of a binary number using a bitwise operator.
  30. Write a Java program to count total zeros and ones in a binary number.
  31. Write a Java program to rotate bits of a given number.
  32. Write a Java program to convert decimal to binary number system using a bitwise operator.
  33. Write a Java program to swap two numbers using a bitwise operator.
  34. Write a Java program to check whether a number is even or odd using a bitwise operator.
  35. Write a Java program to find the maximum between two numbers using a conditional operator.
  36. Write a Java program to find a maximum between three numbers using a conditional operator.
  37. Write a Java program to check whether a number is even or odd using a conditional operator.
  38. Write a Java program to check whether the year is a leap year or not using a conditional operator.
  39. Write a Java program to check whether the character is an alphabet or not using a conditional operator.
  40. Write a Java program to find the maximum between two numbers.
  41. Write a Java program to find maximum between three numbers.
  42. Write a Java program to check whether a number is negative, positive or zero.
  43. Write a Java program to check whether a number is divisible by 5 and 11 or not.
  44. Write a Java program to check whether a number is even or odd.
  45. Write a Java program to check whether a year is a leap year or not.
  46. List of array and matrix programming exercises
  47. Write a Java program to read and print elements of an array. - using recursion.
  48. Write a Java program to print all negative elements in an array.
  49. Write a Java program to find the sum of all array elements. - using recursion.
  50. Write a Java program to find maximum and minimum elements in an array. - using recursion.
  51. Write a Java program to find the second largest element in an array.
  52. Write a Java program to count the total number of even and odd elements in an array.
  53. Write a Java program to count the total number of negative elements in an array.
  54. Write a Java program to copy all elements from an array to another array.
  55. Write a Java program to insert an element in an array.
  56. Write a Java program to delete an element from an array at a specified position.
  57. Write a Java program to count the frequency of each element in an array.
  58. Write a Java program to print all unique elements in the array.
  59. Write a Java program to count a total number of duplicate elements in an array.
  60. Write a Java program to delete all duplicate elements from an array.
  61. Write a Java program to merge two arrays to the third array.
  62. Write a Java program to find the reverse of an array.
  63. Write a Java program to put even and odd elements of an array in two separate arrays.
  64. Write a Java program to search an element in an array.
  65. Write a Java program to sort array elements in ascending or descending order.
  66. Write a Java program to sort even and odd elements of the array separately.
  67. Write a Java program to the left rotate an array.
  68. Write a Java program to the right rotates an array.
  69. List of matrix programming exercises
  70. Write a Java program to add two matrices.
  71. Write a Java program to subtract two matrices.
  72. Write a Java program to perform Scalar matrix multiplication.
  73. Write a Java program to multiply two matrices.
  74. Write a Java program to check whether two matrices are equal or not.
  75. Write a Java program to find the sum of the main diagonal elements of a matrix.
  76. Write a Java program to find the sum of minor diagonal elements of a matrix.
  77. Write a Java program to find the sum of each row and column of a matrix.
  78. Write a Java program to interchange diagonals of a matrix.
  79. Write a Java program to find an upper triangular matrix.
  80. Write a Java program to find a lower triangular matrix.
  81. Write a Java program to find the sum of an upper triangular matrix.
  82. Write a Java program to find the sum of a lower triangular matrix.
  83. Write a Java program to find the transpose of a matrix.
  84. Write a Java program to find the determinant of a matrix.
  85. Write a Java program to check the Identity matrix.
  86. Write a Java program to check the Sparse matrix.
  87. Write a Java program to check the Symmetric matrix.
  88. List of string programming exercises
  89. Write a Java program to find the length of a string.
  90. Write a Java program to copy one string to another string.
  91. Write a Java program to concatenate two strings.
  92. Write a Java program to compare two strings.
  93. Write a Java program to convert lowercase string to uppercase.
  94. Write a Java program to convert uppercase string to lowercase.
  95. Write a Java program to toggle the case of each character of a string.
  96.  Write a Java program to find the total number of alphabets, digits or special characters in a string.
  97. Write a Java program to count the total number of vowels and consonants in a string.



Comments

Popular posts from this blog

Difference between Traditional programming languages and object-oriented programming languages..?

 What are Traditional programming languages and object-oriented programming languages..? or Difference between Traditional programming language  and object-oriented programming language Here....what is Traditional programming language and object-oriented programming language..? or Difference between Traditional programming language to help you make the new concepts, you are learning            as a beginner to  become a Master in any programming it's really very most important: Traditional programming language 1.Traditional computer programming has been around for more than a      century, with the first known computer program dating back to the mid-1800s.  2.Traditional Programming refers to any manually created program     that uses input data and runs on a computer to produce the output. 3.But for decades now, an advanced type of programming has revolutionized     business, particularly in ...

Top 50 HTML Interview Question (Most popular in the interview) | important html interview question

😀  Hello everyone. As you all know that to build a software project there are 3 Major categories to develop.😂 1.Front End  2.Middle Ware 3.Back End To crack the interview in front-end technology am going to give top FAQs which take place in your interview.so... Let's start now. TOPMOST FAQ's IN HTML   The first question raised by the interviewer is 1)What is HTML? HTML is a HyperText Markup Language. It is used for the creation and display of attractive, interactive, and dynamic web pages. By Tim Berners Lee's father of web environment. 2)What is the importance of Doctype in HTML? ​It is written at the top of the HTML document.​It is not a tag.​It tells the browser about the HTML version. 3)Define a TAG. ​A Tag or Element is said to be the text placed between Left angular brace " <" and right angular brace " >".   Syntax :   < .......... >    :     < html>   Do you know there are two types of ...

Miner Project | Major project for college Students | B.E, MCA, B-tech Student project in college

                        Miner Project | Major project college  Student for majors and miner project to submit the college and university. we can submit this project to final year students and third-year also?     Download project