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.

Q 3 - To see the data types details of only a column (not the table) we should use the command

A - DESCRIBE

B - DESCRIBE EXTENDED

C - DESCRIBE FORMATTED

D - DESCRIBE COLUMN

Answer : A

Q 4 - Creating  a table an loading it with a select clause in one query applies to

A - only managed tables

B - only external tables

C - Both types of tables

D - Only tables without partitions

Answer : A

Explanation

Only a internal table can be created and loaded with data using one query.

Q 5 - An element in a STRUCT column in hive is referred by

A - index

B - key

C - colon

D - dot

Answer : D

Explanation

STRUCT elements are key-value pairs and the elements are accessed by dot notation.

Q 6 - The Index in Hive can be seen by

A - Describe Index

B - Show Index

C - View Index

D - Find Index

Answer : B

Explanation

Similar to show tables, Indexes can be queried by SHOW Index.

Answer : D

Explanation

It is about creating index on an empty table.

Q 8 - The Property that decides what is the maximum number of files that can be sampled during the use of the LIMIT clause is

A - hive.limit.optimize.file.max

B - hive.limit.optimize.limit.file

C - hive.limit.optimize.file.restrict

D - hive.limit.optimize.limit.most

Answer : B

Explanation

This property decides the number files to be looked into for the sample result.

Q 10 - When one of the join tables is small enough to fit into memory, The type of join used by Hive is

A - Inner Join

B - Map join

C - Reduce Join

D - Sort Join

Answer : B

Explanation

As one of the tables already fits into the memory each row of the big table is quickly compared with each row of small table using Map Join.

hive_questions_answers.htm
Advertisements