ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 125 - MCD - Level 1 discussion

Report
Export

Refer to exhibits.

What message should be added to Logger component so that logger prints 'The city is Pune' (Double quote should not be part of logged message)?

A.
#['The city is' ++ payload.City]
Answers
A.
#['The city is' ++ payload.City]
B.
The city is + #[payload.City]
Answers
B.
The city is + #[payload.City]
C.
The city is #[payload.City]
Answers
C.
The city is #[payload.City]
D.
#[The city is ${payload.City}
Answers
D.
#[The city is ${payload.City}
Suggested answer: C

Explanation:

Correct answer is The city is #[payload.City]

Answer can get confused with the option #['The city is' ++ payload.City] But note that this option will not print the space between is and city name. This will print The city isPune

asked 18/09/2024
Sivakumar Balasundram
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first