Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger

Search Your Question

Showing posts with label Visual Basic. Show all posts
Showing posts with label Visual Basic. Show all posts

Friday, May 23, 2008

C Interview Questions Interview question

1. Write a program in C to find the 3*3 matrix multiplication.

2. Write a program in C to find the complex number of a given number.

3. how to print all the combinations of a given integer.

4. what is the significance of following functions

  • freopen()
  • strtok()
  • access()
  • state()
5. what is the "escape hatch" provided by #pragma directive?

6. what is source code of this tringle ...
A
A N I
A N I R B
A N I R B A N
A N I R B A N P A
A N I R B A N P A U L

7. What happens when you overload the stack?

8. what do you mean by preprocessor directory?

9. What is byte offset of a field within a structure?

10. What is unabridged list?

11. How is structure passing and returning implemented?

12. Write sample code or algorithim to get all possible combinations of data that will be entered from keyboard.

13. Explian Floyd Cycle finding algorithm for circular link list?

14. Why is that a pointer is depicted by '*' in C?

15. Write a program to print an 2D array in spiral manner

16. #includevoid fun(int);void main(){ inta; a=3; fun(a); }void fun(int){ if(n>0) { fun(--n);...

17. Given the values of two nodes in a *binary search tree*, write a cprogram to find the lowest common ancestor.

18. Can we define an array without any constant expression? If Yes, How?

19. For what purpose pragma.h header file is used?

20. What is the advantage of zero filling in calloc() ?

Oracle Interview Questions - Part 13

1.What are the various types of Exceptions ?
User defined and Predefined Exceptions.

2.Can we define exceptions twice in same block ?
No.

3.What is the difference between a procedure and a function ?
Functions return a single variable by value whereas procedures do not return any variable by value. Rather they return multiple variables by passing variables by reference through their OUT parameter.

4.Can you have two functions with the same name in a PL/SQL block ?
Yes.

5.Can you have two stored functions with the same name ?
Yes.

6.Can you call a stored function in the constraint of a table ?
No.

7.What are the various types of parameter modes in a procedure ?
IN, OUT AND INOUT.

8.What is Over Loading and what are its restrictions ?
OverLoading means an object performing different functions depending upon the no. of parameters or the data type of the parameters passed to it.

9.Can functions be overloaded ?
Yes.

10.Can 2 functions have same name & input parameters but differ only by return datatype?
No.
11.What are the constructs of a procedure, function or a package ?
The constructs of a procedure, function or a package are : variables and constants cursors exceptions

12.Why Create or Replace and not Drop and recreate procedures ?
So that Grants are not dropped.

13.Can you pass parameters in packages ? How ?
Yes. You can pass parameters to procedures or functions in a package.

14.What are the parts of a database trigger ?
The parts of a trigger are:
A triggering event or statement
A trigger restriction
A trigger action

15.What are the various types of database triggers ?
There are 12 types of triggers, they are combination of :
Insert, Delete and Update Triggers.
Before and After Triggers.
Row and Statement Triggers.(3*2*2=12)

16.What is the advantage of a stored procedure over a database trigger ?
We have control over the firing of a stored procedure but we have no control over the firing of a trigger.

17.What is the maximum no. of statements that can be specified in a trigger statement ?
One.

18.Can views be specified in a trigger statement ?
No

19.What are the values of :new and :old in Insert/Delete/Update Triggers ?
INSERT : new = new value, old = NULL
DELETE : new = NULL, old = old value
UPDATE : new = new value, old = old value

20.What are cascading triggers? What is the maximum no of cascading triggers at a time?
When a statement in a trigger body causes another trigger to be fired, the triggers are said to be cascading. Max = 32.
21.What are mutating triggers ?
A trigger giving a SELECT on the table on which the trigger is written.

22.What are constraining triggers ?
A trigger giving an Insert / Update on a table having referential integrity constraint on the triggering table.

23.Describe Oracle database's physical and logical structure ?
Physical : Data files, Redo Log files, Control file.
Logical : Tables, Views, Tablespaces, etc.

24.Can you increase the size of a tablespace ? How ?
Yes, by adding datafiles to it.

25.Can you increase the size of datafiles ? How ?
No (for Oracle 7.0)Yes (for Oracle 7.3 by using the Resize clause ----- Confirm !!).

26.What is the use of Control files ?
Contains pointers to locations of various data files, redo log files, etc.

27.What is the use of Data Dictionary ?
Used by Oracle to store information about various physical and logical Oracle structures e.g. Tables, Tablespaces, datafiles, etc

28.What are the advantages of clusters ?
Access time reduced for joins.

29.What are the disadvantages of clusters ?
The time for Insert increases.

30.Can Long/Long RAW be clustered ?
No.
31.Can null keys be entered in cluster index, normal index ?
Yes.

32.Can Check constraint be used for self referential integrity ? How ?
Yes. In the CHECK condition for a column of a table, we can reference some other column of the same table and thus enforce self referential integrity.

33.What are the min. extents allocated to a rollback extent ?
Two

34.What are the states of a rollback segment ? What is the difference between partly available and needs recovery ?
The various states of a rollback segment are :ONLINE, OFFLINE, PARTLY AVAILABLE, NEEDS RECOVERY and INVALID.

