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×

ServiceNow Developer Online Test

Topics Covered

  • Business Rule
  • Client Script
  • Scripted Web Service
  • REST web service
  • UI Script
  • System Properties
  • Processor

Useful for hiring

  • ServiceNow Developer
  • ServiceNow Analyst
  • ServiceNow Specialist

Start hiring job-fit candidates using this assessment

GET A DEMO

"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."

Christoph, e-Zest GmbH
Question

var testvar = new GlideAjax("TestScriptInclude");
testvar.addParam("sysparm_name", "test");
testvar.addParam("sysparm_var, "
        hello variable ");
        testvar.getXML(); alert(testvar.getAnswer());

        function "test"
        contains,

        test: function() {
            return "hello";
        }

What is the response in alert?

Answer
    • hello

    • undefined

    • null

Question


If "jvar_test_2 = false" set the value of "jvar_test_1" to true.

Which of the following code snippet can be used?

Answer
    • <j:if test="{jvar_test_2 == 'false'}">
      <j:set var="jvar_test_1" value="true" />
      </j:if>
       

    • <j:if test="$[jvar_test_2 == 'false']">
      <j:set var="jvar_test_1" value="true" />
      </j:if>
       

    • <j:if test="${jvar_test_2 = 'false'}">
      <j:set var="jvar_test_1" value="true" />
      </j:if>
       

Question

The following code is in business rule running on the incident table before "insert".

 if(current.short_description == "test")  {
    current.work_notes = "testing done"; 
    current.setAbortAction(true);
}

Now if the user enters short_description as "test" and creates an incident, what is the consequence?

Answer
    • Incident gets created and work notes get updated.

    • Incident gets created by showing an error "Invalid insert" as setAbortAction(true).

    • Incident doesn't get created as setAbortAction(true).

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