MCQ Collection
Big Data Analytics MCQs
Practice Big Data Analytics questions with answers and explanations.
Choose an option to check your answer.
Correct Answer: D. A main method or an object extending App in supported versions
Explanation:
The JVM invokes a main entry point to start the program.
Build tools package the compiled classes and dependencies.
Choose an option to check your answer.
Correct Answer: A. A task whose repeated execution produces the same intended external effect
Explanation:
Failures and speculation can cause task attempts to repeat.
Idempotence prevents duplicate side effects from corrupting results.
Choose an option to check your answer.
Correct Answer: A. Reclaiming containers from one workload to satisfy another workload's guaranteed share
Explanation:
Preemption enforces queue guarantees or priorities.
It can reduce efficiency if containers are killed frequently.
Choose an option to check your answer.
Correct Answer: A. var
Explanation:
A var can be reassigned after declaration.
Functional Scala style generally prefers val when possible.
Choose an option to check your answer.
Correct Answer: A. A collection of unique elements
Explanation:
Sets support membership tests and set operations.
Duplicate insertions do not create repeated elements.
Choose an option to check your answer.
Correct Answer: A. Immutable values can be shared without coordination for in-place changes
Explanation:
Concurrent tasks cannot overwrite an immutable value's state.
This reduces race conditions and makes reasoning about distributed code easier.
Choose an option to check your answer.
Correct Answer: B. To reduce disk I/O and network traffic during shuffle
Explanation:
Intermediate data can be large and temporary.
Compression often saves more transfer time than it costs in CPU.
Choose an option to check your answer.
Correct Answer: B. Resources may remain fragmented and fewer tasks can be scheduled
Explanation:
A request must fit the available resources on a node.
Large indivisible requests can wait while smaller resource fragments remain unused.
Choose an option to check your answer.
Correct Answer: B. def
Explanation:
Methods are introduced with def and can accept parameter lists.
Their return type may be inferred or written explicitly.
Choose an option to check your answer.
Correct Answer: B. A collection of key-value associations
Explanation:
Each key maps to a value within the collection.
Immutable Map is the default import in standard Scala.
Choose an option to check your answer.
Correct Answer: B. Evaluates and stores its expression only when first accessed
Explanation:
Lazy initialization postpones work until the value is needed.
After the first evaluation, the result is cached.
Choose an option to check your answer.
Correct Answer: C. Multiple mappers can process different portions of the compressed file
Explanation:
Unsplittable compressed files may be assigned to one mapper.
Splittability preserves input parallelism.