35.What is the difference between unique key and primary key ?
Unique key can be null; Primary key cannot be null.

36.An insert statement followed by a create table statement followed by rollback ? Will the rows be inserted ?
Yes.

37.Can you define multiple savepoints ?
Yes.

38.Can you Rollback to any savepoint ?
Yes.

40.What is the maximum no. of columns a table can have ?
256.

Data Warehousing Interview Questions

1) What is source qualifier?
2) Difference between DSS & OLTP?
3) Explain grouped cross tab?
4) Hierarchy of DWH?
5) How many repositories can we create in Informatica?
6) What is surrogate key?
7) What is difference between Mapplet and reusable transformation?
8) What is aggregate awareness?
9) Explain reference cursor?
10) What are parallel querys and query hints?
11) DWH architecture?
12) What are cursors?
13) Advantages of de normalized data?
14) What is operational data source (ODS)?
15) What is meta data and system catalog?
16) What is factless fact schema?
17) What is confirmed dimension?
18) What is the capacity of power cube?
19) Difference between PowerPlay transformer and power play reports?
20) What is IQD file?
21) What is Cognos script editor?
22) What is difference macros and prompts?
23) What is power play plug in?
24) Which kind of index is preferred in DWH?
25) What is hash partition?
26) What is DTM session?
27) How can you define a transformation? What are different types of transformations in Informatica?
28) What is mapplet?
29) What is query panel?
30) What is a look up function? What is default transformation for the look up function?
31) What is difference between a connected look up and unconnected look up?
32) What is staging area?
33) What is data merging, data cleansing and sampling?
34) What is up date strategy and what are th options for update strategy?
35) OLAP architecture?
36) What is subject area?
37) Why do we use DSS database for OLAP tools?
38) What is a universe?
39) Analysis in business objects?
40) Who launches the supervisor product in BO for first time?
41) How can you check the universe?
42) What are universe parameters?
43) Types of universes in business objects?
44) What is security domain in BO?
45) Where will you find the address of repository in BO?
46) What is broad cast agent?
47) In BO 4.1 version what is the alternative name for broadcast agent?
48) What services the broadcast agent offers on the server side?
49) How can you access your repository with different user profiles?
50) How many built-in objects are created in BO repository?
51) What are alertors in BO?
52) What are different types of saving options in web intelligence?
53) What is batch processing in BO?
54) How can you first report in BO by using broadcast agent?
55) Can we take report on Excel in BO?

VB Interview Questions

  • Why do you use Option Explicit?
  • What are the commonly used data types in VBScript?
  • What is a session object?
  • What are the three objects of ADO?
  • What are the lock-types available in ADO?
  • Explain. What are the cursor types available in ADO? Explain.
  • What is a COM component? How do you register a COM component?
  • What is a virtual root and how do you create one?
  • What is a database index, how do you create one, discuss its pros and cons?
  • How do you use multiple record sets(rs.NextRecordSet)?
  • As soon as you fetch a record set, what operations would you perform?
  • Define a transaction.
  • What are ACID properties of a transaction?
  • How would you remotely administer IIS?
  • What is RAID? What is it used for?
  • What is normalization? Explain normalization types.
  • What is the disadvantage of creating an index in every column of a database table?
  • What are the uses of source control software?
  • You have a query that runs slowly, how would you make it better?
  • How would you make it better in .NET environment?
  • What is a bit datatype? What is it used for?
  • How would you go about securing IIS and MS-SQL Server?
  • What is the difference between Request("field") and Request.Form("field")?
  • What versions of VB have you used? Have you also used VBA or VBScript?
  • Have you ever used classes? If so, how have you used them?
  • Have you ever created ActiveX DLLs? If so, why did you create the DLLs instead of using code in the main application?
  • Have you ever created ActiveX controls? If so, what did they do?
  • Have you ever created ActiveX EXEs? If so, what were they used for?
  • Have you ever used Collections? Collection Classes?
  • Have you ever used ADO? DAO? RDO? Any other database engines?
  • What database backends have you worked with? Access? SQL Server? Oracle?
  • Have you ever used resource files? If so, for what reason?
  • Have you used the FileSystemObject? The Dictionary Object? Regular Expressions?
  • Have you developed COM+ components? Any other types of server based components?
  • What source code control systems have you used?
  • What versions of Windows have you used? Have you used any other operating systems?
  • What third party ActiveX controls have you used?
  • Are there any other programming tools, such as database diagramming, UML, or CASE tools, that you've used?
  • Have you developed components for IIS? Developed ASP pages?
  • If you were writing a program, what method would you use to send information from the main form of the application to a modal popup form and then pass any changes to the data back to the main form when the popup form was closed?
  • How would you center a form on the screen? How about centering it on another form?
  • If an event, such as a tool bar button or menu click,occurs on a MDI parent how can it invoke an action on one or more MDI child forms?
  • What are some methods you can use to send data from one VB executable to another one?
  • What are the differences between a standard module and a class module?
  • What do you have to do to make your class visible to programs other than your own?
  • How can you tell what kind of object an object variable is holding?
  • Describe the different scopes of variables in VB.
  • Describe the difference between a public variable in a form and one in a standard code module.
  • How do you handle error conditions in your code?
  • What are some uses and misuses of variants?
  • What are some of the steps you can take to determine why your program is crashing with "Invalid Page Fault" errors?
  • What are the different ways you can use threading in VB? When are they appropriate?
  • How many tabs in a tabbed dialog do you consider appropriate?
  • How many items should you make available to users in a listbox or combo box?
  • What are the three main differences between flexgrid control and dbgrid(Data bound Grid) control
    The Microsoft FlexGrid (MSFlexGrid) control displays and operates on tabular data. It allows complete flexibility to sort, merge, and format tables containing strings and pictures. When bound to a Data control, MSFlexGrid displays read-only data.Adaptation to existing Visual Basic code for the data-bound grid (DBGrid).

    Dbgrid is A spreadsheet-like bound control that displays a series of rows and columns representing records and fields from a Recordset object.

    The data grids are bound controls; that is, they require a data source that actually connects to a database and retrieves their data. And it seems that the root of the problem with DBGrid is that there's no data source that can be readily included along with the DBGrid control.In Visual Basic, the solution is simply to include the Data Control on the same form as DBGrid. But the Data Control is an intrinsic control; it's unavailable to anything outside of the Visual Basic environment itself. and VB 6.0 has a new set of data controls (DataGrid, DataList, DataCombo, MSHFlexGrid, MSFlexGrid) that once again are bound controls. Unlike DBGrid, though, they support OLE DB, and therefore rely on the an ADO Data Source (and in particular the ActiveX Data Objects Data Control, or ADO DC) for data access. Unlike the Data Control, the ADODC is a custom control (that is, an .OCX) that can be added to any project. In short, if you add ADO DC to your project along with theDataGrid control.
  • ActiveX and Types of ActiveX Components in VB ?
    Standard EXE
    ActiveX EXE
    ActiveX DLL
    ActiveX document
    ActiveX Control
  • What is difference between inprocess and out of process ?
    An in-process component is implemented as a DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component.Each client app that uses the component starts a new instance of it.
    An out of process component is implemented as an EXE, and unlike a dll, runs in its own process space. As a result, exe's are slower then dll'sbecause communications between client and component must be marshalled across process boundaries. A single instance of an out of process component can service many clients.
  • Advantage of ActiveX Dll over Active Exe ?

    ACTIVEX DLL:An in-process component, or ActiveX DLL, runs in another application’s process. In-process components are used by applications or other in-process components. this allows you to wrap up common functionality (like an ActiveX Exe).

    ACTIVEX EXE:An out-of-process component, or ActiveX EXE, runs in its own address space. The client is usually an application running in another process.The code running in an ActiveX Exe is running in a separate process space. You would usually use this in N-Tier programming.

    An ActiveX EXE runs out of process while an ActiveX DLL runs in the same process space as VB app. Also, and ActiveX EXE can be run independent of your application if desired.
  • Explain single thread and multithread thread apartments.
    All components created with Visual Basic use the apartment model, whether they’re single-threaded or multithreaded. A single-threaded component has only one apartment, which contains all the objects the component provides.
    This means that a single-threaded DLL created with Visual Basic is safe to use with a multithreaded client. However, there’s a performance trade-off for this safety. Calls from all client threads except one are marshaled, just as if they were out-of-process calls.
  • What is a Component?
    If you compile an ActiveX dll, it becomes a component.If you compile an ActiveX Control, it becomes both a component and a control.
    Component is a general term used to describe code that's grouped by functionality. More specifically, a component in COM terms is a compiled collection of properties/methods and events.
    Typically a component is loaded into your project via the References whereas an ActiveX Control is loaded into your project via "components".
  • What is meant by "Early Binding" and "Late Binding"? Which is better?
    Early binding and late binding refer to the method used to bind an interface's properties and methods to an object reference (variable). Early binding uses type library information at design time to reference procedures, while late binding handles this at run time. Late bindinghandles this by interrogating the reference before each call to insure that it supports a particular method. Since every call to a late boundobject actually requires two calls ("Do you do this?" followed by "Okay, do it then"), late binding is much less efficient than early binding. Except where early binding is not supported (ASP, scripting, etc.), late binding should only be used in very special cases.
    It is a common misconception that any code using the CreateObject function instead of
    Set = New is using late binding. This is not the case. The type declaration of the object variable determines whetherit is late or early bound, as in the following:

    Dim A As Foo
    Dim B As Foo
    Dim C As Object
    Dim D As Object
    Set A = New Foo 'Early Bound
    Set B = CreateObject("FooLib.Foo") 'Early Bound
    Set C = CreateObject("FooLib.Foo") 'Late Bound
    Set D = New Foo 'Late Bound

Monday, May 19, 2008

Visual Basic Interview Questions

