Top banner

Sunday, April 4, 2010

Vb Important Question per Chapters 7,8,9


Chapter 07 –

1. Explain List Box and Combo Box controls.

2. Name and describe the three styles of combo boxes.

3. Explain the following properties –

a. ListCount
b. ListIndex
c. List
d. AddItem
e. Clear
f. RemoveItem
g. Sorted

4. What are the different loop-constructs in VB?

5. Explain the difference between a pretest and a posttest in a Do/Loop.

6. Explain the differences between a Do/Loop and a For/Next loop.

7. How do the Left, Right, Mid and Len functions operate?

8. What is the purpose of Printer.Print? How do you control the horizontal spacing of printer output?




Chapter 08 –

1. Define the following terms –
a. Array
b. Element
c. Subscript
d. Array of controls
e. Subscripted variable

2. Why would a list box control need both a ListIndex property and an ItemData property?

3. How to setup and use a control array?

4. Explain Select Case statement with an example.

5. Explain the use of For Each/Next in traversing the array.

6. Write a short note on user defined data types. Give an example.

7. What do you mean by multidimensional array? How do we implement it?

Chapter 09 –

1. Explain the difference between ByVal and ByRef. When is each used?

2. What actions trigger the Initialize event and the Terminate event of an object?

3. What is a collection? Name two collections that are automatically built into VB.

4. What properties and methods are provided by the Collection object?

5. Write short notes on key features of object-oriented language.

6. Write a short note on class module.

7. Write a short note on Property Procedures.

8. (How do we create a new object using a class?) What are the three choices of creating a new object?

9. Explain early binding versus late binding.

10. Explain the following –
a. ActiveX control with an example
b. A DLL (Dynamic Link Library)?
c. API (Application Programming Interface)

No comments:

Post a Comment