Home » IBM » C2090-101 » Which of the following Pig Latin expressions is used to sum a set of numbers in a bag?
Which of the following Pig Latin expressions is used to sum a set of numbers in a bag?
A. X = FOR EACH C -> (group,SUM(A.a1))
B. X = FOR EACH C GEN [group, SUM (A.a1)];
C. X = FOREACH C GENERATE group, SUM (A.a1);
D. X = FOREACH C GENERATE FLATTEN SUM (A.a1);
Correct Answer: C
Explanation/Reference:
Reference: https://github.com/rjurney/Cloud-Stenography/blob/master/CloudStenography/pig-0.3.0/src/docs/src/documentation/content/xdocs/piglatin.xml
Download Printable PDF. VALID exam to help you PASS.
|
|