1. Which controls can not be placed in MDI ?
2. List out controls which does not have events
3. Which property of textbox cannot be changed at runtime. What is the max size of textbox?
4. How many system controls are available
5. ___,_____ and ____ container objects.
6. ___ Property is to compress a image in image control.
7. ___,___ and __ are difference between image and picture controls.
8. To.set the command button for ESC ___ Property has to be changed.
9. Is it possible to set a shortcut key for label.
10. What is the default property of datacontrol.
11.___,__,___ are the type of combo box?
12.__ no of controls in form.
13.OLE is used for _______
14.What is the need of tabindex property is label control.
15.___ is the control used to call a windows application.
16.Clear property is available in ____,___ control.
17.___ Property is used to count no. of items in a combobox.
18.___ is a property to resize a label control according to your caption.
19.Which controls have refresh method.
20.___ property is used to change to ___ value to access a identity column'in datacontrols.
21._____ is the property to ___,____,____ are valid for recordsource property of dat control.
22.To find the current recordposition in data control.
23.Timer control contains ________ no. of events.
24.____ property is used to lock a textbox to enter a datas.
25.What is the need of zorder method?
26.____ is the difference between Listindex and Tab index.
27.____ property of menu cannot be set at run time.
28.Can you create a tabletype of recordset in Jet - connected ODBC dbengine.
29.Difference between listbox and combo box.
30.What are the new events in textbox that has been included in VB6.0
31.Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
32._____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol.
33.____ argument can be used to make a menuitem into bold.
34. What is the difference between Msgbox Statement and MsgboxQ function?
35.What is.the difference between queryunload and unload in form?
36.___,___ arguments will be used to run a executable program in shell function
37.___ property used to add a menus at runtime.
38. What is the difference between modal and moduless window?
39.___ VB constant make the menu item in centre.
40.___ method used to move a recordset pointer in nth position in DAG.
41.To validate a range of values for a property whenever the property values changes,which type of property procedure you use?
42. What are 3 main differences between flexgrid control and dbgrid control?
43.What is the difference between change event in normal combobox and dbcombobox?
44.To populate a single column value which dbcontrols you to use?
45.What is ODBC?
46.PartsofODBC?
47.WhatisDSN?
48.WhatisDAO?
49.Types of cursors in DAO?
50.Types of LockEdits in DAO? 51 .Types of Recordsets.
52.Difference between Tabletype and Snapshot?
53.Draw Sequence Modal of DAO? Explain.
54.Difference between Dynaset and Snapshot?
55.Difference between Recordset and Querydef?
56.What is the use of Tabledef?
57.Default cursor Type and LockEdit type in DAO?
58. What is the default workspace?
59.1s it posible to Create Tables Through Querydef?
60.It is possible to access Text (x.txt) files? Explain.
61. What is ODBC Direct and Microsoft Jet Database Engine ?
62. Is it possible to Manipulate data through flexgrid? Explain.
63.Types of DBCombo boxes
64.What do you mean by Databound Controls? Explain.
65.What is RDO?
66.Types of cursors in RDO.
67.Types of LockEdits in RDO.
68.Types of LockEdits in RDO.
69.Types of Resultsets.
70.Difference between Recordset and Resultsets.
71.Explain Default cursor Type and LockEdits type in RDO
72.Draw Sequence Modal of RDO? Explain.
73.What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
75.'What is OLE? Explain.
76.What is DDE?
77.Difference between Linked Object and Embedded Object?
78.Explain OLE Drag and Drop.
79.Difference between DDE and OLE.
80. What is the difference between Object and Class?
81.Give brief description about class?
82.Does VB Supports OOPS Concepts? Explain..
83.Difference between Class Module and Standard Module?
84.Explain Get, Let, Set Properties.
85.Difference Types of Procedures in VB?
86. What is the use of NEW Keyword? Explain.
87.What is constructors and distructors.
88.Types of Modal windows in VB.
89. What is ActiveX? Explain.
90.Types of ActiveX Components in VB?
91.Difference between ActiveX Control and Standard Control.
92.Difference between ActiveX Exe and Dll.
93.What is instantiating?
94. Advantage of ActiveX Dll over Active Exe.
95.Difference Types of Instancing Property in ActiveX Dll and Exe.
96.What is ActiveX Dll and ActiveX Exe?
97. Write the steps in Creating ActiveX Dll and Active Exe?
98.Explain the differences between ActiveX Dll and ActiveX Exe?
99.How would you use ActiveX Dll and ActiveX Exe in your application?
100. How would you access objects created in ActiveX Exe and ActiveX D1T
101. What is the use of ActiveX Documents?
102. What is ActiveX Document?
103. What is the use of Visual Basic Document file?
104. What is hyperlink?
105. How would you create Visual basic Document file?
106. What is Internet Explorer and its uses?
107. How would you navigate between one document to another document
in Internet Explorer ?
108. How would you run your ActiveX Document Dll?
109. How would you view html code in Active Server Pages?
110. How would you cre.ate your application in DHTML?
111. What is ActiveX Control?
112. Write the Steps in Creating an ActiveX Control?
113. How would you attach an ActiveX control in Your Application?
114. How would you create properties in ActiveX Control?
115. What is the-use of property page Wizard in ActiveX Control?
116. How would you add elements in TreevieW Control.
117. What are the types of line styles available in Treeview Control?
118. What is the use of Imagelist Controls
119. How would you attach pictures in Treeview Control?
120. What are the uses of List View Control?
121. Explain the types of Views in Listview Control.
122. How would you attach pictures in column headers of List View Control?
123. How would you add column headers in listview control?
124. How would you add elements and pictures to listitems in listview control?
125. How would you activate animation control?
126. What is the use of progress Bar Control?
127. How would you find out the value property in Slider Bar Control?
128. What is the use of Data Form Wizard?
129. How would you map properties to controls by using ActiveX Control Interface Wizard?
130. How would you convert a form into document?
131. How would you Create a Query Builder and Explain its uses
132. How would you create properties by using class Builder Wizard?
133. HTML stands for What? Use of HTML ?
134. Whether HTML supports multimedia: and document links?
135. DHTML Is used for what?
136. What do you mean by HTTP?
137. What is the use of Hyperlink control for DHTML applications?
138. How can you Navigate from the DHTML application to another DHTML application? .
139. What are the Internet tools available in VB6.0?
140. Explain the usage of Web Browser Control?
141. What do you mean by ADO?
142. What is the difference Between ADO and other data access objects0
143. WhatisOLEDB?
144. What are the important components of OLEDB?
145. Through which protocol OLEDB components are interfaced?
146. It possible to call OLEDB's Features directly in VB without using any control?
147. What type of databases you can access through AD I Data Access Object?
148. How many objects resides in ADO ?
.149. What is the use of Connection object?
150. Wat is the use of command Object?
151. Recordset object consists what?
152. What is the use of parameters collection?
153. Which type of object requires this object?
154. Is it possible to call backend procedures with ADO control?
155. Is there any Edit method in ADO Data Access method?
156. How can you check whether a record is valid record or Invalid record using ADO control or Object?
157. What do you mean by provider?
158. What type of recordsets are available in ADO?
159. Is it possible to call oracle database through ADO control or Object?
160. How many File System Controls are there ? Explain.
161. How can you filter out specific type of file using file system controls?
162. How can you get selected file from file system Control?
163. How many ways we can access file using VB?
164. Which method is preferred to save datas like database?
165. How to get freefile location in memory?
166. How to find size of the file. Which method or function is used to occomplish this?
167. Using which type we can access file line by line?
168. Which method is used to write context Into file?
169. How can you read content from file?
170. Binary Access-method isused to access file in which manner?
171. How can you check Beginning and End of the file?
172. What is the use of Scalewidth and ScaleHeight Proeperty?
173. What is the use of Active Control Property?
174. How can you save and Get data from Clipboard/
175. What are the types of Error?
176. In which areas the Error occurs?
177. What are the tools available for Debuggiu in VB?
178. What is the use of Immediate, Local Window?
179. What is the use of debug Window?
180. How can you Implement windows functionality in VB?
181. How many types of API functions are availble in VB?
182. How can you Add API functions to your Application?
183. How to get Cursor position using API?
184. Is it possible to change menu runtime using API? If yes? Specify the function names.
185. What are the types of API Types.
186. Scope of API's can be of types, what are they? Why API functions are Required?

