exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

Exam CAD topic 1 question 51 discussion

Actual exam question from ServiceNow's CAD
Question #: 51
Topic #: 1
[All CAD Questions]

Which one of the following is NOT a method used for logging messages in a server-side script for a privately-scoped application?

  • A. gs.log()
  • B. gs.error()
  • C. gs.warn()
  • D. gs.debug()
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
VirtuaLee
Highly Voted 2 years, 6 months ago
Scoped Application Script Logging gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions.
upvoted 5 times
...
arango
Most Recent 2 days ago
Selected Answer: A
Keep in mind that, info, error, warn and debug logging methods are not only intended for Scoped Applications but can also be used in the Global Scope. However, these logging methods provide verbosity levels to a log message. Another consideration is that gs.log() cannot be used if you are developing in a scoped application.
upvoted 1 times
...
manikanta_gnbv
7 months, 1 week ago
Selected Answer: A
gs.log is not used in scoped applications
upvoted 2 times
...
xxshinichan
1 year, 4 months ago
gs.print() and gs.log() are older and not available in scoped applications, whereas gs.debug(), gs.info(), gs.warn(), gs.error() work in both scoped applications and global are therefore are more versatile going forward in future versions. Reference: https://developer.servicenow.com/dev.do#!/guides/utah/now-platform/tpb-guide/debugging_best_practices
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago