Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Pig Quiz-1

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

You can run Pig in interactive mode using the ______ shell

a)

Grunt

b)

FS

c)

HDFS

d)

None of the mentioned

2.

Which of the following is the default mode?

a)

Mapreduce

b)

Tez

c)

Local

d)

All of the mentioned

3.

Use the __________ command to run a Pig script that can interact with the Grunt shell (interactive mode)

a)

fetch

b)

declare

c)

run

d)

all of the mentioned

4.

What are the different complex data types in PIG

a)

Maps

b)

Tuples

c)

Bags

d)

All of these

5.

What are the various diagnostic operators available in Apache Pig?

a)

Dump Operator

b)

Describe Operator

c)

Explain Operator

d)

All of these

6.

If data has less elements than the specified schema elements in pig, then?

a)

Pig will not do any thing

b)

It will pad the end of the record columns with nulls

c)

Pig will through error

d)

Pig will warn you before it throws error

7.

The default load function in pig is?

a)

TupleStorage

b)

PigStorage

c)

HBaseStorage

d)

All of the above

8.

rel = sample xrel 0.1

a)

samples 10% random records

b)

samples first 10% records

c)

samples last 10% records

d)

None of the above

9.

Point out the correct statement

a)

LoadMeta has methods to convert byte arrays to specific types

b)

The Pig load/store API is aligned with Hadoop's InputFormat class only

c)

LoadPush has methods to push operations from Pig runtime into loader implementations

d)

All of the mentioned

10.

Which of the following function is used to read data in PIG?

a)

Write

b)

Read

c)

Load

d)

Run

11.

Which of the follwing is a platform for analyzing large data sets that consists of a high-level language for expressing data analysis programs

a)

Pig Latin

b)

Oozie

c)

Pig

d)

Hive

12.

Pig Latin scripting language is not only a higher-level data flow language but also has operators similar to

a)

JSON

b)

SQL

c)

XML

d)

All of the above

13.

Which of the following is data flow scripting language for analyzing unstructured data?

a)

Mahoot

b)

Hive

c)

Pig

d)

All of the above

14.

Which of the following command is used to show values to keys used in Pig ?

a)

Set

b)

Declare

c)

Display

d)

All of the Above

15.

Use the __________ command to run a Pig script that can interact with the Grunt shell (interactive mode).

a)

Fetch

b)

Declare

c)

Run

d)

All of the Above

16.

Which of the following command can be used for debugging?

a)

Exec

b)

Execute

c)

Error

d)

Throw

17.

____________ method will be called by Pig both in the front end and back end to pass a unique signature to the Loader.

a)

relativeToAbsolutePath()

b)

setUdfContextSignature()

c)

getCacheFiles()

d)

getShipFiles

18.

Which of the following 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

19.

Which among the following is simple xUnit framework that enables you to easily test your Pig scripts.

a)

PigUnit

b)

PigXUnit

c)

PigUnitX

d)

All of the Above

20.

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)

None of the Above

21.

PigUnit runs in Pig’s _______ mode by default.

a)

Local

b)

Tez

c)

MapReduce

d)

All of the Above

22.

You can run Pig in batch mode using

a)

Pig shell command

b)

Pig scripts

c)

Pig options

d)

None of the Above