CAD practice question 23 of 35
There is a basic strategy when creating a Utils Script Include. Identify the step that does not belong.
Full set: 264 questionsA utility Script Include is a general-purpose library that is not tied to any particular table. The documented procedure is:
1) define the class with Class.create();
2) build the prototype object for that class;
3) add one or more functions inside the prototype. Selecting a table is required for Business Rules, UI Policies, Table-Scoped Scripted REST APIs, etc., but plays no part in the construction of a utility Script Include. Therefore, “Identify the table” is the only step that does not belong.
B. Writing one or more functions inside the prototype provides the utilitarian behaviour; it is a required step.
C. Every Script Include begins by declaring a class with Class.create(); hence this is essential.
D. The prototype object (containing the methods and the type property) must be created; otherwise the class has no executable body.
1. ServiceNow Product Documentation – “Create a server-side utility Script Include”, docs.servicenow.com, Madrid-Tokyo releases: steps 1-3 (Define class, Create prototype, Add functions).
2. ServiceNow Developer Site Learning Path “Server-Side Scripting > Script Includes > Utility Script Includes”, Lesson text ¶3-¶6 describing the same three steps (no table selection mentioned).
3. ServiceNow Courseware “Scripting in ServiceNow Fundamentals”, Module 5, p. 7: checklist for utility Script Include creation (class → prototype → functions; table not applicable).
Keep practicing
Take the free CAD practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CAD practice questions
- Question 1Which options are strategies for debugging client-side scripts? Choose 2 answers
- Question 2Which of the following is a good practice for adding instructions to a form?
- Question 3Identify characteristic(s) of a Record Producer. Choose 3 answers
- Question 4Exportitem table is extended from Item table with the additional column of ItemCountry ad…
- Question 5Which one of the following is the fastest way to create and configure a Record Producer?
- Question 6On what part of the ServiceNow instance, would you find the option to Impersonate User?
