Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

Phalcon Online Test

Topics Covered

  • Controllers - Services
  • ACL Access Level
  • ACL Roles
  • Controllers - Request Handling
  • Controllers - Contractors
  • Controllers - Request Handling
  • ACL Resources
  • Persistent Data
  • ACL Access Level

Useful for hiring

  • Phalcon Developer
  • Full-Stack Web Developer
  • Senior PHP Developer

Start hiring job-fit candidates using this assessment


"Finding quality talent is a challenge more so when you consider the sheer number of resumes we get each year. To top this, the time we spent on our recruitment process was humongous. Interview Mocha helped us to cut down on our candidate filtration time by 40%, making it our preferred assessment tool."

Pedro Furtado, Altran,
Capacity Manager

Following is the code used to register a service in a Phalcon application. How can this service be accessed in a controller that extends the Controller class of Phalcon?

    function () {
        return new Repository(

    • datarepo->save('/my/file');

    • di->get('datarepo')->save('/my/file');

    • di->getRepository()->save('/my/file');"    "$serviceDi= new Di();

    • None of the mentioned


You have a web application written in Phalcon. The URL to one of its pages is as follows:


Which of the following options is true regarding the breakdown of this URL when some tries to access it?

    • The URL does contain any Phalcon directory. 

    • The request is handled using the ShowController.

    • Two parameters are passed to the action method.

    • The request doesn't require any Controller.


Suppose you use the initialize() method inside a controller class for your Phalcon application. Select the option that justifies the statement given below.

The initializer code is never gets executed before authorization.

    • When the initialize() method is invoked, the user is asked to provide his authorization details.

    • The initialize() method invokes the authorizeUser event, which if failed, breaks the initialization process.

    •  The initialize() method is linked to an SSH event to authorize the user automatically if his/her credentials are present in the DB.

    • The initialize() method gets executed only after the successful execution of the beforeExecutionRoute authorization event.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates