exam questions

Exam CAD All Questions

View all questions & answers for the CAD exam

Exam CAD topic 1 question 77 discussion

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

Which one of the following is true for this script fragment?
g_user.hasRole('x_my_app_user');

  • A. There is no g_user.hasRole() method
  • B. The method returns false only if the currently logged in user has the x_my_app_user role
  • C. The method returns true only if the currently logged in user has the x_my_app_user role
  • D. The method returns true if the currently logged in user has the x_my_app_user role or the admin role
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
GoMaggieO2
3 months, 4 weeks ago
Selected Answer: D
https://www.servicenow.com/community/now-platform-forum/g-user-harrole-g-user-hasroleexactly-and-g-user-hasroles/m-p/1095998
upvoted 2 times
...
stophs
10 months ago
Selected Answer: D
d is correct
upvoted 1 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