Delphi Test Assessment

Topics covered

Constructors, Delphi Data Acquisitions, Delphi I/O Port Programming, Delphi COM References, Delphi Database Notes

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

Delphi test is useful to effectively assess the skills of candidates before an interview. Delphi Test is a programming language and software development for desktop, mobile, web and console applications and it uses Object Pascal which continues to develop as its underlying the object oriented language. It is designed to check the development and application skills. The test is created and validated by Subject Matter Experts. 

The Delphi Test contains questions on following topics:  

  • Constructors

  • Delphi Data Acquisitions

  • Delphi I/O Port Programming

  • Delphi COM References

  • Delphi Database Notes

This pre-employment test is useful for hiring:
  • Delphi Developer

Test details:

Delphi Test enables employers and recruiters to evaluate skills and job readiness of candidates. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

Test Details: 20 minutes 

20 Application Questions


The combination of Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates.

Delphi Test

Question #1 of 3

Suppose, there is the next class hierarchy:

  TAncestor = class
     ...
     procedure SomeMethod; virtual;
     ...
  end;
  TInheritor = class (TAncestor)
    ...
     procedure SomeMethod; {directive}
    ... 
  end;

Specify the problems for these lines of code.
var
    Inheritor: TInheritor;
    Ancestor: TAncestor;
begin
    Inheritor := TInheritor(TAncestor.Create); {a}
    Inheritor.SomeMethod(); {b}
    Inheritor.Free;    
    
    Ancestor := TAncestor(TInheritor.Create); {c}
    Ancestor.SomeMethod(); {d}
    Ancestor.Free;
end;

    • line {a} will raise exception at runtime

    • line {b} will raise exception at runtime if TInheritor.SomeMethod marked as virtual

    • line {c} will raise exception at runtime

    • line {d} will raise an exception at runtime if TInheritor.SomeMethod marked as override

    • line {d} will raise an exception at runtime if TInheritor.SomeMethod marked as virtual

Question #2 of 3

Suppose, we have interface declaration, and classes declared as:

  ISomeInterface = interface(IInterface)
      ['{F4FAEE2B-FA98-4240-84FF-647725844C8F}']
      procedure SomeActivity;
  end;
  TImplementator = class(TInterfacedObject, ISomeInterface)
    procedure SomeActivity;
  end;

  TMaster = class
      private
        Obj: TImplementator;
      public
        constructor Create;
        function GetInterfacedObj: ISomeInterface;
  end;

with the follow implementation of TMaster:

constructor TMaster.Create;
begin
    Self.Obj := TImplementator.Create;
end;
function TMaster.GetInterfacedObj: ISomeInterface;
begin
    RESULT := Self.Obj;
end;

Which letters will contain the result of the Test() function call?

function Test: string;
    var Objt: TImplementator;
        Obji: ISomeInterface;
        Master: TMaster;
        ch: char;
        log: string;

    procedure Activity(Master: TMaster);
    begin
        Master.GetInterfacedObj.SomeActivity();
    end;
    
    begin
        log := '';
        try
            Master := TMaster.Create;
            try
                for ch := 'a' to 'b' do
                try
                    Activity(Master);
                except on E: Exception do
                    log := log + ch;
                end;
                try
                    
                except on E: Exception do
                    ShowMessage('');
                end;
            finally
                Master.Free;
            end;


            Objt := TImplementator.Create;
            try
                for ch := 'c' to 'd' do
                try
                    Obji := Objt;
                    Obji.SomeActivity();
                except on E: Exception do
                    log := log + ch;
                end;
            finally
                Objt.Free;
            end;
        except on E: Exception do
            log := log + 'e';
        end;
        RESULT := log;
end;

Note: There can be multiple correct answers to this question.

    • a

    • b

    • c

    • d

    • e

Question #3 of 3

There is the class declaration as below:

    TDataContainerClass = Class
        private
            IndexedData: array[0..255] of Integer;
            function GetData(Index: Integer): Integer;
            procedure SetData(Index: Integer; Value: Integer);
        public
            property Data[Index: Integer]: Integer read GetData write SetData; default;
            property Tail: Integer Index 255 read GetData write SetData;
    End;

Also, integer variable val has declared.
    
Select lines of syntactically correct blocks of code, using  DataContainer: TDataContainerClass object.

Note: There can be multiple correct answers to this question.

    • DataContainer(1) := $FF SHR 1;
      val := DataContainer.Data(0);

    • DataContainer.Tail := DataContainer[0];

    • DataContainer.Data.Tail := DataContainer[0].Data;
      val := DataContainer[0].Data;

    • DataContainer.Data(0) := $FF;

    • DataContainer.Data[0] := $FF;
      val := DataContainer[0];

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address
Status
















24.00 Out of 40.00
Pass
60%
03
23 Minutes

Java EE

9/10

Hibernate

3/10

Oracle PL/SQL

7/10

Analytical Thinking

5/10

Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.

Strengths

Java EE, Oracle PL/SQL, Analytical Thinking

Weaknesses

Hibernate

Happy

It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo

How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • hexaware
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Sign up for a free trial today

Get your free trial and test up to 10 candidates. No strings attached. No credit card required.

SIGN UP FOR FREE

Schedule a Demo