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×

Perl Test Assessment

Topics Covered

  • Unix Shell Command in PERL
  • Nested Arrays
  • Anonymous Subroutine in PERL
  • Arithmetic Expressions in PERL
  • Numeric Literals in PERL

Useful for hiring

  • PERL Developer
  • PHP PERL Developer
  • Senior Software Engineer - Perl Programming

Start hiring job-fit candidates using this assessment


"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

Which of the following codes reads directory "/var/log" contents into a list?

    • @files = readdir "/var/log";

    • opendir(DIR, "/var/log");
      @files = readdir DIR;
      closedir DIR;

    • opendir(DIR, "/var/log");
      @files = listdir DIR;
      closedir DIR;

    • None of the mentioned


Which of the following functions is used to open a directory handle in Perl?

    • readdir

    • opendir

    • getidir

    • dir


What is the result of the variable $a in the following expression $a = !(9 % 2) || 3 && 4 % 1;?

    • 0

    • 1

    • 2

    • 3

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