Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ServiceNow CAD Exam - Topic 2 Question 58 Discussion

Posted by Joesph on Oct 02, 2023 at 07:35 PM

Which one of the following is true for this script fragment?

g_user.hasRole(,x_my_app_user');

Get Premium CAD Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
16 comments · newest first
OR
Oretha 11 months ago
Definitely not B, that sounds off.
FL
Fletcher 11 months ago
I thought it only checks for specific roles, so D makes sense.
GE
Georgiann 11 months ago
Wait, is there really no g_user.hasRole() method?
LI
Lizbeth 12 months ago
Nah, I’m pretty sure it’s option D.
DA
Dan 12 months ago
I think option A is correct.
AV
Avery 1 year ago
I believe the method returns true only for the specified role, so I’m leaning towards option D, but I could be wrong.
SO
Son 1 year ago
I’m a bit confused about the method itself. I don’t recall if g_user.hasRole() is a valid method or not.
KE
Keshia 1 year ago
I remember practicing a question similar to this, and I think it was about checking multiple roles. Could it be option A?
TA
Tanesha 1 year ago
I think the method checks if the user has a specific role, but I'm not sure if it only returns true for that role or if it includes admin as well.
PE
Pete 1 year ago
Ah, I see. The key here is to determine whether the method returns true if the user has the `x_my_app_user` role, or if it also considers the admin role. I'll need to think this through carefully.
CA
Carli 1 year ago
This seems straightforward enough. I think I have a good grasp of how the `g_user.hasRole()` method works, so I'll try to apply that knowledge to this question.
DO
Doretha 1 year ago
Okay, let's see. The question is asking about the behavior of this specific script fragment, so I'll need to focus on understanding the method call and the possible return values.
KE
Kenneth 1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through the options and think about the behavior of the `g_user.hasRole()` method.
TE
Terry 1 year ago
I'm a bit confused by the wording of the options. I'll need to make sure I fully understand what each one is saying before selecting an answer.
HE
Hershel 1 year ago
Okay, I've got this. The initial activity attributes include things like the activity name, dependencies, and assumptions. I'm pretty confident that's the right answer.
GL
Glenn 1 year ago
Okay, let's think this through. The fault attack is about forcing errors from the software/OS interfaces, so I'm guessing we're looking for a failure that's related to that, like a crash or incorrect behavior.
0/2000 characters

Save Cancel