Apache Pig/Apache Pig Mcq Sample Test,Sample questions

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

1.Pig will not do any thing

2.It will pad the end of the record columns with nulls

3.Pig will through error

4.Pig will warn you before it throws error


Question:
 Point out the wrong statement

1.To run Pig in local mode, you need access to a single machine

2.The DISPLAY operator will display the results to your terminal screen

3.. To run Pig in MapReduce mode, you need access to a Hadoop cluster and HDFS installation

4.All of the above


Question:
 rel = sample xrel 0.1

1. samples 10% random records

2.samples first 10% records

3. samples last 10% records

4.None of the above


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

1.fetch

2.declare

3.run

4.All of the above


Question:
 What are the various diagnostic operators available in Apache Pig?

1.Dump Operator

2.Describe Operator

3.Explain Operator

4.All of these


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

1.Pig Latin

2.Oozie

3.Pigcorrect

4.Hive


Question:
How many ways can we run Pig programs?

1.one

2.twq

3.Three

4.none of the above


Question:
Pig Latin scripting language is not only a higher-level data flow language but also has operators similar to
A. 
B. 
C. 

1.JSON

2.SQL

3.XML

4.None


Question:
Pig operates in mainly how many nodes?

1.2

2.3

3.4

4.5


Question:
PigUnit runs in Pig’s _______ mode by default. 

1.Local

2.Tez

3.MapReduce

4.None of the mentioned


Question:
Point out the correct statement

1. LoadMeta has methods to convert byte arrays to specific types

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

3.LoadPush has methods to push operations from Pig runtime into loader implementation

4.All of the mentioned


Question:
Point out the wrong statement

1.To run Pig in local mode, you need access to a single machine

2.The DISPLAY operator will display the results to your terminal screen

3. To run Pig in MapReduce mode, you need access to a Hadoop cluster and HDFS installation

4.All of the above


Question:
The default load function in pig is?

1.TupleStorage

2. PigStorage

3.HBaseStorage

4.All of the above


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

1.Fetch

2.Declare

3.Run

4.None


Question:
What are the different complex data types in PIG

1.Maps

2.Tuples

3.Bags

4.All of these


Question:
What are the scalar data types in pig?

1.Int

2.Float

3.Double

4.All of these


Question:
What are the various diagnostic operators available in Apache Pig?

1. Dump Operator

2.Describe Operator

3.Explain Operator

4.All of these


Question:
What are the various diagnostic operators available in Apache Pig?

1. Dump Operator

2.Describe Operator

3.Both A & B

4.None


Question:
Which of the following command can be used for debugging?

1. Exec

2.Execute

3.Error

4.Throw


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

1.Set

2.Declare

3.Display

4.None


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

1.Setcorrect

2.Declare

3.Display

4. All of the mentioned


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

1.Write

2.Read

3.Load

4.Run


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

1.Write

2.Read

3.Load

4.Run


Question:
Which of the following is a framework for collecting and storing script-level statistics for Pig Latin.

1. Pig Stats

2. Pig Statistics

3.PStatistics

4.None


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

1.Mahoot

2.Hive

3.pig

4.none


Question:
Which of the following is the default mode?

1.Mapreduce

2.Tez

3.Local

4.All of the mentioned


Question:
Which of the following will compile the Pigunit?

1. $pig_trunk ant pigunit-jar

2.$pig_ ant pigunit-jar

3. $pig_tr ant pigunit-jar

4.None


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

1. Pig Latin

2.Oozie

3.Pig

4.Hive


Question:
You can run Pig in batch mode using

 

1.Pig shell command

2.Pig scripts

3.Pig options

4.None


Question:
You can run Pig in interactive mode using the which of the following shell

1.Grunt

2.FS

3.HDFS

4.None


Question:
You can run Pig in interactive mode using the which of the following shell.

1.Grunt

2.FS

3.HDFS

4.None


Question:
You can run Pig in interactive mode using the ______ shell

1.Grunt

2.FS

3.HDFS

4.none of the above


Question:
You can run Pig in interactive mode using the ______ shell.

1.Grunt

2.FS

3.HDFS

4.None


Question:
You can specify parameter names and parameter values in one of the ways

1.As part of a command line

2.In parameter file, as part of a command line

3. With the declare statement, as part of Pig script

4.All of the mentioned


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

1. relativeToAbsolutePath()

2.setUdfContextSignature()

3.getCacheFiles()

4.getShipFiles


More MCQS

  1. Apache Pig Mcq
  2. Apache PIG Mcqs
Search
Olete Team
Online Exam TestTop Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on Online Exam Testwebsite is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!