Wings 1 T15 PySpark Course MCQs Solution | TCS Fresco Play | Fresco Play (2025)

Top 20 PySpark MCQs with Answers – TCS Fresco Play (2025)

Top 20 PySpark MCQs with Answers – TCS Fresco Play (2025)

Welcome to MNCAnswer.com! If you're preparing for the TCS Fresco Play PySpark final assessment, you're in the right place. Below are 20 curated and rewritten multiple-choice questions with answers to help you practice and succeed.

PySpark Multiple Choice Questions (MCQs)

1. Which programming languages are supported by Apache Spark?
Python, Scala, Java, R
2. What interface does PySpark use to connect with the JVM?
Py4J
3. Which of the following is a transformation in RDD?
map()
4. What is the result of a filter() transformation?
A filtered RDD
5. Which API processes structured data in Spark?
DataFrame API
6. Which format is columnar and used for large-scale data?
Parquet
7. Which function prints the schema of a DataFrame?
printSchema()
8. What returns the number of rows in a DataFrame?
df.count()
9. Which method allows you to save a DataFrame to CSV?
write.csv()
10. What component is used to write SQL queries in Spark?
Spark SQL
11. How do you create a temporary view from a DataFrame?
createOrReplaceTempView()
12. What is the default mode for Spark operations?
Lazy evaluation
13. Which function is used to apply a function to each element of an RDD?
map()
14. Which method is used to read a text file into an RDD?
textFile()
15. What is the purpose of the collect() action in Spark?
Returns all the elements of the dataset as an array to the driver program
16. Which function is used to remove duplicate rows in a DataFrame?
dropDuplicates()
17. What does the cache() method do in Spark?
Persists the dataset with the default storage level (MEMORY_AND_DISK)
18. Which method is used to join two DataFrames?
join()
19. What is the purpose of the repartition() method?
Increases or decreases the number of partitions in a DataFrame
20. Which function is used to group data in a DataFrame?
groupBy()

Stay tuned for more MCQs, hands-on exercises, and TCS Fresco Play content. Bookmark mncanswer.com and follow us for fresh updates!

Post a Comment

0 Comments