Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Okta Certified Administrator Exam - Topic 4 Question 65 Discussion

When using Okta Expression Language, which of the following will have the output: This is a testSolution: String.replace("That is a test", "is", "at")
A) Yes
B) No

Okta Certified Administrator Exam - Topic 4 Question 65 Discussion

Actual exam question for Okta's Okta Certified Administrator exam
Question #: 65
Topic #: 4
[All Okta Certified Administrator Questions]

When using Okta Expression Language, which of the following will have the output: This is a test

Solution: String.replace("That is a test", "is", "at")

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Alyce
6 months ago
Agreed, it's a classic mistake with string replacement.
upvoted 0 times
...
Regenia
6 months ago
Pretty sure it should output "That at a test."
upvoted 0 times
...
Stephaine
6 months ago
Wait, really? I thought it would work!
upvoted 0 times
...
Viva
6 months ago
I thought it was yes at first!
upvoted 0 times
...
Karl
6 months ago
That's definitely a no.
upvoted 0 times
...
Raymon
7 months ago
I feel like this is tricky; I thought the replace method would just change the words directly, but I'm not confident about the final output.
upvoted 0 times
...
Ammie
7 months ago
I'm leaning towards "No" because "That is a test" doesn't match the output "This is a test" after the replacement.
upvoted 0 times
...
Theodora
7 months ago
I remember a similar question where we had to replace parts of a string, but I can't recall the exact syntax for Okta Expression Language.
upvoted 0 times
...
Helaine
7 months ago
I think the replace function changes "is" to "at", but I'm not sure if it will give the exact output we need.
upvoted 0 times
...
Alecia
8 months ago
Easy peasy! The solution provided is the correct answer. String.replace() is a standard Java method, and it will output "This is a test" just as the question states. I'm feeling confident about this one.
upvoted 0 times
...
German
8 months ago
Okay, I think I've got this. The key is that the question is specifically about Okta Expression Language, not just general Java string manipulation. I'll need to review my notes on Okta's syntax and functions to make sure I choose the right answer.
upvoted 0 times
...
Torie
8 months ago
Hmm, I'm a little confused by this one. The solution shows the replace() method being used, but the question is asking about Okta Expression Language. I'll need to think this through more carefully.
upvoted 0 times
...
Olive
8 months ago
I'm pretty sure the answer is A. The question is asking about the output of the String.replace() method, and the solution provided shows that the string "That is a test" will be replaced with "This is a test".
upvoted 0 times
...
Barrett
1 year ago
If this question was a pizza, it would be a 'That is a test' special. Jokes aside, B) No is the correct answer here.
upvoted 0 times
...
Arlene
1 year ago
String.replace()? More like String.disappointment() in this case. Looks like I need to brush up on my Okta Expression Language skills.
upvoted 0 times
...
Reena
1 year ago
Ha, I almost fell for that one. Tricky question, but B) No is the way to go. Gotta love those Okta Expression Language gotchas.
upvoted 0 times
Quentin
12 months ago
Ha, I almost fell for that one. Tricky question, but B) No is the way to go. Gotta love those Okta Expression Language gotchas.
upvoted 0 times
...
Eve
12 months ago
B) No
upvoted 0 times
...
Bea
1 year ago
A) Yes
upvoted 0 times
...
...
Paola
1 year ago
Ah, I see what you mean. The output of String.replace() is not 'This is a test', it's 'That at a test'. Good catch!
upvoted 0 times
Wayne
12 months ago
A) No
upvoted 0 times
...
Suzan
1 year ago
B) Yes
upvoted 0 times
...
Estrella
1 year ago
A) No
upvoted 0 times
...
...
Francis
1 year ago
I think the correct answer is B) No. The replace() function in Okta Expression Language doesn't return the modified string, it modifies the original string in place.
upvoted 0 times
Dean
12 months ago
I think the correct answer is B) No. The replace() function in Okta Expression Language doesn't return the modified string, it modifies the original string in place.
upvoted 0 times
...
Jerry
12 months ago
B) No
upvoted 0 times
...
Leoma
12 months ago
A) Yes
upvoted 0 times
...
...
Jarvis
1 year ago
I think the correct answer is A) Yes because the String.replace function will replace 'is' with 'at' in the given string.
upvoted 0 times
...
Corrina
1 year ago
B) No
upvoted 0 times
...
Jarvis
1 year ago
A) Yes
upvoted 0 times
...

Save Cancel