Thursday, April 17, 2008

101. What is the use of ActiveX Documents?

1. Which controls can not be placed in MDI ?
2. List out controls which does not have events
3. Which property of textbox cannot be changed at runtime. What is the max size of textbox?
4. How many system controls are available
5. ___,_____ and ____ container objects.
6. ___ Property is to compress a image in image control.
7. ___,___ and __ are difference between image and picture controls.
8. To.set the command button for ESC ___ Property has to be changed.
9. Is it possible to set a shortcut key for label.
10. What is the default property of datacontrol.
11.___,__,___ are the type of combo box?
12.__ no of controls in form.
13.OLE is used for _______
14.What is the need of tabindex property is label control.
15.___ is the control used to call a windows application.
16.Clear property is available in ____,___ control.
17.___ Property is used to count no. of items in a combobox.
18.___ is a property to resize a label control according to your caption.
19.Which controls have refresh method.
20.___ property is used to change to ___ value to access a identity column'in datacontrols.
21._____ is the property to ___,____,____ are valid for recordsource property of dat control.
22.To find the current recordposition in data control.
23.Timer control contains ________ no. of events.
24.____ property is used to lock a textbox to enter a datas.
25.What is the need of zorder method?
26.____ is the difference between Listindex and Tab index.
27.____ property of menu cannot be set at run time.
28.Can you create a tabletype of recordset in Jet - connected ODBC dbengine.
29.Difference between listbox and combo box.
30.What are the new events in textbox that has been included in VB6.0
31.Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample.
32._____ collection in recordset used to assign a value from textbox to table columns without making
abinding in datacontrol.
33.____ argument can be used to make a menuitem into bold.
34. What is the difference between Msgbox Statement and MsgboxQ function?
35.What is.the difference between queryunload and unload in form?
36.___,___ arguments will be used to run a executable program in shell function
37.___ property used to add a menus at runtime.
38. What is the difference between modal and moduless window?
39.___ VB constant make the menu item in centre.
40.___ method used to move a recordset pointer in nth position in DAG.
41.To validate a range of values for a property whenever the property values changes,which type of property
procedure you use?
42. What are 3 main differences between flexgrid control and dbgrid control?
43.What is the difference between change event in normal combobox and dbcombobox?
44.To populate a single column value which dbcontrols you to use?
45.What is ODBC?
46.PartsofODBC?
47.WhatisDSN?
48.WhatisDAO?
49.Types of cursors in DAO?
50.Types of LockEdits in DAO? 51 .Types of Recordsets.
52.Difference between Tabletype and Snapshot?
53.Draw Sequence Modal of DAO? Explain.
54.Difference between Dynaset and Snapshot?
55.Difference between Recordset and Querydef?
56.What is the use of Tabledef?
57.Default cursor Type and LockEdit type in DAO?
58. What is the default workspace?
59.1s it posible to Create Tables Through Querydef?
60.It is possible to access Text (x.txt) files? Explain.
61. What is ODBC Direct and Microsoft Jet Database Engine ?
62. Is it possible to Manipulate data through flexgrid? Explain.
63.Types of DBCombo boxes
64.What do you mean by Databound Controls? Explain.
65.What is RDO?
66.Types of cursors in RDO.
67.Types of LockEdits in RDO.
68.Types of LockEdits in RDO.
69.Types of Resultsets.
70.Difference between Recordset and Resultsets.
71.Explain Default cursor Type and LockEdits type in RDO
72.Draw Sequence Modal of RDO? Explain.
73.What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain.
75.'What is OLE? Explain.
76.What is DDE?
77.Difference between Linked Object and Embedded Object?
78.Explain OLE Drag and Drop.
79.Difference between DDE and OLE.
80. What is the difference between Object and Class?
81.Give brief description about class?
82.Does VB Supports OOPS Concepts? Explain..
83.Difference between Class Module and Standard Module?
84.Explain Get, Let, Set Properties.
85.Difference Types of Procedures in VB?
86. What is the use of NEW Keyword? Explain.
87.What is constructors and distructors.
88.Types of Modal windows in VB.
89. What is ActiveX? Explain.
90.Types of ActiveX Components in VB?
91.Difference between ActiveX Control and Standard Control.
92.Difference between ActiveX Exe and Dll.
93.What is instantiating?
94. Advantage of ActiveX Dll over Active Exe.
95.Difference Types of Instancing Property in ActiveX Dll and Exe.
96.What is ActiveX Dll and ActiveX Exe?
97. Write the steps in Creating ActiveX Dll and Active Exe?
98.Explain the differences between ActiveX Dll and ActiveX Exe?
99.How would you use ActiveX Dll and ActiveX Exe in your application?
100. How would you access objects created in ActiveX Exe and ActiveX D1T

