MCQ Collection
Big Data Analytics MCQs
Practice Big Data Analytics questions with answers and explanations.
Choose an option to check your answer.
Correct Answer: A. An Option with no value
Explanation:
None represents absence without using a raw null.
Pattern matching and combinators can handle it safely.
Choose an option to check your answer.
Correct Answer: A. Recursion in which the recursive call is the final operation
Explanation:
Tail-recursive calls can be optimized into iteration by the compiler.
This avoids growing the call stack for each recursive step.
Choose an option to check your answer.
Correct Answer: B. Yet Another Resource Negotiator
Explanation:
YARN separates cluster resource management from application processing logic.
It became the general resource layer of Hadoop 2.
Choose an option to check your answer.
Correct Answer: B. A task runs on a different node in the same rack as the data
Explanation:
Rack-local access crosses a node network link but not the rack switch boundary.
It is less ideal than node-local but better than off-rack.
Choose an option to check your answer.
Correct Answer: B. The value produced by the selected branch
Explanation:
Scala's if is an expression rather than only a control statement.
Both branches can contribute to the inferred result type.
Choose an option to check your answer.
Correct Answer: B. Selecting behavior by comparing a value against structured cases
Explanation:
The match expression checks cases in order and can extract components.
It is more powerful than a simple switch statement.
Choose an option to check your answer.
Correct Answer: B. A compile-time check that a method is tail recursive
Explanation:
Compilation fails if the recursive call cannot be optimized as tail recursion.
The annotation documents and enforces the intended structure.
Choose an option to check your answer.
Correct Answer: C. Managing cluster-wide resources and scheduling applications
Explanation:
The ResourceManager arbitrates resources among applications.
It includes scheduling and application-management responsibilities.
Choose an option to check your answer.
Correct Answer: C. The order or preference with which applications receive resources
Explanation:
Priority can guide scheduling among otherwise eligible applications.
Queue policies and fairness rules still constrain allocation.
Choose an option to check your answer.
Correct Answer: C. An anonymous function such as x => x * 2
Explanation:
Anonymous functions can be passed as values to higher-order methods.
Spark transformations frequently use them.
Choose an option to check your answer.
Correct Answer: C. A concise class with generated methods useful for immutable data modeling
Explanation:
Case classes automatically support pattern matching, equality, and copying.
They are commonly used to model records.
Choose an option to check your answer.
Correct Answer: C. Transforming a function with multiple parameters into multiple parameter lists
Explanation:
Curried functions can support partial application and clearer APIs.
Each parameter list is supplied in sequence.