Hadoop Pig MCQ Questions
Hadoop Pig MCQs : This section focuses on "PIG" in Hadoop. These Multiple Choice Questions (MCQ) should be practiced to improve the hadoop skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Which of the following is not true about Pig?
A. Apache Pig is an abstraction over MapReduce
B. Pig can not perform all the data manipulation operations in Hadoop.
C. Pig is a tool/platform which is used to analyze larger sets of data representing them as data flows.
D. None of the above
View Answer
Ans : B
Explanation: Pig is generally used with Hadoop; we can perform all the data manipulation operations in Hadoop using Apache Pig.
2. Which of the following is/are a feature of Pig?
A. Rich set of operators
B. Ease of programming
C. Extensibility
D. All of the above
View Answer
Ans : D
Explanation: All options are the following Features of Pig.
3. In which year apache Pig was released?
A. 2005
B. 2006
C. 2007
D. 2008
View Answer
Ans : B
Explanation: In 2006, Apache Pig was developed as a research project.
4. Pig operates in mainly how many nodes?
A. 2
B. 3
C. 4
D. 5
View Answer
Ans : A
Explanation: You can run Pig (execute Pig Latin statements and Pig commands) using various mode: Interactive and Batch Mode.
5. Which of the following company has developed PIG?
A. Google
B. Yahoo
C. Microsoft
D. Apple
View Answer
Ans : B
Explanation: Apache Pig was developed as a research project at Yahoo, especially to create and execute MapReduce jobs on every dataset.
6. Which of the following function is used to read data in PIG?
A. Write
B. Read
C. Perform
D. Load
View Answer
Ans : D
Explanation: PigStorage is the default load function.
7. __________ is a framework for collecting and storing script-level statistics for Pig Latin.
A. Pig Stats
B. PStatistics
C. Pig Statistics
D. All of the above
View Answer
Ans : C
Explanation: The new Pig statistics and the existing Hadoop statistics can also be accessed via the Hadoop job history file.
8. Which of the following is true statement?
A. Pig is a high level language.
B. Performing a Join operation in Apache Pig is pretty simple.
C. Apache Pig is a data flow language.
D. All of the above
View Answer
Ans : D
Explanation: All option are true statement.
9. Which of the following will compile the Pigunit?
A. $pig_trunk ant pigunit-jar
B. $pig_tr ant pigunit-jar
C. $pig_ ant pigunit-jar
D. $pigtr_ ant pigunit-jar
View Answer
Ans : A
Explanation: The compile will create the pigunit.jar file.
10. Point out the wrong statement.
A. Pig can invoke code in language like Java Only
B. Pig enables data workers to write complex data transformations without knowing Java
C. Pig's simple SQL-like scripting language is called Pig Latin, and appeals to developers already familiar with scripting languages and SQL
D. Pig is complete, so you can do all required data manipulations in Apache Hadoop with Pig
View Answer
Ans : A
Explanation: Through the User Defined Functions(UDF) facility in Pig, Pig can invoke code in many languages like JRuby, Jython and Java.
Discussion