Visual Basic Interview Questions-Part 2

101. What is the use of ActiveX Documents?
102. What is ActiveX Document?
103. What is the use of Visual Basic Document file?
104. What is hyperlink?
105. How would you create Visual basic Document file?
106. What is Internet Explorer and its uses?
107. How would you navigate between one document to another document
in Internet Explorer ?
108. How would you run your ActiveX Document Dll?
109. How would you view html code in Active Server Pages?
110. How would you cre.ate your application in DHTML?
111. What is ActiveX Control?
112. Write the Steps in Creating an ActiveX Control?
113. How would you attach an ActiveX control in Your Application?
114. How would you create properties in ActiveX Control?
115. What is the-use of property page Wizard in ActiveX Control?
116. How would you add elements in TreevieW Control.
117. What are the types of line styles available in Treeview Control?
118. What is the use of Imagelist Controls
119. How would you attach pictures in Treeview Control?
120. What are the uses of List View Control?
121. Explain the types of Views in Listview Control.
122. How would you attach pictures in column headers of List View Control?
123. How would you add column headers in listview control?
124. How would you add elements and pictures to listitems in listview control?
125. How would you activate animation control?
126. What is the use of progress Bar Control?
127. How would you find out the value property in Slider Bar Control?
128. What is the use of Data Form Wizard?
129. How would you map properties to controls by using ActiveX Control Interface Wizard?
130. How would you convert a form into document?
131. How would you Create a Query Builder and Explain its uses
132. How would you create properties by using class Builder Wizard?
133. HTML stands for What? Use of HTML ?
134. Whether HTML supports multimedia: and document links?
135. DHTML Is used for what?
136. What do you mean by HTTP?
137. What is the use of Hyperlink control for DHTML applications?
138. How can you Navigate from the DHTML application to another DHTML application? .
139. What are the Internet tools available in VB6.0?
140. Explain the usage of Web Browser Control?
141. What do you mean by ADO?
142. What is the difference Between ADO and other data access objects0
143. WhatisOLEDB?
144. What are the important components of OLEDB?
145. Through which protocol OLEDB components are interfaced?
146. It possible to call OLEDB's Features directly in VB without using any control?
147. What type of databases you can access through AD I Data Access Object?
148. How many objects resides in ADO ?
.149. What is the use of Connection object?
150. Wat is the use of command Object?
151. Recordset object consists what?
152. What is the use of parameters collection?
153. Which type of object requires this object?
154. Is it possible to call backend procedures with ADO control?
155. Is there any Edit method in ADO Data Access method?
156. How can you check whether a record is valid record or Invalid record using ADO control or Object?
157. What do you mean by provider?
158. What type of recordsets are available in ADO?
159. Is it possible to call oracle database through ADO control or Object?
160. How many File System Controls are there ? Explain.
161. How can you filter out specific type of file using file system controls?
162. How can you get selected file from file system Control?
163. How many ways we can access file using VB?
164. Which method is preferred to save datas like database?
165. How to get freefile location in memory?
166. How to find size of the file. Which method or function is used to occomplish this?
167. Using which type we can access file line by line?
168. Which method is used to write context Into file?
169. How can you read content from file?
170. Binary Access-method isused to access file in which manner?
171. How can you check Beginning and End of the file?
172. What is the use of Scalewidth and ScaleHeight Proeperty?
173. What is the use of Active Control Property?
174. What are the types of Error?
175. In which areas the Error occurs?
176. What are the tools available for Debuggiu in VB?
177. What is the use of Immediate, Local Window?
178. What is the use of debug Window?
179. How can you Implement windows functionality in VB?
180. How many types of API functions are availble in VB?
181. How can you Add API functions to your Application?
182. How to get Cursor position using API?
183. Is it possible to change menu runtime using API? If yes? Specify the function names.
184. What are the types of API Types.

