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 56 discussion

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

What does the zip operator do in DataWeave?

  • A. Minifies the size of value using encoding.
  • B. None of these.
  • C. Merges elements of two objects into a single object.
  • D. Merges elements of two lists (arrays) into a single list.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Aquaworm
Highly Voted 2 years, 5 months ago
Selected Answer: D
The first sub-array in the output array contains the first indices of the input sub-arrays. The second index contains the second indices of the inputs, the third contains the third indices, and so on for every case where there are the same number of indices in the arrays. https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-zip
upvoted 5 times
...
[Removed]
Most Recent 6 months, 1 week ago
Selected Answer: D
ZIP function merges elements from two arrays into an array of arrays.
upvoted 1 times
...
d_ngnr
11 months ago
Sample: %dw 2.0 output application/json --- [1, 2, 3] zip ["A", "B", "C"] Output: [ [1, "A"], [2, "B"], [3, "C"] ]
upvoted 2 times
...
kampatra
1 year, 6 months ago
it's bit tricky: As per document: Merges elements from two arrays into an array of arrays. here it's mentioned merge into a single list. seems correct but not sure.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago