GeekInterview.com
Series: Subject: Topic:

Delphi Interview Questions

Showing Questions 1 - 20 of 27 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Delphi components

Asked By: PranavWagde | Asked On: Oct 22nd, 2009

What is the default extension of file when we create user components?

Answered by: mrcaston on: Nov 4th, 2009

.dcp

Delphi active x controls

Asked By: PranavWagde | Asked On: Oct 22nd, 2009

What are the active x control in delphi 6?

OOPS concept in delphi

Asked By: PranavWagde | Asked On: Oct 22nd, 2009

How does the OOPS concepts/feature like encapsulation, polymorphism, abstraction etc are implemented in delphi? Provide an example.

How is message handling handled in delphi?

Asked By: nehalshah | Asked On: Mar 25th, 2007

Answered by: EditCDC on: Jul 16th, 2009

Define custom message
const
  WM_MY_MESSAGE = WM_USER + 0;

Define handler for message
  type
  TMyForm = class(TForm)
  private
    procedure OnMyMessage(var Msg: TMessage); message WM_MY_MESSAGE;

Send or Post message
  PostMessage(self.Handle,WM_MY_MESSAGE,0,0)

Answered by: delphiking on: Jan 9th, 2009

Through event handlers. You can also define your own messages using the WMUSER constant.

Here are some suggested delphi interview questions. describe how components are loaded from a dfm file at runtime. What is the difference between tgraphiccontrol and twincontrol? Write a function that...

Asked By: Ronald Vijay | Asked On: Jul 6th, 2006

Answered by: EditCDC on: Jul 16th, 2009

TGraphicControl vs TWinControlThe TGraphicControl class provides the capability to have controls which are not windowed controls (they have no window handle). TWinControl is the base class from whic...

What is contained in the code unit of delphi?

Asked By: SachinDeo | Asked On: Mar 25th, 2007

Answered by: EditCDC on: Jul 16th, 2009

To add a new code unit in Delphi
choose File-New ... Unit.

//**blank code unit

unit Unit2;
interface
{interface code goes here}
implementation
{implementation code goes here}
end. //this ends the unit

How is dynamic array's memory space removed in delphi?

Asked By: SachinDeo | Asked On: Mar 25th, 2007

Answered by: EditCDC on: Jul 16th, 2009

Declaration
ADynamicCharArray :  ^CharArrayType;

Allocation
ADynamicCharArray := AllocMem(NumChars * sizeof(char));

Release
FreeMem(ADynamicCharArray, NumChars * sizeof(char));

Answered by: delphiking on: Jan 9th, 2009

By using the finalize keyword

What are components in delphi?

Asked By: nehalshah | Asked On: Mar 25th, 2007

Answered by: EditCDC on: Jul 16th, 2009

Components are commonly of two kinds

Visual and Non-visual

Ex. Visual
Labels
Edit boxes
A visual component is one that helps make graphical building blocks.

Ex. Non-visual
TQuery
TThread/Timer

What is the use of database form wizard in delphi?

Asked By: sripri | Asked On: Mar 25th, 2007

Answered by: ronaldvijay on: Jun 15th, 2009

This wizard helps you to build a Database Form with Ttabale, TDatasource and all the TDatabaseEdit Control without you droping each component.

Cheers,
Vijay

What is the use of initialization and finalization sections of delphi?

Asked By: RyanJames | Asked On: Mar 26th, 2007

Answered by: raphychiramel on: Mar 20th, 2009

The initialization section isĀ optional. It begins with the reserved word initialization and continues until the beginning of the finalization section or, if there is no finalization section, until th...

Answered by: gopalar on: Oct 24th, 2008

Every delphi unit(pas file) you can have Initialization and Finalization section which will be executed during unit load and unlond respectively

Unit2.pas

unit Unit2;

interface

uses
implementation

Initialization
//Do your Initialization Steps Here
Finalization
//Do your Finalization Steps Here
end.

What must be done to make scroll bars appear automatically in delphi?

Asked By: scott | Asked On: Mar 25th, 2007

Answered by: delphiking on: Jan 9th, 2009

Set the form's autoscroll property to true.

Delphi array types

Asked By: RyanJames | Asked On: Mar 26th, 2007

What are the types of arrays handled by delphi?

Answered by: ngoski on: Nov 16th, 2008

There are two types of arrays. 1.Static - array[indexType1, ..., indexTypen] of baseType
2. Dynamic - array of baseType

What is project file in delphi?

Asked By: Robert | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

File with .dpr extension is the project file. It comprises all the unit names used in the application along with their path in the hard disk (and the form name if the unit is associated with a .dfm fi...

What is the clause used with interface section of delphi?

Asked By: StephenRaj | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

Interface clause is used to represent the interface scetion in delphi. The interface contains the type declarations, var declarations.

What is tform object in delphi?

Asked By: StephenRaj | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

Tform is the .dfm file associated with any delphi application. Tform acts as a parent and owner for the components placed on it. Every .dfm file has a .pas file associated with end.

What is the environment on which delphi was based?

Asked By: SachinDeo | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

Object Pascal

What are the code sections that get added automatically by delphi when a form is created?

Asked By: sripri | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

unit {unit name}
uses
interface
type
end;
var
implementation

What is the use of container?

Asked By: Robert | Asked On: Mar 25th, 2007

Answered by: mahaswetha on: Sep 8th, 2008

Container is used to hold the components. It's the responsibility of the container to request the visible controls placed on it to paint themselves. The container is also responsible for creating and...

What is the use of tactiveform object in delphi?

Asked By: RyanJames | Asked On: Mar 26th, 2007

Answered by: riyazthandora on: Jul 24th, 2008

TActiveForm is the base class for a VCL Form exposed as an ActiveX control. TActiveForm represents a form that is created by a class factory (in Delphi) or using the Active Template Library (C++) and ...

What is the use of GLobalmemorystatus() function in delphi?

Asked By: RyanJames | Asked On: Mar 26th, 2007

Answered by: riyazthandora on: Jul 24th, 2008

  It is a function in Delphi to find the Total memory status.It accepts TMemoryStatus variable as var parameter.It fills the variable entity with different memory status info like Total phisical...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.