Hive Online Quiz



Following quiz provides Multiple Choice Questions (MCQs) related to Hive. You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.

Questions and Answers

Answer : A

Explanation

As indexes are defined on a table, the removal of table partition also removes the respective index.

Answer : A

Explanation

Each database becomes a directory and each table becomes a file in that directory

Answer : B

Explanation

Partitioning creates subdirectories and only those subdirectories are read to fetch the query result, improving the performance.

Answer : B

Explanation

It is up to the user to ensure the synchronization between schema and data

Answer : B

Explanation

The explode() function expands each element of ARRAY into a row.

Answer : A

Explanation

Sorting as the last clause will be efficient as that is also the last step in the reduce job producing the output.

Answer : D

Explanation

AN index can be dropped only after dropping the table on which index is created.

Answer : B

Explanation

Local mode avoid creating mapreduce job while running the job in a single machine.

Q 10 - A user creates a UDF which accepts arguments of different data types, each time it is run. It is an example of

A - Aggregate Function

B - Generic Function

C - Standard UDF

D - Super Functions

Answer : B

Explanation

Generic functions are created as java programs and can accept variable data types.

hive_questions_answers.htm
Advertisements