Spark-Scala Quiz-1

 

0%

Spark – Quiz – 1

1 / 9

How would you convert “mydf” dataframe to rdd?

2 / 9

How would you get the number of partitions of a dataframe “mydf” ?

3 / 9

Use of Cache will improve Processing ,Once the data is cached ?

4 / 9

How to get count of distinct records of a dataframe?

5 / 9

“mydf ” is a dataframe having thousands of records. You need to look only 10 records .How would you get it done?

6 / 9

While doing Coding ,it is needed to see the datatype of all columns of dataframe. How would you get this information?

7 / 9

While doing Coding ,it is needed to see the datatype of all columns of dataframe. How would you get this information?

8 / 9

Let’s Say you have dataframe “mydf” with all columns as String datatype .It have few null values.It is needed to replace all null values with “NA”. What is the correct syntax to replace null values with “NA” ?

9 / 9

There is table in hive named as “products”. What is the correct syntax to load this table into spark dataframe using Scala?

Don’t miss the tutorial on Top Big data courses on Udemy you should Buy

Sharing is caring!

Subscribe to our newsletter
Loading

Leave a Reply