ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 159 - MCD - Level 1 discussion

Report
Export

Refer to the payload.

The Set payload transformer sets the payload to an object. The logger component's message attribute is configured with the string 'Result #['INFO'++ payload]'

What is the output of logger when this flow executes?

A.
Result INFOpayload
Answers
A.
Result INFOpayload
B.
Result INFO{'student':{'name':'Anay','age':6}}
Answers
B.
Result INFO{'student':{'name':'Anay','age':6}}
C.
1. 1. 'You called the function '++' with these arguments: 2. 2. 1: String ('INFO') 3. 3: Object ({student: {name: 'Anay' as String {class: 'java.lang.String'},age: 6 as Numbe...)
Answers
C.
1. 1. 'You called the function '++' with these arguments: 2. 2. 1: String ('INFO') 3. 3: Object ({student: {name: 'Anay' as String {class: 'java.lang.String'},age: 6 as Numbe...)
D.
Error : You evaluated inline expression # without ++
Answers
D.
Error : You evaluated inline expression # without ++
Suggested answer: C

Explanation:

Correct answer is as below as concatenation operation works only with string and not with the objects. In this case payload is object.

'You called the function '++' with these arguments:

1: String ('INFO')

2: Object ({student: {name: 'Anay' as String {class: 'java.lang.String'},age

asked 18/09/2024
Melissa Petrini
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first