Using the variables named 'value' and 'currency', you must create a syntax to display 10$. Choose the correct option. Variables: value = 10, currency =$.
Suggested Answer: C
Get Premium GCX-SCR Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
43 comments · newest first
LA
Lawana
11 months ago
I don't get why we need double curly braces. Seems odd.
FR
Franklyn
11 months ago
Wait, why isn't A correct? That seems logical.
SH
Sherly
11 months ago
Definitely C! It combines them perfectly.
SH
Shawna
12 months ago
I think D looks good too, but not sure.
CH
Chaya
12 months ago
Option C is the right syntax!
MU
Muriel
1 year 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.
SO
Sonia
1 year ago
I practiced something similar last week, and I think the correct answer is C because it combines the variables without any extra characters.
CL
Claudio
1 year 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.
BE
Bettina
1 year ago
I think I remember that we need to use double curly braces for the variables, so maybe it's option C?
BE
Belen
1 year 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.
PA
Paris
1 year 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.
TH
Theron
1 year 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.
WI
Winifred
1 year 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.
NO
Nobuko
1 year 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.
MA
Malinda
1 year 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.
VE
Veronica
2 years ago
I'd rather just use f-strings. print(f'{value},{currency},') is where it's at, folks.
UL
Ula
2 years ago
D) 10$
CE
Celestina
2 years ago
C) 10$
LE
Leigha
2 years ago
B) 10$
CA
Carole
2 years ago
I agree, f-strings are definitely the way to go for string formatting.
WI
Willodean
2 years ago
A) 10$
LA
Launa
2 years ago
I think option C) {{value}}{{currency}} would be the correct syntax to display 10$.
JO
Johna
2 years ago
I prefer using f-strings too. They make it so much easier to format strings.
SH
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.
AR
Arleen
2 years ago
I prefer A) {{value}} + {{currency}} because it clearly shows the addition.
MA
Malcom
2 years ago
A) {{value}} + {{currency}}
DO
Dong
2 years ago
I think C) {{value}}{{currency}} looks the most clean and concise.
JE
Jennie
2 years ago
C) {{value}}{{currency}}
SH
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.
PR
Precious
2 years ago
Yeah, C) {{value}}{{currency}} is the way to go.
SY
Sylvie
2 years ago
I agree, C) {{value}}{{currency}} is the correct syntax.
DE
Delbert
2 years ago
I also agree with C) {{value}}{{currency}}, it combines the value and currency correctly
WA
Wade
2 years ago
LOL, who even writes code with curly braces and parentheses anymore? D) {value}, {currency}, is the way to go, man.
PO
Polly
2 years ago
C) {{value}}{{currency}}
CI
Ciara
2 years ago
D) {value}, {currency}, is the way to go, man.
CH
Cherelle
2 years ago
I think A) {{value}, + {{currency}, is a bit too verbose, but I can see why someone might choose that.
KI
Kimberely
2 years ago
I think Shaun is right, C) {{value}}{{currency}} makes more sense
LE
Leonardo
2 years ago
The correct answer is C) {{value},{{currency},. It's a straightforward syntax to display the value and currency together.
KA
Karan
2 years ago
C) {{value}}{{currency}}
CA
Caitlin
2 years ago
B) {value} + {currency)}
HA
Haley
2 years ago
A) {{value}} + {{currency}}
SH
Shaun
2 years ago
I disagree, I believe the correct option is C) {{value}}{{currency}}
CH
Cherry
2 years ago
I think the correct option is A) {{value}} + {{currency}}