visual basic 6.0 interview questions

If youre looking for VB.NET Interview Questions and Answers for Experienced or Freshers, you are at the right place. There are a lot of opportunities from many reputed companies in the world. According to research, VB.NET has a market share of about 87.63%. So, You still have the opportunity to move ahead in your career in VB.NET. Mindmajix offers Advanced VB.NET Interview Questions 2022 that helps you in cracking interview & acquire your dream career as VB.NET Developer.

Visual Basic Important Question Answers (Part 1) | DCA | BCA | PGDCA | MCA

An in-process component is implemented as a DLL called ActiveX 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 called ActiveX 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.

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 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

Early binding allows developers to interact with the object’s properties and methods during coding permits the compiler to check your code. Errors are caught at compile time. Early binding also results in faster code Eg : Dim ex as new Excel.Application 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 set ex =CreateObject(“Excel.Application”)

Interview questions and Answers for Vb 6 controls, syntax, language, object, class, database access, activex, api, com, dcom

Interview questions and answers for Visual basic 6.0 basics and advance level, VB6 Interview questions and answers including vb6 syntax, datatype, functions, events, classes, objects, com, dcom, activex control. Windows API interview question and answers for vb6. VB 6 interview questions includes, using controls, activex, object oriented programming (OOP) concept, in-process and out-process server, creating and using dlls, user controls, data access technology like Data Access Object (DAO), Activex Data Object (ADO), Setup and deployment, registering component, using data reports, Windows application programming interface (WIN API).

Visual Basic Interview Questions

  • How Do You Register A Component?
  • What Does Option Explicit Refer To?
  • Name The Four Different Cursor Types In Ado And Describe Them Briefly
  • Name The Four Different Locking Type In Ado And Describe Them Briefly.
  • What Is Ole Used For ?
  • What are the three main differences between flexgrid control and dbgrid(Data bound Grid) control?
  • What is difference between inprocess and out of process ?
  • What are Benefits of wrapping database calls into MTS transactions?
  • What is the difference between and Picture box controls?
  • Visual Basic Interview Questions And Answers

    Q. How Do You Register A Component?

    Answer : Compiling the component, running REGSVR32 MyDLL.dll

    Q. What Does Option Explicit Refer To?

    Answer :

    All variables must be declared before use. Their type is not required.

    Q. Name The Four Different Cursor Types In Ado And Describe Them Briefly.

    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.

    Q. Name The Four Different Locking Type In Ado And Describe Them Briefly.

    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.
  • Q. 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.

    Q. What are the three main differences between flexgrid control and dbgrid(Data bound Grid) control?

    Ans. 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 ADO.

    DC 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 the DataGrid control.

    Q. What is difference between inprocess and out of process ?

    Ans. 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.

    Q. What are Benefits of wrapping database calls into MTS transactions?

    Ans. 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. Transaction that uses the Microsoft® Transaction Server (MTS) environment. MSMQ implicitly uses the current MTS transaction if one is available.

    BENIFTIS OF USING MTS :

    Database Pooling, Transactional operations, Deployment, Security, Remote Execution 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.

    Q. What is the difference between and Picture box controls?

    Ans. The sizing behavior of the control differs from that of the picture box. It has a Stretch property while the picture box has an AutoSize property. Setting the AutoSize property to True causes a picture box to resize to the dimensions of the picture; setting it to False causes the picture to be cropped (only a portion of the picture is visible). When set to False (the default) , the Stretch property of the control causes it to resize to the dimensions of the picture.

    Setting the Stretch property to True causes the picture to resize to the size of the control, which may cause the picture to appear distorted.

    Q. What is the Default property of datacontrol ?

    Ans. connect property.

    System.Data namespace is used for accessing and managing data from the required data source. This namespace deals only with the data from the specified database.

    Variable must be compulsorily declared when the Option Explicit is termed as ON. If it is OFF, variables can be used without declaration.

    TRACE allows the user to view how the code has been executed in detail. This tells how the code is working.

    Managed Code is used to run inside the CLR environment and it is called as .NET run time. All Intermediate Language (IL) are set to be Managed code.

    Strong Name is an important feature of .Net and it is used to identify shared assembly uniquely. Strong name has solved the problem of creating different object with same name and it can be assigned with the help of Sn.exe.

    FAQ

    What is Visual Basic 6.0 used for?

    Abstract. Visual Basic is a part of the Microsoft Visual Studio and is the flagship development language for Microsoft. You can develop applications for a stand—alone or networked computer system, you can create your own controls and even develop applications for the Internet.

    Is Visual Basic 6.0 still used?

    Visual Studio 6 was released in June 1998 and is the last version to run on the Windows 9x platform. It still runs on Windows 10 because of backward compatibility. Some Visual Basic 6 code still exists within many enterprise companies, and the language remains in use even though it was discontinued in 2005.

    What is VB.NET interview questions?

    VB.Net Interview Questions for Freshers
    • State some advantages of using VB.NET. …
    • What do you understand by metadata and namespace? …
    • State some key differences between VB.NET and Visual Basic. …
    • State some key differences between C# and VB.NET. …
    • What do you understand about assembly in VB.NET?

    Is VB.NET and VB6.0 same?

    VB6 was interpreter based language while VB.NET is a compiled language. VB6 is non-object oriented principle based language. Whereas, VB.NET , from a coding style perspective looks similar to old VB6, but, has more power to it, just because it sits on the . Net platform.

    Related Posts

    Leave a Reply

    Your email address will not be published. Required fields are marked *