You are on page 1of 5

Practical File questions BCA 5th Semester

Note: The File must be handwritten File


Question 1:

Topic: File Handling


1. Create a VB.Net program that reads data from a text file named 'input.txt' and displays it
on the console.
a. Subdivision: Word Count
 Modify the program to count the number of words in the file and display the result.
b. Subdivision: Line Count
 Extend the program to count the number of lines in the file and display the result.
c. Subdivision: Character Count
 Enhance the program to count the number of characters in the file and display the result.
d. Subdivision: Unique Word Count
 Further modify the program to count the number of unique words in the file and display
the result.
e. Subdivision: Replace Text
 Add a feature to replace specific words in the file and save the modified content to a new
file.

Question 2:

Topic: String Handling


2. Develop a VB.Net application that allows the user to enter data into textboxes on a form.
Save this data to a text file named 'user_data.txt' when a button is clicked.
a. Subdivision: Reverse Input
 Modify the program to reverse the input string and display the result.
b. Subdivision: Uppercase Conversion
 Enhance the program to convert the input string to uppercase and display the result.
c. Subdivision: Remove Vowels
 Add a feature to remove vowels from the input string and display the modified string.
d. Subdivision: Count Characters
 Implement a feature to count the number of characters in the input string and display the
result.

By Prof. Deepak Kr. Ochani


Practical File questions BCA 5th Semester

e. Subdivision: Palindrome Check


 Extend the program to check if the input string is a palindrome or not.

Question 3:

Topic: Form-Based Operations


3. Write a VB.Net program that accepts a sentence from the user and reverses the order of
words in the sentence. Display the modified sentence on the console.
a. Subdivision: Uppercase First Letter
 Modify the program to capitalize the first letter of each word in the reversed sentence.
b. Subdivision: Count Words
 Enhance the program to count the number of words in the original and modified
sentences.
c. Subdivision: Remove Punctuation
 Implement a feature to remove punctuation from the original sentence and display the
result.
d. Subdivision: Replace Words
 Add a feature to replace specific words in the sentence and display the modified
sentence.
e. Subdivision: Display Statistics
 Display statistics like the number of uppercase letters, lowercase letters, digits, etc., for
both the original and modified sentences.

Question 4:

Topic: Form-Based Operations


4. Create a VB.Net program that takes a string input from the user and removes all vowels
from the string. Display the modified string on the console.
a. Subdivision: Display Vowel Count
 Modify the program to display the count of vowels removed from the string.
b. Subdivision: Display Consonant Count
 Enhance the program to display the count of consonants in the modified string.
c. Subdivision: Display Uppercase Count
 Implement a feature to display the count of uppercase letters in the original and modified
strings.
d. Subdivision: Display Lowercase Count
 Add a feature to display the count of lowercase letters in the original and modified
strings.
e. Subdivision: Display Alphanumeric Characters
 Display the alphanumeric characters present in the original and modified strings.

By Prof. Deepak Kr. Ochani


Practical File questions BCA 5th Semester

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

By Prof. Deepak Kr. Ochani


Practical File questions BCA 5th Semester

 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.

By Prof. Deepak Kr. Ochani


Practical File questions BCA 5th Semester

a. Subdivision: Display Perimeter


 Modify the program to calculate and display the perimeter of the rectangle.
b. Subdivision: Display Area for Square
 Enhance the program to handle square inputs and calculate the area accordingly.
c. Subdivision: Display Area 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.

By Prof. Deepak Kr. Ochani

You might also like