PySpark MCQ Solution Part 1
PySpark MCQ Solution Part 1
1. Which of the following statements is correct about PySpark SparkContext:
- SparkContext sets up internal services
- Does not establish a connection to a Spark execution environment
- SparkContext object sends the application to executors
- SparkContext does not execute tasks in each executor
A. 1, 2, and 3
B. 2 and 4
C. 1 and 3 (correct)
D. 2, 3, and 4
2. The entry point of a PySpark program is an object. This object allows you to connect to a Spark cluster and create RDDs. What is this object called?
A. SparkContent
B. SparkContext (correct)
C. ContextSpark
D. ContentSpark
3. Which of the following is a feature of a PySpark DataFrame:
- They are distributed in nature
- They are immutable in nature
- Execution starts before an action is triggered
Post a Comment