Master concurrency and parallelism in Scala with essential MCQs on Akka, Cats Effect, ZIO, the actor model, and managing parallel computations. Test your expertise and refine your skills today!
IO monads to manage side effects in Scala?
Fiber in Cats Effect?
FutureIO in Cats Effect?
tellaskdispatchask pattern in Akka?
ActorRef in Akka?
application.confsettings.confakka.propertiesconfig.jsonmapflatMapzipmergeIO.shiftFuture.applyPar.runmapAsyncfilterfoldzip| Qno | Answer (Option with the text) |
|---|---|
| 1 | B) To manage concurrent and distributed systems |
| 2 | B) Cats Effect |
| 3 | A) Fiber-based concurrency |
| 4 | A) Type-safe error handling |
| 5 | D) All of the above |
| 6 | A) A lightweight, concurrent unit of execution |
| 7 | B) Using a pure functional effect system |
| 8 | A) Akka |
| 9 | A) To represent computations with side effects |
| 10 | C) Database integration |
| 11 | B) A lightweight entity that processes messages asynchronously |
| 12 | B) By passing messages |
| 13 | C) Both A and B |
| 14 | A) To send a message and wait for a reply |
| 15 | A) A reference to an actor that can be used to send messages |
| 16 | A) By allowing only one thread to access an actor at a time |
| 17 | A) To monitor and manage child actors |
| 18 | A) application.conf |
| 19 | A) Through immutable messages |
| 20 | A) To handle asynchronous stream processing |
| 21 | D) All of the above |
| 22 | C) zip |
| 23 | A) Using IO.shift |
| 24 | A) To execute collection operations concurrently |
| 25 | D) All of the above |
| 26 | A) Concurrency involves managing multiple tasks; parallelism executes them simultaneously |
| 27 | A) Immutability ensures thread safety |
| 28 | A) Using fibers |
| 29 | A) mapAsync |
| 30 | D) Both A and C |