0% found this document useful (0 votes)
26 views

FEDT VB - Net Unit-3 Assignment

Uploaded by

anand sehgal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

FEDT VB - Net Unit-3 Assignment

Uploaded by

anand sehgal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Institute of Innovation In Technology and Management, New Delhi

Assignment for (Front End Design Tool VB.Net) Unit III

1.
Programme:
2. Date of BCA Semester:of classes:
commencement III 23rd Paper
July’ Code:
2007 205 Academic Year: 2014-

Practical Questions

1. Answer the following questions:


a) You have written some text in Label Control’s Text property but only some portion of
the text is visible. Which property will set to make the
whole text visible?

Enter your password


*****

OK Cancel

Which property of the textbox control you need to set if you want to display the text
of the textbox in above manner?
b) You have the BackColor property of your OK button to red but still default color is
appearing on the button which property you needed to set?
c) You have a textbox called TextBox1, you want that if the entered text is bigger than
the width of the textbox, you should get adjusted in the next line which property you
needed to set?
d) A button named Button1 should change its Text to “FOCUS” and become enabled
when receives the focus. It should again change its text to “LOST” and become
disabled when loses the focus.
2. WAP to get the states/countries from user and display in listbox and combobox and
selected state should be displayed in textbox.
3. WAP to allow only numeric values in the textbox.
4. WAP to change background color using timer.
5. WAP to sort the numbers (given by the user) in descending and ascending order using
Radio Button.
6. WAP to show different pictures in a particular interval.
7. WAP to increase font size using scroll bars.
8. WAP to change font size, font name, font style of label control using check box.
9. WAP to create menu and pop up menu.
10. Write a program to create a simple class.
Multiple Choice Questions

1. Which is true about the name and text property of a control?


a.) They are the same when the control is first created.

b.) The text property changes to match any changes in the name property.

c.) The name property changes to match any changes in the text property.

d.) They are never the same unless the programmer makes it that way.

e.) They are not allowed to be the same and an error will occur if they are.

2. An object is composed of:


a.) properties.

b.) methods.

c.) events.

d.) Both a and b.

e.) All of the above.

3. Which is not true about forms and controls in Visual Basic?


a.) They are pre-built.

b.) They are graphical objects.

c.) New versions of the classes must be created with each project.

d.) Buttons can be created with the drag and drop method.

e.) All of the above are true.

4. The CancelButton property belongs to which object?


a.) Button

b.) Form

c.) Label

d.) TextBox

e.) Timer
5. Which TextBox method does not use the clipboard?
a.) Clear

b.) Copy

c.) Cut

d.) Paste

e.) All of these methods use the clipboard.

6. Which is not a valid value for the ListBox SectionMode Property?


a.) None

b.) One

c.) MultiSimple

d.) MultiExtended

e.) All of the above.

7. Which value for the ComboBox DropDownStyle property allows a user to type in data?
a.) DropDown

b.) DropDownSimple

c.) DropDownList

d.) Both a and b.

e.) All of the above.

8. How many RadioButtons in a Group Box can be selected at the same time?
a.) 0

b.) 1

c.) 2

d.) 3

e.) 4

9. What is the name of the control for putting menus on a form?


a.) FormMenu

b.) MenuForm
c.) MenuControl

d.) MainMenu

e.) Menu

10. Which symbol creates an access key in the text of a menu item?
a.) @

b.) #

c.) $

d.) %

e.) &

11. Which is not a standard dialog box?


a.) ColorDialog

b.) FontDialog

c.) OpenDialog

d.) PrintDialog

e.) ZoomDialog

12. The name of the class used to programmatically create a color dialog box is:
a.) Color

b.) ColorBox

c.) ColorDialog

d.) ColorDisplay

e.) ColorDisplayBox

13. Properties are used to represent:


a.) actions.

b.) classes.

c.) data.

d.) events.

e.) instances.
14. Which feature is needed to make a programming language object oriented?
a.) Encapsulation

b.) Inheritance

c.) Polymorphism

d.) Both a and b.

e.) All of the above

15. Encapsulation makes it easier to:


a.) reuse and modify existing modules of code.

b.) write and read code by sharing method names.

c.) hide and protect data from external code.

d.) Both a and b.

e.) All of the above.

16. Inheritance makes it easier to:


a.) reuse and modify existing modules of code.

b.) write and read code by sharing method names.

c.) hide and protect data from external code.

d.) Both a and b.

e.) All of the above

17. Polymorphism makes it easier to:


a.) reuse and modify existing modules of code.

b.) write and read code by sharing method names.

c.) hide and protect data from external code.

d.) Both a and b.

e.) All of the above.

18. Which is true for constructors in a class?


a.) All constructors must have the same number of parameters.

b.) All constructors must be the same parameter data type.


c.) Some constructors can have the same list of parameters.

d.) Only two constructors in a class can have the same list of parameters.

e.) No two constructors in a class can have the same list of parameters.

19. Which statement will call a constructor of a base class?


a.) Base.New( )

b.) BaseConstructor.New ( )

c.) CallBase.New( )

d.) Constructor.New ( )

e.) MyBase.New( )

20. How many constructors can a class have?

a.) 0

b.) 1

c.) 2

d.) 3

e.) All of the above.

You might also like