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×

Yii Online Skills Assessment Test

Topics Covered

  • Cookies
  • Sessions
  • Models
  • Controllers
  • Caching
  • Assets
  • Controllers
  • Installation

Useful for hiring

  • Yii Developer
  • PHP Web Developer
  • Full-Stack Web Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

Suppose you are using the CMemCache class for creating a cache of your YII application's data. How can you make your class use the memcache extension for the caching service?

Answer
    • Set the $useMemcache property to True.

    • Set the $extension property to "memcache".

    • Set the $extension property to "memcached".

    • Set the $useMemcached property to be false.

Question

You stored the value of a variable $myVar in a cache for 45 seconds by implementing a caching technique using CCache class of the Yii framework. If this cache must be invalidated as soon as the "memData.php" file changes then, select the option that shows the correct implementation of the same.

Answer
    • Yii::app() -> cache -> set('var1', $myVar, 45, new CFileCacheDependency('memData.php'));

    • Yii::app() -> cache -> set('var1', $myVar, 45);
      Yii::app() -> cache -> setFileDependency('memData.php);

    • Yii::app() -> cache -> set('var1', $myVar, 45, setFileDependency('memData.php'));

    • Yii::app() -> cache -> set('var1' = $myVar, new);
      Yii::app() -> cache -> CFileCacheDependency('memData.php', validity = 45);

Question

You have created a cache for your Yii application using the CCache class and stored a variable into it. You also set a dependency for the cache on a particular file. What will happen if you try to access (via get()) the cached variable after the dependency file gets modified?

Answer
    • The older value of the cache will be returned with a warning to reload the data.

    • The dependency and cache get automatically refreshed, and the new value of the variable is returned.

    • False boolean value is returned as the dependency data needs to be refreshed manually.

    • The actual value from the database will be retrieved as the cache becomes invalid.

Test details:

Identify potential hires using Yii quiz test by evaluating working skills and job readiness of the applicants. For this reason, an emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False.

Test Duration: 20 minutes

10 Application Questions

Assessment test on Yii PHP framework contains a combination of application and theory questions that help you to evaluate technical as well as practical skills of candidates.

Test description:

Yii Online Test is specifically designed & developed by experienced subject matter experts (SME)s to assess Yii programming skills of candidates - as per Industry Standards.

Yii is an open-source, high-performance PHP framework for developing the web applications. It includes key features like MVC, authentication & role-based access, Database Access Objects (DAO), testing, caching, etc. The Yii framework helps developers in creating clean & reusable code. It uses the latest features of PHP, like traits and namespaces. Yii developer is responsible to write an optimized web application quickly & easily.

Online Yii test assists recruiters & hiring managers to validate skills of Yii developer before an interview.

Yii test contains questions on following Topics:
 

  • Cookies

  • Sessions

  • Models 

  • Controllers

  • Caching

  • Assets

  • Controllers

  • Installation


Use our scientifically designed online skill test on Yii framework for candidate screening or ask us for the customizable assessment with all your requirements. Our support team will assist you to create a tailor-made test for you.

Our intelligent reports will help you to gauge the technical strengths of the candidate to make the right hiring decisions.

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 support@interviewmocha.com 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...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO