Professional Documents
Culture Documents
Question 2:
Question 3:
Question 4:
Question 5:
Topic: Functions
5. Design a VB.Net application that uses a form to calculate and display the area of a
rectangle. Allow the user to input the length and width.
a. Subdivision: Perimeter Calculation
Modify the program to calculate and display the perimeter of the rectangle.
b. Subdivision: Area Calculation for Square
Enhance the program to handle square inputs and calculate the area accordingly.
c. Subdivision: Area Calculation for Circle
Add a feature to calculate and display the area of a circle when the user inputs the radius.
d. Subdivision: Display Diagonal
Implement a feature to calculate and display the diagonal of the rectangle.
e. Subdivision: Display Square Root of Area
Display the square root of the calculated area.
Question 6:
Topic: Functions
6. Build a VB.Net program with a form containing a ListBox and two buttons. Populate the
ListBox with numbers from 1 to 10 when the form loads. Implement a button to display
the selected item and another to clear the selection.
a. Subdivision: Display Even Numbers
Modify the program to display only even numbers in the ListBox.
b. Subdivision: Display Odd Numbers
Enhance the program to display only odd numbers in the ListBox.
c. Subdivision: Display Prime Numbers
Implement a feature to display only prime numbers in the ListBox.
d. Subdivision: Display Square of Numbers
Add a feature to display the square of each number in the ListBox.
e. Subdivision: Display Cube of Numbers
Display the cube of each number in the ListBox.
Question 7:
Topic: Constructors
7. Create a VB.Net program that defines a function to check whether a given number is prime
or not. Use this function to display the prime numbers between 1 and 50 on the console.
a. Subdivision: Display Prime Numbers in Range
Modify the program to display prime numbers within a user-defined range.
b. Subdivision: Display Sum of Primes
Enhance the program to calculate and display the sum of prime numbers within the
range.
c. Subdivision: Display Average of Primes
Implement a feature to calculate and display the average of prime numbers within the
range.
d. Subdivision: Display Prime Factors
Add a feature to display the prime factors of a user-input number.
e. Subdivision: Display Palindromic Primes
Display palindromic prime numbers within the range.
Question 8:
Topic: Constructors
8. Write a VB.Net program that defines a function to calculate the factorial of a given
number. Use this function to display the factorial of numbers from 1 to 5.
a. Subdivision: Display Factorial of User-Input Number
Modify the program to allow the user to input a number and display its factorial.
b. Subdivision: Display Sum of Factorials
Enhance the program to calculate and display the sum of factorials from 1 to a user-
defined number.
c. Subdivision: Display Factorial of Sum
Implement a feature to calculate and display the factorial of the sum of two user-input
numbers.
Question 9:
Topic: Constructors
9. Develop a VB.Net class named 'Person' with properties for Name and Age. Implement a
parameterized constructor to initialize these properties. Create an object of this class and
display the details on the console.
a. Subdivision: Display Name and Age
Modify the program to display the name and age of the person.
b. Subdivision: Update Age
Enhance the program to allow the user to update the age of the person.
c. Subdivision: Display Age Category
Implement a feature to display the age category (child, adult, senior) based on the age.
d. Subdivision: Display Full Details
Add a feature to display the full details of the person, including any additional
information.
e. Subdivision: Compare Ages
Implement a feature to compare the ages of two persons and display the result.
Question 10:
Topic: Constructors
10. Create a VB.Net class named 'Rectangle' with properties for Length and Width. Implement
a parameterized constructor and a method to calculate the area of the rectangle. Create an
object and display the area.