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

Q 1 - Which of the following is not a complex data type in Hive?

A - Matrix

B - Array

C - Map

D - STRUCT

Answer : A

Explanation

There is no Matrix data type in Hive.

Answer : A

Explanation

Copying data is done by OS commands and not Hive

Answer : B

Explanation

It is a program to read and write files using Java Input and Output formats.

Answer : A

Explanation

using the ALTER TABLE.. ENABLE NO_DROP & ENABLE OFFLINE clause.

Answer : C

Explanation

CONCAT function accepts any number of arguments

Q 6 - Which kind of keys(CONSTRAINTS) Hive can have?

A - Primary Keys

B - Foreign Keys

C - Unique Keys

D - None

Answer : D

Explanation

Hive is schema on read and unlike RDBMS it does not have a way to enforce the existence of keys.

Answer : A

Explanation

The query is run on complete data set and then the results are restricted using LIMIT clause.

Q 8 - If a hive query produces unexpected result then its cause can be investigated by using

A - Block size in HDFS

B - Virtual columns

C - Virtual parameters

D - Query logs

Answer : B

Explanation

Virtual columns give the complete path and name of data block from where the error is arising.

Answer : B

Explanation

Functionregistry holds the list of all permanent functions

hive_questions_answers.htm
Advertisements