Visual Basic Interview Questions-Part 3

Does VB/Win make standalone .EXE files?

What is the current version of Visual Basic for Windows? [++]

Where can I get updated VB and other Microsoft files?

Where can I get good up-to-date information about VB? [++]

Are there any examples of commercial applications built using Visual Basic?

What's the difference between MODAL and MODELESS forms? [++]

When/Why should I use Option Explicit?

Why does everybody say I should save in TEXT not BINARY?

Is the Variant type slower than using other variable types?

How do I make a text box not beep but do something else when I hit the Enter key?

How do I implement an incremental search in list/dir/combo/file boxes?

How do I get the Tab key to be treated like a normal character?

How do I make an animated icon for my program?

What is passing by reference?

I get a "file not found" error on the IIF function when I distribute by program. Why?

Is there any way to pass a variable to a form apart from using global variables?

How should dates be implemented so they work with other language and country formats?

Can a VB application be an OLE server?

How do I dial a phone number without using the MSCOMM VBX?

I have [several] megabytes of memory. Why do I get an "out of memory" error? [++]

How do I mimic a toggle button? [++]

How do I get my application on top?

Is there a way to break long lines in VB code?

How do I remove/change the picture property of a control at design time?

Is a [foo] VBX/DLL available as shareware/freeware?

How do I make my applications screen-resolution independent?

How do I do Peek and Poke and other low-level stuff? [++]

Why doesn't "my string" & Chr$(13) do what I want?

How do I prevent multiple instances of my program?

How do I implement an accelerator key for a text box?

How do I force a file dialogue box to reread the currect disk?

How do I get the number of free bytes on a disk? [++]

Data Control missing from toolbox when I use VB under NT 3.5. Why?

How do I tell when an application executed using the SHELL command is finished?

How do I access C style strings?

How can I change the printer Windows uses in code without using the print common dialog? How
can I change orientation?

How do I speed up control property access?

How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic?

How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

How can I create a VBX?

How do you change the system menu (on the Control-Menu Box)?

How do I play MID, WAV or other multimedia files?

How can I call a 'hidden' DOS program from VB?

How do I do drag & drop between applications?

How do I use GetPrivateProfileString to read from INI files?

How do I implement Undo?

How do I create a window with a small title bar as in a floating toolbar?

What is Pseudocode?

Does VB support pointers to functions?

How do I program the Novell NetWare API from VB?

How do you change the icon and otherwise manipulate the DOS box?

How do I make the mouse cursor invisible/visible?

How do I create controls dynamically (at run-time)?

How do I set the Windows wallpaper at runtime?

How do I call help files from a VB program? [**]

What is the Windows API?

How do I call a DLL?

What about DLL calls that require callbacks?

Why can't I use an index with my VB accessed database?

Is the Access Engine and Visual Basic Pro good enough for database work?

How do you avoid the "Invalid use of null" error when reading null values from a database?

What is "NULL"?

How can I access a record by record number?

How about Access 2.0 compatibility?

How come I get a "No Current Record" error when I use a a Data Control on an empty table?

How can I speed up my VB database application?

How do I get a bitmap picture in a field in an Access database?

What is "Reserved Error -1209"?

I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why?

Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?

VB Interview Questions

1. How do you register a component? Expected answer: Compiling the component, running REGSVR32 MyDLL.dll

2. Name and explain the different compatibility types when creating a COM component. Expected answer: No Compatibility ? New GUID created, references from other components will not workProject Compatibility ? Default for a new component Binary Compatibility ? GUID does not change, references from other components will work

3. Why iss it important to use source control software for source code? Expected answer: Modification history.Code ownership: Multiple people can not modify the same code at the same time.

4. What two methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful? Expected answer: SetComplete and SetAbort.

5. What is the tool used to configure the port range and protocols for DCOM communications? Expected answer: DCOMCONFIG.EXE

6. What does Option Explicit refer to? Expected answer: All variables must be declared before use. Their type is not required.

7. What are the different ways to Declare and Instantiate an object in Visual Basic 6? Expected answer: Dim obj as OBJ.CLASS with eitherSet obj = New OBJ.CLASS orSet obj = CreateObject(?OBJ.CLASS?) orSet obj = GetObject( ,? OBJ.CLASS?)orDim obj as New OBJ.CLASS

8. Name the four different cursor types in ADO and describe them briefly. Expected answer: The cursor types are listed from least to most resource intensive.Forward Only ? Fastest, can only move forward in recordset Static ? Can move to any record in the recordset. Data is static and never changes.KeySet ? Changes are detectable, records that are deleted by other users are unavailable, and records created by other users are not detectedDynamic ? All changes are visible.

