MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
*The map in MapReduce is different from the map in a functional programming language.
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -Map and Reduce function both take input as array. map cannot return one single element for an array of multiple elements, while reduce will always return the accumulator you eventually changed.

Detailed explanation-2: -Map-reduce is a programming model that has its roots in functional programming. In addition to often producing short, elegant code for problems involving lists or collections, this model has proven very useful for large-scale highly parallel data processing.

Detailed explanation-3: -The Map function takes input from the disk as <key, value> pairs, processes them, and produces another set of intermediate <key, value> pairs as output. The Reduce function also takes inputs as <key, value> pairs, and produces <key, value> pairs as output.

Detailed explanation-4: -The MapReduce framework in Hadoop has native support for running Java applications. It also supports running non-Java applications in Ruby, Python, C++ and a few other programming languages, via two frameworks, namely the Streaming framework and the Pipes framework.

There is 1 question to complete.