Search Header Logo

PYP Quiz

Authored by Kingsley Kuan

Computers

University

Used 2+ times

PYP Quiz
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

Relaxed consistency models at the programming language level address the concern that software complexity is increased by the need for unnecessary synchronization.

True

False

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The modern C++ memory model exhibits a different behavior when it is running on a weak-consistent architecture (such as ARM).

True

False

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Programs using C++ atomics might suffer of deadlocks. Assume that the program does not use any other synchronization mechanism (such as mutex or semaphores).

True

False

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A concurrent program with livelocks will eventually complete when running on a single core processor (assume no SMT: the core does not support multiple hardware threads). Assume that the program creates, runs, and synchronizes multiple threads.

True

False

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In (safe) Rust, data races are not possible. This means that your Rust code will not have race conditions.

True

False

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In Rust, a future can only be created using async functions or async blocks.

True

False

7.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

The code will always print 1

True

False

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?