Saturday, April 9, 2022

Modular Programming Question Collection Qbasic 2078

 PROGRAMMING QUESTION

[9 Marks]

 

Group A

1.      Write a program to calculate the volume of a cylinder using FUNCTION….END FUNCTION.[ MODEL 2065], [ 2071 S]

2.      Using FUNCTION….END FUNCTION, Write a program to calculate distance travelled by a body. [ 2065R]

3.      Write a program using SUB…END SUB to get radius of circle and then print its area./FUNCTION [ 2065 S], [ 2071 R] [2074U][2074]

4.      Write a program using FUNCTION module to calculate and print the volume of a box. [ 2066 R]

5.      Write a program using FUNCTION…END FUNCTION to find the average of any two numbers given by the user. [ 2066 S]

6.      Using FUNCTION…END FUNCTION Write a program to calculate the average of three numbers. [ 2067 R], [ 2070 S][2075]

7.      Write a program using SUB…END SUB to get radius of a circle and then print its circumference. [ 2067 S]

8.      Write a program to calculate the area of four walls using SUB…END SUB / FUNCTION. [ 2068 R], [ 2073][2075U]

9.      Write a program in QBASIC to find the total surface area of a box using FUNCTION…END FUNCTION. [ 2068 S]

10.   Write a program to calculate and print the simple interest using FUNCTION…END FUNCTION. [ 2069 S]

11.   Write a program using FUNCTION…END FUNCTION to get temperature in celsius from the user and then print the temperature in fahrenheit. [ 2070 R]

12.   Write a program using FUNCTION…END FUNCTION, to find the area of triangle. [ 2072]

 

 

Group B

1.      Write a program using FUNCTION…END FUNCTION, to get a word from the user and the print the word in reverse order. [ 2065 S], [ 2067 S], [ 2068 R][2074U]

2.      Write a program to declare SUB procedure to print only the vowels from a given word. [ 2066 R]

3.      Write a program using SUB…END SUB to get a word from the user and then print it in reversed order. [ 2070 R], [ 2072]

4.      Write a program using FUNCTION…END FUNCTION to input a string and count the total number of consonants. [ 2071 R]

5.      Write a program to count the total number of vowels using FUNCTION…END FUNCTION. [2073][2075]

6.      Write a program using FUNCTION... END FUNCTION to count the number of words in a sentence.[2074]

 

 

Group C

1.      Write a program to test whether the given number is positive or negative using SUB…..END SUB. [ MODEL 2065 ], [ 2066 S]

2.      Using SUB…END SUB Write a program to test whether the given number is completely divisible by 13 or not. [ 2067 R]

3.      Write a program to input three different numbers in the main module and then find the greatest number using SUB…END SUB. [ 2068 S]

4.      Using Functions ........ End Functions write a program to find odd or even. [20475U]

 

Group D

1.      Using SUB…END SUB Write a program to print the following series 9,7,5,…1. [ 2065 R]

2.      Write a program using SUB…END SUB to print the series 1,1,2,3,5,8… upto ten terms. [ 2069 R]

3.      Write a program to print natural numbers from 1 to 5 using SUB…END SUB. [ 2069 S]

4.      Write a program using SUB…END SUB to print the first ten odd numbers. [ 2071 S]

5.      Write a program to print the sum of digits of a given number using SUB procedure. [ 2070 S]

 

 

1 comment: