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

Genesys GCX-SCR Exam - Topic 5 Question 1 Discussion

Actual exam question for Genesys's GCX-SCR exam
Question #: 1
Topic #: 5
[All GCX-SCR Questions]

Using the variables named 'value' and 'currency', you must create a syntax to display 10$. Choose the correct option. Variables: value = 10, currency =$.

Show Suggested Answer Hide Answer
Suggested Answer: C

The correct syntax to display '10$' using the variables value and currency in Genesys Cloud CX scripting is {{value}}{{currency}}. This syntax correctly concatenates the two variables without any additional characters or spaces, ensuring that the result is displayed as '10$' on the script page.


Contribute your Thoughts:

0/2000 characters
Lawana
4 months ago
I don't get why we need double curly braces. Seems odd.
upvoted 0 times
...
Franklyn
5 months ago
Wait, why isn't A correct? That seems logical.
upvoted 0 times
...
Sherly
5 months ago
Definitely C! It combines them perfectly.
upvoted 0 times
...
Shawna
5 months ago
I think D looks good too, but not sure.
upvoted 0 times
...
Chaya
5 months ago
Option C is the right syntax!
upvoted 0 times
...
Muriel
6 months ago
I’m a bit confused about the syntax, but I remember something about single braces being incorrect. I guess I’ll go with option C too.
upvoted 0 times
...
Sonia
6 months ago
I practiced something similar last week, and I think the correct answer is C because it combines the variables without any extra characters.
upvoted 0 times
...
Claudio
6 months ago
I'm not entirely sure, but I feel like option A might be close since it has the right syntax, but I don't think we should add a space.
upvoted 0 times
...
Bettina
6 months ago
I think I remember that we need to use double curly braces for the variables, so maybe it's option C?
upvoted 0 times
...
Belen
6 months ago
I'm a bit confused by the different formatting options here. Do the curly braces mean something special? I'll have to review my notes on variable usage before selecting an answer.
upvoted 0 times
...
Paris
6 months ago
Okay, I've got this. The key is to use the double curly braces to properly reference the variables. I'm confident option C is the right choice.
upvoted 0 times
...
Theron
6 months ago
Hmm, I'm a little unsure about this one. I'll need to double-check the syntax for using variables in the template. Let me think this through carefully.
upvoted 0 times
...
Winifred
6 months ago
This looks pretty straightforward. I think I'll go with option C - it seems to combine the variable names correctly to display the value and currency together.
upvoted 0 times
...
Nobuko
6 months ago
This seems straightforward enough. I'll go with option C - it looks like the most straightforward way to combine the variable values into a single output.
upvoted 0 times
...
Malinda
6 months ago
Ah, I see what they're getting at here. This is about understanding the emotional state and potential actions of the employee who didn't get the promotion. Gotta think through that carefully.
upvoted 0 times
...
Veronica
2 years ago
I'd rather just use f-strings. print(f'{value},{currency},') is where it's at, folks.
upvoted 0 times
Ula
1 year ago
D) 10$
upvoted 0 times
...
Celestina
1 year ago
C) 10$
upvoted 0 times
...
Leigha
2 years ago
B) 10$
upvoted 0 times
...
Carole
2 years ago
I agree, f-strings are definitely the way to go for string formatting.
upvoted 0 times
...
Willodean
2 years ago
A) 10$
upvoted 0 times
...
Launa
2 years ago
I think option C) {{value}}{{currency}} would be the correct syntax to display 10$.
upvoted 0 times
...
Johna
2 years ago
I prefer using f-strings too. They make it so much easier to format strings.
upvoted 0 times
...
...
Shantell
2 years ago
Ah, the age-old debate of curly braces vs. regular braces. C) {{value},{{currency}, is the way to go, no doubt about it.
upvoted 0 times
Arleen
2 years ago
I prefer A) {{value}} + {{currency}} because it clearly shows the addition.
upvoted 0 times
...
Malcom
2 years ago
A) {{value}} + {{currency}}
upvoted 0 times
...
Dong
2 years ago
I think C) {{value}}{{currency}} looks the most clean and concise.
upvoted 0 times
...
Jennie
2 years ago
C) {{value}}{{currency}}
upvoted 0 times
...
...
Shantell
2 years ago
Hmm, B) {value}, + {currency)}, looks like it has a typo with the closing parenthesis. I'm going with C, it's clean and gets the job done.
upvoted 0 times
Precious
2 years ago
Yeah, C) {{value}}{{currency}} is the way to go.
upvoted 0 times
...
Sylvie
2 years ago
I agree, C) {{value}}{{currency}} is the correct syntax.
upvoted 0 times
...
...
Delbert
2 years ago
I also agree with C) {{value}}{{currency}}, it combines the value and currency correctly
upvoted 0 times
...
Wade
2 years ago
LOL, who even writes code with curly braces and parentheses anymore? D) {value}, {currency}, is the way to go, man.
upvoted 0 times
Polly
2 years ago
C) {{value}}{{currency}}
upvoted 0 times
...
Ciara
2 years ago
D) {value}, {currency}, is the way to go, man.
upvoted 0 times
...
...
Cherelle
2 years ago
I think A) {{value}, + {{currency}, is a bit too verbose, but I can see why someone might choose that.
upvoted 0 times
...
Kimberely
2 years ago
I think Shaun is right, C) {{value}}{{currency}} makes more sense
upvoted 0 times
...
Leonardo
2 years ago
The correct answer is C) {{value},{{currency},. It's a straightforward syntax to display the value and currency together.
upvoted 0 times
Karan
2 years ago
C) {{value}}{{currency}}
upvoted 0 times
...
Caitlin
2 years ago
B) {value} + {currency)}
upvoted 0 times
...
Haley
2 years ago
A) {{value}} + {{currency}}
upvoted 0 times
...
...
Shaun
2 years ago
I disagree, I believe the correct option is C) {{value}}{{currency}}
upvoted 0 times
...
Cherry
2 years ago
I think the correct option is A) {{value}} + {{currency}}
upvoted 0 times
...

Save Cancel