Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam MCD - Level 1 All Questions

View all questions & answers for the MCD - Level 1 exam

Exam MCD - Level 1 topic 1 question 47 discussion

Actual exam question from Mulesoft's MCD - Level 1
Question #: 47
Topic #: 1
[All MCD - Level 1 Questions]

What does the minus operator do in DataWeave?

  • A. Decrements the value by one.
  • B. Removes items from a list.
  • C. Increments the value by one.
  • D. Removes characters from a string.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
abhhiiiiiii
2 years, 1 month ago
hello the letter B is a change in perspective of fellow harry potter enthusiats aka SIRUS my best mate
upvoted 1 times
...
Kokulan1763
2 years, 2 months ago
If we apply to array. it will remove element. EX: [1,2,3] - 2 ==> o/p ==>[1,3] If we apply to number, it will decrease by 1. EX: 5-1 ==> o/p ==> 4
upvoted 2 times
...
Esquerdo
2 years, 3 months ago
Selected Answer: B
removes an iten from an array https://docs.mulesoft.com/dataweave/2.4/dw-operators
upvoted 2 times
ilya_tsy
2 years, 2 months ago
page does not exist
upvoted 2 times
...
...
Ella_Z
3 years, 2 months ago
Looks A&B are correct, but maybe "by one" leads to incorrect? I am not sure. https://docs.mulesoft.com/mule-runtime/4.3/dw-operators 1. For subtraction. 2. Removes a specified element of any supported type from an array.
upvoted 1 times
Sephyre1988
2 years, 6 months ago
if I'm not mistaken "- -" will decrease a number value not a single "-"
upvoted 2 times
...
...
edilberto1
3 years, 4 months ago
It is in the reference guide at https://docs.mulesoft.com/mule-runtime/4.3/dw-operators Prepend, Append, and Remove Operators for Arrays section, it isn't used as an arithmetic operator into this scope.
upvoted 1 times
...
ck0241
3 years, 4 months ago
Why is it removes item from list? It could also be decrements by right?
upvoted 1 times
edilberto1
3 years, 4 months ago
Otherwise response must said that it subtract from other value
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...