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

The schema only refers to the data stored and data is not validated against schema when inserted or loaded.

Answer : A

Explanation

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

Q 3 - Users can pass configuration information to the SerDe using

A - SET SERDEPRPERTIES

B - WITHSERDEPRPERTIES

C - BY SERDEPRPERTIES

D - CONFIG SERDEPRPERTIES

Answer : B

Explanation

This feature of SrrDe is used to customize Hive for a wide range of file formats

Answer : B

Explanation

The LOCAL clause only copies without moving the files.

Answer : B

Explanation

Hive supports java based regular expression for querying.

Answer : C

Explanation

TBLPROPERTIES stores some documentation about the table like created date time etc.

Answer : A

Explanation

Hive is case insensitive

Answer : C

Explanation

When files are not splitable , querying them becomes inefficient.

Q 9 - The explode() function in hive takes an array of input and iterates through it returning each element as a separate row. This is an example of

A - Standard UDF

B - Aggregate UDF

C - Table Generating UDF

D - None

Answer : C

Explanation

SELECT explode(array(1,2,3)) AS element FROM src;

gives
1
2
3
so it is table generating function

Answer : B

Explanation

Macros are created for the purpose of calling other functiuons

hive_questions_answers.htm
Advertisements