Documente Academic
Documente Profesional
Documente Cultură
T
VISUAL BASIC - THEORY QUESTIONS
1.
2.
3.
4.
5.
T.Y.I.T
43. What are named constants and how are they different from intrinsic constants?
44. What is the lifetime of a variable? How does it change according to the scope of
the variable?
45. Explain the use of Val () function.
46. Explain the need of Option Explicit statement. How the settings for this statement
are done?
47. Explain how to make interest rate stored in srate display as a percentage with 3
decimal digits.
48. Explain UCASE and LCASE functions in detail.
49. Explain the general form of Msgbox () function.
50. How to create multiple lines output in a message box.(vbCRLF)
51. Explain IsNumeric and IsDate functions.
52. What is the use of Immediate window?
53. Explain the difference between Step Into and Step Over commands in debug
menu.
54. Why would it be useful to include the UCase function in a comparison?
55. What steps are necessary to view the current contents of a variable during
program execution?
56. What is a separator bar and how it is created?
57. What is the purpose of Name and Caption properties of the menu items.
58. Explain the difference between sub procedure and a function procedure.
59. Whats difference between ByRef and ByVal? Explain with an example.
60. What is the value of Flags property of the common dialog box?
61. What is purpose of using Filter property of a common dialog control?
62. What are event procedures and how are they different from user-defined
procedures.
63. What is modal form and how it is different from a modeless form?
64. What is a startup form?
65. What is the difference between Load and Activate events for a form?
66. Explain in detail the Show method for a form.
67. Explain in detail the Hide method for a form.
68. Explain the meaning of Me keyword.
69. How to refer to objects and their properties from another form in the current
form?
70. What are static variables? How are they defined in VB?
71. What are global variables? What are public variables? Explain the difference
between them.
72. What are the different styles of combo box?
73. How a list box gets filled up with items?
74. Explain the AddItem method for a list box.
75. Explain the ListIndex property and the Index property for a listbox.
76. Explain the RemoveItem method for a list box.
77. Explain the Change event of a combo box.
78. Explain the Do. Loop statements along with an example.
79. Explain For. Next statements along with an example.
80. Explain the Exit for statement.
81. What are various icons, which can be displayed on a message box? (Critical msg,
warning msg, warning query, information msg)
82. What are the various buttons that can be placed on a message box? Also write
their combinations.
2
T.Y.I.T
83. Explain the following functions along with an example.
Left
Mid
Right
Len
Instr
Sqrt
Date
Time
Now
Asc
Chr
Spc
Trim
Rtrim, Ltrim
LOF
T.Y.I.T
114. Explain the Put statement along with its syntax.
115. Explain the difference between LOF function and EOF function.
116. Explain the difference between LOF function and the FreeFile function.
117. Explain the difference between Output and Append mode.
118. What are data-bound controls? Give few examples of data-bound controls.
119. What are the various properties for a data control?
120. Explain what is a RecordsetType property for a data control? What are the
various types of recordset available?
121. Explain what all properties of a text box must be set to make it work as a databound control. (datasource, datafield)
122. What are various record navigation methods, which are there for a recordset
object?
123. Explain the BOF and EOF properties of a recordset object.
124. Explain the difference between AddNew and Edit methods for a recordset
object.
125. Explain the Update method for a recordset object.
126. Explain the Delete method for a recordset object.
127. Explain the difference between Update and CancelUpdate methods for a
recordset object.
128. How can you check for the user deleting the only record in a Recordset?
129. Explain the NoMatch method and in what all situations it is used?
130. Explain the various Find methods for a recordset object.
131. Explain the Seek method for a recordset object.