Home / CSE MCQs / Apache PIG ::

CSE MCQs :: Apache PIG

  1. You can run Pig in interactive mode using the ______ shell
  2. A.
    Grunt
    B.
    FS
    C.
    HDFS
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following is the default mode?
  4. A.
    Mapreduce
    B.
    Tez
    C.
    Local
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Use the __________ command to run a Pig script that can interact with the Grunt shell (interactive mode)
  6. A.
    fetch
    B.
    declare
    C.
    run
    D.
    all of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. What are the different complex data types in PIG
  8. A.
    Maps
    B.
    Tuples
    C.
    Bags
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. What are the various diagnostic operators available in Apache Pig?
  10. A.
    Dump Operator
    B.
    Describe Operator
    C.
    Explain Operator
    D.
    All of these

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. If data has less elements than the specified schema elements in pig, then?
  12. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The default load function in pig is?
  14. A.
    TupleStorage
    B.
    PigStorage
    C.
    HBaseStorage
    D.
    All of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. rel = sample xrel 0.1
  16. A.
    samples 10% random records
    B.
    samples first 10% records
    C.
    samples last 10% records
    D.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Point out the correct statement
  18. 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

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Which of the following function is used to read data in PIG?
  20. A.
    Write
    B.
    Read
    C.
    Load
    D.
    Run

    View Answer

    Workspace

    Discuss Discuss in Forum