<< Prev Question Next Question >>

Question 17/64

Which of the following code blocks returns a one-column DataFrame of all values in column supplier of DataFrame itemsDf that do not contain the letter X? In the DataFrame, every value should only be listed once.
Sample of DataFrame itemsDf:
1.+------+--------------------+--------------------+-------------------+
2.|itemId| itemName| attributes| supplier|
3.+------+--------------------+--------------------+-------------------+
4.| 1|Thick Coat for Wa...|[blue, winter, cozy]|Sports Company Inc.|
5.| 2|Elegant Outdoors ...|[red, summer, fre...| YetiX|
6.| 3| Outdoors Backpack|[green, summer, t...|Sports Company Inc.|
7.+------+--------------------+--------------------+-------------------+

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Question List (64q)
Question 1: Which of the following code blocks writes DataFrame itemsDf ...
Question 2: Which of the following statements about Spark's execution hi...
Question 3: In which order should the code blocks shown below be run in ...
Question 4: The code block displayed below contains an error. The code b...
Question 5: The code block displayed below contains an error. The code b...
Question 6: Which of the following describes Spark's way of managing mem...
Question 7: Which of the following code blocks returns a 2-column DataFr...
Question 8: Which of the following code blocks returns a new DataFrame w...
Question 9: The code block displayed below contains an error. The code b...
Question 10: Which of the following code blocks returns a new DataFrame i...
Question 11: Which of the following code blocks removes all rows in the 6...
Question 12: Which of the following code blocks shows the structure of a ...
Question 13: Which is the highest level in Spark's execution hierarchy?...
Question 14: The code block displayed below contains an error. The code b...
Question 15: Which of the following code blocks reads in the JSON file st...
Question 16: The code block displayed below contains an error. The code b...
Question 17: Which of the following code blocks returns a one-column Data...
Question 18: The code block shown below should return a DataFrame with al...
Question 19: Which of the following describes tasks?...
Question 20: Which of the following describes properties of a shuffle?...
Question 21: Which of the following code blocks produces the following ou...
Question 22: Which of the following is one of the big performance advanta...
Question 23: Which of the following code blocks returns a copy of DataFra...
Question 24: The code block displayed below contains at least one error. ...
Question 25: Which of the following code blocks reduces a DataFrame from ...
Question 26: Which of the following code blocks applies the boolean-retur...
Question 27: Which of the following statements about broadcast variables ...
Question 28: Which of the following code blocks creates a new DataFrame w...
Question 29: Which of the following code blocks returns DataFrame transac...
Question 30: Which of the following code blocks prints out in how many ro...
Question 31: The code block displayed below contains an error. The code b...
Question 32: Which of the following statements about Spark's configuratio...
Question 33: Which of the following describes slots?...
Question 34: Which of the following code blocks reads in parquet file /Fi...
Question 35: Which of the following code blocks silently writes DataFrame...
Question 36: The code block displayed below contains multiple errors. The...
Question 37: The code block shown below should return all rows of DataFra...
Question 38: In which order should the code blocks shown below be run in ...
Question 39: Which of the following statements about Spark's DataFrames i...
Question 40: Which of the following code blocks returns a DataFrame with ...
Question 41: Which of the following code blocks returns a DataFrame that ...
Question 42: The code block shown below should set the number of partitio...
Question 43: The code block shown below should return a two-column DataFr...
Question 44: Which of the following statements about stages is correct?...
Question 45: Which of the following DataFrame operators is never classifi...
Question 46: Which of the following code blocks concatenates rows of Data...
Question 47: The code block shown below should return a single-column Dat...
Question 48: Which of the following is not a feature of Adaptive Query Ex...
Question 49: The code block displayed below contains an error. The code b...
Question 50: Which of the following code blocks reads in the JSON file st...
Question 51: The code block shown below should add column transactionDate...
Question 52: The code block displayed below contains an error. The code b...
Question 53: Which of the following is a problem with using accumulators?...
Question 54: Which of the following describes a narrow transformation?...
Question 55: The code block displayed below contains one or more errors. ...
Question 56: The code block displayed below contains an error. The code b...
Question 57: Which of the following describes the role of tasks in the Sp...
Question 58: Which of the following code blocks displays the 10 rows with...
Question 59: Which of the following code blocks returns a copy of DataFra...
Question 60: The code block shown below should return only the average pr...
Question 61: Which of the following code blocks returns a DataFrame showi...
Question 62: Which of the following code blocks returns a single row from...
Question 63: The code block shown below should convert up to 5 rows in Da...
Question 64: Which of the elements that are labeled with a circle and a n...