wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HADOOP | PIG LATIN

Total questions: 9

Worksheet time: 5mins

Name
Class
Date
1.

What is Pig?

a)

Pig is a subset for the Hadoop API for data processing

b)

Pig is a part of the Apache Hadoop project that provides C-like scripting languge interface for data processing

c)

Pig is a part of the Apache Hadoop project. It is a "PL-SQL" interface for data processing in Hadoop cluster

d)

PIG is the third most popular form of meat in the US behind poultry and beef

2.

Which is not correct regarding PIG?

a)

Which is not correct regarding PIG?

b)

It is at the top of Hadoop and makes it possible to create complex jobs

c)

PIG latin is used to express data Flows

d)

PIG does not turns the transforms into a series of MapReduce jobs

3.

In PIG to prints a relation to the console we use?

a)

PRINT

b)

STORE

c)

DUMP

d)

PRINT SCREEN

4.

In Pig when a data element is null, it means the value is

a)

ZERO

b)

NULL

c)

MAY BE ZERO

d)

UNKOWN

5.

PIG compiler compiles its query into a

a)

Map/Reduce task

b)

PIG Latin task

c)

REDUCE TASK

d)

MAP TASK

6.

PIG supports four basic types those are?

a)

Atom, Map, Tuple, Bag

b)

Atom, Map, Tuple, Reduce

c)

Data, Map, Tuple, Bag

d)

Atom, MapReduce, Tuple

7.

pig script.pig runs the commands in the

a)

local filelog script.pig

b)

local file hdfs script.pig

c)

script.pig

d)

local file script.pig

8.

A Data Atom is a simple atomic data value. It is stored as a

a)

string

b)

TEXT

c)

NUMBER

d)

NONE

9.

The FOREACH statement is used to apply transformations to the data and to generate new data items. The basic syntax is

a)

= FOREACH GENERATE ... ;

b)

= FOREACH GENERATE data files

c)

= FOREACH GENERATE

d)

= FOREACH GENERATE FOREACH ... ;