PySpark MCQ Solution Part2
PySpark MCQ Solution Part2
1. The syntax given alongside is of a Binary Literal in PySpark SQL. What does the parameter num represent here?X { 'num [ ... ]' | "num [ ... ]" }
A.Any hexadecimal number from 0 to F (correct)
B.Any integer from 0 to 9
C.Any integer from -1 to 9
D.None of these
2. Which of these is the correct way to use a Date Literal in PySpark SQL:
- SELECT DATE '1997' AS col;
- SELECT DATE '1997-01-20' AS col;
- SELECT DATE '1997-01' AS col;
A.1
B.2
C.3
D.All of these (correct)
3. Which of the following can you use to process data using PySpark SQL:
- PySQL
- SQL
- HiveQL
Post a Comment