Make Programs - (QBasic)
Questions for programming / Programming Practice / Questions List (Qbasic Code)
- To find the sum of any three numbers. (View Code)
- To check a triangle whether it is right angled or not when angles are given. (View Code)
- A program to check a triangle whether it is right angled or not when sides are given. (View Code)
- To find greatest / largest number among three numbers. (View Code)
- To find out the smallest number among any three numbers. (View Code)
- To check entered character is vowel or consonant. (View Code)
- To draw a circle. (View Code)
- To find out the area of rectangle. (View Code)
- To calculate the area of a circle. (View Code)
- To calculate area and circumference of a circle. (View Code)
- To find the volume and area of a box. [(v = l*b*h) and a = 2*(l*b+b*h+h*l)] (View Code)
- To find simple interest for a given principle, time and rate of interest. (View Code)
- To convert temperature given in Centigrade into Fahrenheit. [C = (F – 32) * (5 / 9)] (View Code)
- To convert temperature given in Fahrenheit into Centigrade. [ F = C * (9 / 5) + 32] (View Code)
- To find volume cylinder. (View code)
- To find volume hemisphere. (View Code)
- To find the surface area of a sphere. [A = 4 *pie*r^2] (View Code)
- To input a number and check whether the number is divisible by 4 or not. (View Code)
- To check the given number is divisible by 3 & 5 or not. (View Code)
- To find the cost of painting the four walls of a room. [A = 2*(l + b) * h] (View Code)
- To find the third angle of a triangle when two angles are given. (View Code)
- To display area of a triangle. (View Code)
- To find the velocity of an object. (v = u + at). (View Code)
- To input the sides of triangle and to check whether a triangle can be formed or not. (View Code)
- To input number in inches and convert it into feet and inches. (View Code)
- To determine whether a given number is prime or not. (View Code)
- To display the ASCII value of the character entered. (View Code)
- To check the given number is odd or even. (View Code)
- To check the given number is odd or even using SELECT CASE. (View Code)
- To find the grade of a student using SELECT CASE. (View Code)
- To display the reverse of a string. (View Code)
- To check the given word palindrome or not. (View Code)
- To check the given number palindrome or not. (View Code)
- To find the HCF of two numbers given. (View Code)
- To find the LCM of two numbers given. (View Code)
- To find HCF and LCM of any two numbers (View Code)
- To sort numbers in ascending order (View Code)
- To check whether the entered number is Armstrong or not. (View Code)
- To display Armstrong numbers from 1 to 500. (View Code)
- To convert decimal number into its equivalent binary number (View Code)
- To convert binary number into its equivalent decimal number (View Code)
- To convert decimal number into its equivalent octal number (View Code)
- To convert decimal number into its equivalent hexadecimal number. (View Code)
- To convert hexadecimal number into its equivalent decimal number. (View Code)
- To convert octal number into its equivalent decimal number. (View Code)
- To input a number and print the multiplication table of the same number upto 10th terms. (View Code)
- To check the given letter is uppercase or lowercase. (View Code)
- To print input string in alternate capital letters. (if user inputs 'COMPUTER' then the output should be 'CoMpUtEr') (View Code)
- To input five numbers into an array and find out the sum of all the numbers. (View Code)
- To input 10 numbers into an integer array and display the number of odd and even. (View Code)
- To find the product of the individual digits of the given number. (View Code)
- To find the sum of the individual digits of the given number. (View Code)
- To display the first 100 prime numbers. (View Code)
- To check entered character is vowel or consonant. (View Code)
- To enter a string and count total number of vowels. (View Code)
- To count the number of words in given string. (View Code)
- To remove the vowels from the word and display the word without the vowels. (View Code)
- To input age of 5 students and find number of students whose age is less than 15. (View Code)
- To input any 10 numbers and find their sum. (View Code)
- To input any five numbers into an array and find the sum of even numbers only. (View Code)
- To find the sum of series from 1 to N. (View Code)
- To find the sum of N numbers entered. (View Code)
- To find the greatest number among N numbers entered. (View Code)
- To find the cube of all the digits of the given number. (View Code)
- To find the factors of given number. (View Code)
- To find prime factors of a number input. (View Code)
- To find the factorial numbers of given number. (View Code)
- To check whether the given number is perfect square or not. (View Code)
- To check the entered character is alphabet or not. (View Code)
- To check the given input is alphabet or number of special character. (View Code)
- To input a number and prints its square if it is even otherwise print its cube. (View Code)
- To input radius of a circle and allows user to choose to find the area or perimeter of the circle. (View Code)
- To accept 10 different numbers with array variable and print the greatest number. (View Code)
- 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)
- To input a word and count total number of alphabet 'A' in the input word. (View Code)
- A program to count repetition of a character in given string. (View Code)
- To classify the triangles. (i.e. equilateral, isosceles, or scalene). (View Code)
- To find the product of first n natural numbers. (View Code)
- To find the roots of a quadratic equation when the value of a, b and c are given. (ax2+bx+c=0). (View Code)
- To read ten numbers using single dimension and find the sum of odd and even numbers separately.
- To input any three different numbers in separate lines and find the highest by using array.
- To find the greatest number from given numbers using DIM method.
- To find the numbers less than or equal to 15 and above 15 as user enters the the numbers from the keyboard.
- To find the numbers divisible by 3 & 5 from the 10 numbers provided.
- 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)
- To read 5 different numbers and find out even or odd numbers.
- To input ten numbers and print them in reserve order.
- To display the unique digit integers between 100 and 150.
- 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).
- To input different 15 numbers and display the numbers divisible by 5.
- To input a word and count total number of alphabet 'A' in the input word.
- To convert seconds to hour, minutes and seconds.
- To enter any sentence and count total number of vowel, consonant and space.
- 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.
- 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)
- 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)
- To read 5 different numbers and find out even or odd numbers.
- To find the total and average marks of 10 students for 7 subjects and print the result.
See Also... Make Programs - Series / Patterns