Make Programs - (QBasic)

    Questions for programming / Programming Practice / Questions List (Qbasic Code)
  1. To find the sum of any three numbers. (View Code)
  2. To check a triangle whether it is right angled or not when angles are given. (View Code
  3. A program to check a triangle whether it is right angled or not when sides are given. (View Code)
  4. To find greatest / largest number among three numbers. (View Code)
  5. To find out the smallest number among any three numbers. (View Code
  6. To check entered character is vowel or consonant. (View Code)
  7. To draw a circle. (View Code)  
  8. To find out the area of rectangle. (View Code)
  9. To calculate the area of a circle. (View Code)
  10. To calculate area and circumference of a circle. (View Code)
  11. To find the volume and area of a box. [(v = l*b*h) and a = 2*(l*b+b*h+h*l)] (View Code)
  12. To find simple interest for a given principle, time and rate of interest. (View Code)
  13. To convert temperature given in Centigrade into Fahrenheit. [C = (F – 32) * (5 / 9)] (View Code)
  14. To convert temperature given in Fahrenheit into Centigrade. [ F = C * (9 / 5) + 32] (View Code)
  15. To find volume cylinder. (View code)
  16. To find volume hemisphere. (View Code) 
  17. To find the surface area of a sphere. [A = 4 *pie*r^2] (View Code)
  18. To input a number and check whether the number is divisible by 4 or not. (View Code)
  19. To check the given number is divisible by 3 & 5 or not. (View Code)
  20. To find the cost of painting the four walls of a room. [A = 2*(l + b) * h] (View Code)
  21. To find the third angle of a triangle when two angles are given. (View Code)
  22. To display area of a triangle. (View Code)
  23. To find the velocity of an object. (v = u + at). (View Code)
  24. To input the sides of triangle and to check whether a triangle can be formed or not. (View Code)
  25. To input number in inches and convert it into feet and inches. (View Code)
  26. To determine whether a given number is prime or not. (View Code)
  27. To display the ASCII value of the character entered. (View Code)
  28. To check the given number is odd or even. (View Code)
  29. To check the given number is odd or even using SELECT CASE. (View Code
  30. To find the grade of a student using SELECT CASE. (View Code)
  31. To display the reverse of a string. (View Code)
  32. To check the given word palindrome or not. (View Code
  33. To check the given number palindrome or not.  (View Code)
  34. To find the HCF of two numbers given. (View Code)
  35. To find the LCM of two numbers given. (View Code)
  36. To find HCF and LCM of any two numbers (View Code)
  37. To sort numbers in ascending order (View Code)
  38. To check whether the entered number is Armstrong or not. (View Code)
  39. To display Armstrong numbers from 1 to 500. (View Code)
  40. To convert decimal number into its equivalent binary number (View Code
  41. To convert binary number into its equivalent decimal number (View Code)
  42. To convert decimal number into its equivalent octal number (View Code)
  43. To convert decimal number into its equivalent hexadecimal number. (View Code)
  44. To convert hexadecimal number into its equivalent decimal number. (View Code)
  45. To convert octal number into its equivalent decimal number. (View Code)
  46. To input a number and print the multiplication table of the same number upto 10th terms. (View Code)
  47. To check the given letter is uppercase or lowercase. (View Code
  48. To print input string in alternate capital letters. (if user inputs 'COMPUTER' then the output should be 'CoMpUtEr') (View Code)
  49. To input five numbers into an array and find out the sum of all the numbers. (View Code)
  50. To input 10 numbers into an integer array and display the number of odd and even. (View Code)
  51. To find the product of the individual digits of the given number. (View Code
  52. To find the sum of the individual digits of the given number. (View Code)
  53. To display the first 100 prime numbers. (View Code)
  54. To check entered character is vowel or consonant. (View Code)
  55. To enter a string and count total number of vowels. (View Code
  56. To count the number of words in given string. (View Code)
  57. To remove the vowels from the word and display the word without the vowels. (View Code)
  58. To input age of 5 students and find number of students whose age is less than 15. (View Code
  59. To input any 10 numbers and find their sum. (View Code)
  60. To input any five numbers into an array and find the sum of even numbers only. (View Code)
  61. To find the sum of series from 1 to N. (View Code)
  62. To find the sum of N numbers entered. (View Code
  63. To find the greatest number among N numbers entered. (View Code
  64. To find the cube of all the digits of the given number. (View Code)
  65. To find the factors of given number. (View Code)
  66. To find prime factors of a number input. (View Code)
  67. To find the factorial numbers of given number. (View Code)
  68. To check whether the given number is perfect square or not. (View Code)
  69. To check the entered character is alphabet or not. (View Code)
  70. To check the given input is alphabet or number of special character. (View Code)
  71. To input a number and prints its square if it is even otherwise print its cube. (View Code)
  72. To input radius of a circle and allows user to choose to find the area or perimeter of the circle. (View Code)
  73. To accept 10 different numbers with array variable and print the greatest number. (View Code)
  74. find the sum of 12 terms of the series 7+11+15+...hence, the first term a=7, common difference d=4 and number of terms n=12. (View Code)
  75. To input a word and count total number of alphabet 'A' in the input word. (View Code)
  76. A program to count repetition of a character in given string. (View Code)
  77. To classify the triangles. (i.e. equilateral, isosceles, or scalene). (View Code)
  78. To find the product of first n natural numbers. (View Code)
  79. To find the roots of a quadratic equation when the value of a, b and c are given. (ax2+bx+c=0). (View Code)
  80. To read ten numbers using single dimension and find the sum of odd and even numbers separately.
  81. To input any three different numbers in separate lines and find the highest by using array.
  82. To find the greatest number from given numbers using DIM method. 
  83. To find the numbers less than or equal to 15 and above 15 as user enters the the numbers from the keyboard.
  84. To find the numbers divisible by 3 & 5 from the 10 numbers provided.
  85. To find number of a data divisible by 3 and 5 from the given data series. (DATA 5,7,9,13,15,21,35,30)
  86. To read 5 different numbers and find out even or odd numbers.
  87. To input ten numbers and print them in reserve order.
  88. To display the unique digit integers between 100 and 150.
  89. A worker is paid $ 1 on his first day of employment. If his salary is doubled in every second day, in how many days will he earn about $1000 (assume that he does not spend money).
  90. To input different 15 numbers and display the numbers divisible by 5.
  91. To input a word and count total number of alphabet 'A' in the input word.
  92. To convert seconds to hour, minutes and seconds.
  93.  To enter any sentence and count total number of vowel, consonant and space.
  94. A government pays its employees allowance at the rate of 5% of the basic salary. Make a program to calculate the allowance when user inputs the basic salary.
  95. A program to check whether a given year is leap year. (The year number divisible by 4 or divisible by 400 is a leap year. The year number divisible by 4 and 100 but not by 400 is not a leap year)
  96. To find number of a data divisible by 3 and 5 from the given data series. (DATA 5,7,9,13,15,21,35,30)
  97. To read 5 different numbers and find out even or odd numbers.
  98. To find the total and average marks of 10 students for 7 subjects and print the result.
See Also... Make Programs - Series / Patterns
Back To Top

facebook main

counter

Powered by Blogger.