Podcast
Questions and Answers
Given a Scala list called numbers initialised with integer values, what does the following line of Scala code do?
numbers.map(_ / 2.0).reduce(_ * _)
Given a Scala list called numbers initialised with integer values, what does the following line of Scala code do? numbers.map(_ / 2.0).reduce(_ * _)
- Divides each value in the numbers list by 2.0 and then computes the product of each pair of values in the numbers list.
- Divides each value in the numbers list by 2.0 and then computes the product of all the values in the numbers list. (correct)
- Computes the product of all the values in the numbers list and then divides it by 2.0.
- Divides each value in the numbers list by 2.0 and then computes the sum of all the values in the numbers list.
Suppose you are given any list of numbers - for example, List(1, 3, 3, 4, 2, 5, 9, 6, 1) - and you are asked to return the highest even number. Which of the following set of functions best solves the problem?
Suppose you are given any list of numbers - for example, List(1, 3, 3, 4, 2, 5, 9, 6, 1) - and you are asked to return the highest even number. Which of the following set of functions best solves the problem?
- reduce, max
- reduce, map, max
- filter, reduce, max (correct)
- filter, map
How does Apache Spark achieve fault tolerance?
How does Apache Spark achieve fault tolerance?
- Saves all state information to disk every hour.
- Records each update immediately onto HDFS.
- Writes the transformed RDD to disk after every transformation.
- Uses lineage to record all transformations that have been performed and replay the necessary transformations. (correct)
Which of the following Yarn managers is responsible for keeping track of all the tasks for big data processing jobs?
Which of the following Yarn managers is responsible for keeping track of all the tasks for big data processing jobs?
Consider the following Scala code: val cost = 29.19. Which of the following statements is false?
Consider the following Scala code: val cost = 29.19. Which of the following statements is false?
Which one of the following components of Storm is responsible for performing the computing?
Which one of the following components of Storm is responsible for performing the computing?
Which of the following tasks should NOT be done using Storm?
Which of the following tasks should NOT be done using Storm?
Which of the following are NOT contributing reasons for MapReduce to be so bad for processing graph algorithms?
Which of the following are NOT contributing reasons for MapReduce to be so bad for processing graph algorithms?