Search Header Logo

Scala & ZIO Quiz - Functional Scala 2022

Authored by Katarzyna Królikowska

Computers

Professional Development

Used 5+ times

Scala & ZIO Quiz - Functional Scala 2022
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The ZIO#ignore method allows you to ignore values:

In the success channel

In the typed error channel

In both success and typed error channels

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In ZIO, the default thread pool:

Is intended for running async computations, and has a number of threads equal to the number of cores of your machine

Is intended for running blocking computations, and has a number of threads equal to the number of cores of your machine

Is intended for running blocking computations, and has an unlimited number of threads

Is intended for running async computations, and has an unlimited number of threads

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In ZIO 2.0, the ZManaged data-type was completely removed, what’s the replacement for it?

ZStream

ZSTM

ZIO

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When running the following: leftEffect zipPar rightEffect:

If either side fails, then the other one automatically fails

If either side fails, then the other one gets automatically interrupted

If either side fails, then the other one keeps running until its execution gets completed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When running, the following: leftEffect race rightEffect:

If either side fails, then the other one automatically fails

If either side fails, then the other one gets automatically interrupted

If either side fails, then the other one keeps running until its execution gets completed

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Ref[A] models a purely functional mutable reference to a value of type A, in which we can store:

Immutable data

Mutable data

Either of them

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A Promise[E, A] in ZIO:

Can start with a non-empty value, and can be set multiple times

Always starts with an empty value, and can be set just once

Always starts with an empty value, and can be set multiple times

Can start with a non-empty value, and can be set just one

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?