9. Name the four different locking type in ADO and describe them briefly. Expected answer: LockPessimistic ? Locks the row once after any edits occur.LockOptimistic ? Locks the row only when Update is called.LockBatchOptimistic ? Allows Batch Updates.LockReadOnly ? Read only. Can not alter the data.

10. Describe Database Connection pooling (relative to MTS ) Expected answer: This allows MTS to reuse database connections. Database connections are put to ?sleep? as opposed to being created and destroyed and are activated upon request.

11. What are the ADO objects? Explain them. Provide a scenario using three of them to return data from a database. Expected answer: Connection ? Connects to a data source; contains the Errors collectionCommand ? Executes commands to the data source. Is the only object that can accept parameters for a stored procedure.Recordset ? The set of data returned from the database.Scenario: There are many possibilities. The most likely is as follows:Dim conn As ADODB.ConnectionDim rs As ADODB.RecordsetDim Cmd As ADODB.Commandconn.ConnectionString = ?CONNECTION STRING?conn.OpenSet Cmd.ActiveConnection = connCmd.CommandText = ?SQL STATEMENT?Set rs = Cmd.ExecuteSet rs.ActiveConnection = Nothingconn.Close

12. Under the ADO Command Object, what collection is responsible for input to stored procedures? Expected answer: The Parameters collection.

13. What are some benefits of using MTS? Expected answer: Database Pooling, Transactional operations, Deployment, Security, Remote Execution.

14. What is the benefit of wrapping database calls into MTS transactions? Expected answer: If database calls are made within the context of a transaction, aborting the transaction will undo and changes that occur within that transaction. This removes the possibility of stranded, or partial data.

15. Describe and In Process vs. Out of Process component. Which is faster? Expected answer:An in-process component is implemented as a DLL, and runs in the same process space as its client app, enabling the most efficient communication between client and component.Each client app that uses the component starts a new instance of it.An out of process component is implemented as an EXE, and unlike a dll, runs in its own process space. As a result, exe’s are slower then dll’s because communications between client and component must be marshalled across process boundaries. A single instance of an out of process component can service many clients.

16. What are the main components of the ADO object model? How are they used? Expected answer:Connection: Used to make a connection between your app and an external data source, ie, sql server.Command: Used to build queries, including user-specific parameters, to access records from a data source (which are returned in a Recordset)Recordset:Used to access records returned from an SQL query. With a recordset, you can navigate returned records. You can also add, modify or delete records.

VB 6, COM, DCOM, Microsoft platform interview questions

questions

1. 3 main differences between flexgrid control and dbgrid control
2. ActiveX and Types of ActiveX Components in VB
3. Advantage of ActiveX Dll over ActiveX Exe
4. Advantages of disconnected recordsets
5. Benefit of wrapping database calls into MTS transactions
6. Benefits of using MTS
7. Can database schema be changed with DAO, RDO or ADO?
8. Can you create a tabletype of recordset in Jet-connected ODBC database engine?
9. Constructors and destructors
10. Controls which do not have events
11. Default property of datacontrol
12. Define the scope of Public, Private, Friend procedures?
13. Describe Database Connection pooling relative to MTS
14. Describe: In of Process vs. Out of Process component. Which is faster?
15. Difference between a function and a subroutine, Dynaset and Snapshot, early and late binding, image and picture controls, linked object and embedded Object,listbox and combo box,Listindex and Tab index,modal and moduless window, Object and Class, query unload and unload in form, declaration and instantiation of an object?
16. Draw and explain Sequence Model of DAO
17. How can objects on different threads communicate with one another?
18. How can you force new objects to be created on new threads?
19. How does a DCOM component know where to instantiate itself?
20. How do I register a component?
21. How do I set a shortcut key for label?
22. What kind of components can be used as DCOM servers?
23. Name of the control used to call a Windows application
24. Name the four different cursor and locking types in ADO and describe them briefly
25. Need of zorder method, no of controls in form, Property used to add a menus at runtime, Property used to count number of items in a combobox,resize a label control according to your caption.
26. Return value of callback function, The need of tabindex property
27. Thread pool and management of threads within a thread pool
28. To set the command button for ESC, Which property needs to be changed?
29. Type Library and what is it’s purpose?
30. Types of system controls, container objects, combo box
31. Under the ADO Command Object, what collection is responsible for input to stored procedures?
32. What are the ADO objects? Explain them.
33. What are the different compatibility types when we create a COM component?
34. What do ByVal and ByRef mean and which is the default?
35. What does Option Explicit refer to?
36. What does the Implements statement do?
37. What is OLE and DDE? Explain.
38. What is the difference between Msgbox Statement and MsgboxQ function?
39. What keyword is associated with raising system level events in VB?
40. What methods are called from the ObjectContext object to inform MTS that the transaction was successful or unsuccessful?
41. What types of data access have you used.
42. What was introduced to Visual Basic to allow the use of Callback Functions?
43. Which controls can not be placed in MDI?
44. Which controls have refresh method, clear method
45. Which Property is used to compress a image in image control?
46. Which property of menu cannot be set at run time?
47. Which property of textbox cannot be changed at runtime?
48. What is the maximum size of a textbox?
49. Which tool is used to configure the port range and protocols for DCOM communications?

Ref: http://www.devbistro.com/tech-interview-questions/VB.jsp