You are on page 1of 1

BCA 3: PRACTICAL EXAMINATION

SUBJECT: VB.net & C# (SET-1)


1. Display sum of prime integers out of integers passed at command line in vb.
2. Design following form

On selection of any country, display its cities in 3 Radio buttons. On selection of any city, display
its name in textbox
3. Create class Book with properties Title and Author. Create an object of Book class in Main () and
use both properties in vb.
4. Define a class MyString with the following features in (c# program)
An overloaded comparison operator == to compare two strings.

BCA 3: PRACTICAL EXAMINATION


SUBJECT: VB.net & C# (SET-2)
1. Design following form

Design the form shown above and also place a Timer control on it. On click of Start button ,
generate a random color after every 5 seconds and apply it on Text Color of Text Box. On click of
Stop button , stop generating the random color.
2. Function Overloading:
a. Function ShowSum(num() as integer)as Integer
b. Function ShowSum(num as integer) as Integer
3. Create a class Student with data members Rollno, Name and Course. Create default and
parameterized constructors. Create display () method. In main (), create objects of Student class
by using separate constructors. Call display () method of both the objects.
4. Define a class MyString with the following features in (c# program)
An overloaded binary ‘+’ operator that concatenates two MyString objects and creates a third
object

You might also like