Visual basic interview questions with answers pdf




















Carking an interview at very first attempt need very hard working and should have a good knowledge on all concepts as well. Visual Basic is a 3 rd generation event-driven programming language and combined development environment from Microsoft for its Component Object Model programming model first released in and professed legacy during For any other further details on Visual Basics jobs visit our site www.

Question 1. Question 2. Answer : All variables must be declared before use. Their type is not required. Question 3. Answer : Dim obj as OBJ. Question 4.

Answer : 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 detected Dynamic: All changes are visible.

Question 5. Answer : LockPessimistic: Locks the row once after any edits occur. LockOptimistic: Locks the row only when Update is called. LockReadOnly: Read only. Can not alter the data. Question 6. What Are The Ado Objects? Explain Them. 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 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. Question 7. Answer : shape, line controls. Question 8. Answer : Cancel. Question 9. What Is Ole Used For? Answer : Object linking and embedding, for using to other object classes like word, excel , autocad objects in our own applications, only thing we have to add reference for these objects. Question Which Controls Have Refresh Method?

Errors are caught at compile time. Early binding also results in faster code Eg : Dim ex as new Excel. Late binding on the other hand permits defining generic objects which may be bound to different objectsyou could declare myControl as Control without knowing which control you will encounter.

You could then query the Controls collection and determine which control you are working on using the TypeOf method and branch to the section of your code that provides for that type Eg : Dim ex as Object. Answer : Option Base is to set the Index of the Array to start from 0 or 1.

Like option explicit.. Answer : Clipboard. SetData and Clipboard. What is the max size allowed for Msgbox Prompt and Input Box? What is the max size allowed for Max label caption length? How many procedures are in VB? What is the max size allowed for Max Control Names length? Record set types and Number available in VB? What is the max size allowed for Max Text box length. Code ownership: Multiple people can not modify the same code at the same time.

SetComplete and SetAbort. All variables must be declared before use. Their type is not required. Dim obj as OBJ. 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.



0コメント

  • 1000 / 1000