Wednesday, 3 August 2011

Delphi Interview Questions

1) State and explain about Delphi?
Delphi is a product of Borland international. This powerful language tool is useful to create applications for Windows and it is primarily useful to create client side and server side applications. Cross platform compatibility is also a main feature of Delphi. It is an object oriented language and it is used to create applications with minimal coding.

2) How do you work with INI files in Delphi?
These files are very useful when creating applications under cross platform. These files are very useful to create cross platform applications. Delphi uses .INI format in the form of .dsk file which makes a user to store important information about desktop. Comments can be added by specifying a semicolon. Also they are separated by an equal to sign.

3) How to create UDL files in Delphi?
UDL files are very helpful if you want to store the server connection information outside the application which can be retrieved later during connecting time. This is very useful in creating UDL files which are very helpful where hard coded connection string is not acceptable. Also try to save the documents in the form of .udl which will help you to connect databases easily.

4) How to save binary files in Delphi?
Binary files are saved to Binary large object field which supports data of varying formats and indefinite size. This is in contrast to the file system which stores files of small data types. Binary large object field in Delphi allows changes to be made to data and methods. Loadfromfile class is used to store, manipulate, and transform data.

5) How to save images to a database with Delphi?
DBimage is compatible and can be used to save images with bitmap extension. If you would like to save images of other types then it is advisable to use Timage component which saves images. If you want to save an image at the start first it should be included in the stream and then transform into a database.
 
6) Explain about creating n tired applications using Delphi?
Using n tired applications you can create applications much faster with a minimal effort. The application server resides in the middle layer and acts as an intermediate between client and database server. Creating a web server in Delphi is a little bit different from other creations of application server.
 
7) How application server is different from other type of servers?
The only difference from an application server to other types of server is due to the presence of remote data module. Tremotedatamodulecomponent application can be created from the new items dialog box. It uses IAppserversoap interface which makes it possible to connect a client side service applications. Client side connection is sorted in application server.
 
8) Explain about event handler?
You can use event handlers to make sure that the transactions and operations confirm to the business code of ethic. They can significantly affect the data packets which are being sent out to the server for update. Data packets are very useful in giving critical updates at runtime.
 
9) Explain about Delphi`s VCL?
Delphi is easier to use rather than the API`s. It has strong windows connection and Borland has made things possible for portability on windows. It has a strong library and it maps windows 32. It supports API`s for properties and events. Borland is taking enough measures for back portability for windows.
 
10) How do you display & in Delphi?
Delphi has a host of visual controls. If you would like to display and or the ampersand in between two sentences then you have to actually specify && between two sentences whereby Delphi will understand that you are actually specifying and between two sentences and not an accelerator.
 
11) Explain about the Delphi IDE?
Delphi has a very sophisticated drag and drop controls. With Delphi IDE you can create rich applications for windows. With its IDE you can compile, debug, and design your projects. It has a main window which has lots and lots of buttons which perform different functions on your project. Through this main window you give title to your project. There is also a component section through which you can select different component functions which can perform various task.
 
12) What are packages in Delphi?
Packages can make the size of your program (.exe) much smaller. Borland package libraries are dll files which provide extension for programs so that they can be executed. When you specify a certain extension to a program, it makes your hard disk to locate those types of files very easily. Packages contain Delphi components which are visual and easy to operate.
 
13) Explain about the textual description of the form?
This form describes the properties, properties of the components and the components for itself. This is known as the binary file and this contains description of the different types present. This has been introduced in Delphi 5. On loading this file in the code editor of Delphi makes the program visual in text form. This is not a text file but gives you wrong impression about it being a text form.
 
14) Explain about DPR?
Apart from two important files (PAS and DFM) there is a third file known as (DPR) or Delphi project file. Delphi project file is automatically built by the compiler. There are two ways to edit the file one is through manually and the other is through Delphi project manager. The source file which you will be seeing is a Pascal source file. All the commands which are describing the file can be seen here.
 
15) Describe about help file in Delphi?
Help command in Delphi is very resourceful either to a professional or to a beginner. Different properties, functions and methods are listed in the help section for each component. Also the help properties, functions and methods are described in the form of Acrobat adobe reader. There are also tips and hints for programmers which help you in programming Delphi. You can search the help file for different support functions.
 
16) Describe about the project menu?
This project menu has commands which help you in managing a project. You can add a specific project and also you can remove the project file. Pascal source files can be added as well as removed from the project file. Enterprise edition has two more commands such as web deploy options and web deploy. Syntax check button can make you check the source program of the file.
 
17) Explain about data base form wizard?
This is one of the important data base wizards in Delphi. This command is available in the Database form wizard section in the forms page. Application wizard and Dialog wizard are also present in Delphi. Two forms appear out of which you have to select one form. You would also have an option to choose from two forms master and beginner.

0 comments:

Post a Comment

Popular Posts

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | cheap international calls