The following table is stored in a variable called "dt".
What will the value of the qty variable be after executing the Assign activity?
The following table is stored in a variable called "dt".
What will the value of the qty variable be after executing the Assign activity?
To determine the value of the qty variable, the SkipWhile method in this context is used. The method will skip elements in the sequence until the specified condition is no longer true. It starts evaluating from the beginning of the dataset and will continue to skip elements while the item is equal to 'mango'. When it finds 'mango', it stops skipping and moves to the next element. The first element after 'mango' has the Quantity of 10. So, the value of the qty variable will be 10.
Answer is B, tested in Studio
Answer is B, tested it in studio. dt.AsEnumerable. SkipWhile(Function(x) x("Item").ToString.Equals("mango"))(0)("Quantity").ToString
correct answer is 10 tested on studio
correct answer is 10 tested on studio
correct answer is 10 tested on studio
The answer should be A. because the skipwhile function will keep all the rest value "if not" equal the sentence.
The answer should be 10, it's B
skipwhile will only skip Items all the way to mango, but quantity index is still at 0 thus answer is 10. even if item = pear, the answer will still be 10