15 Concurrency questions from the C++ bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Free to start: the 2-minute IT readiness check — six questions and a result.
A.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
B.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
C.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
D.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
Answer + AI explanation with Pro
2. Which term means: "an object representing a single thread of execution that begins running its callable on construction and must be joined or detached"?
Junior
A.std::condition_variable
B.std::atomic
C.std::thread
D.Data race
Answer + AI explanation with Pro
3. Which statement is correct?
Junior
A.std::thread — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
B.std::thread — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
C.std::thread — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
D.std::thread — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
Answer + AI explanation with Pro
4. What is std::mutex?
Mid
A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
B.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
C.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
D.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
Answer + AI explanation with Pro
5. Which term means: "a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races"?
Mid
A.std::mutex
B.std::atomic
C.std::thread
D.std::condition_variable
Answer + AI explanation with Pro
6. Which statement is correct?
Mid
A.std::mutex — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
B.std::mutex — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
C.std::mutex — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
D.std::mutex — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
Answer + AI explanation with Pro
7. What is std::atomic?
Senior
A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
B.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
C.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
D.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
Answer + AI explanation with Pro
8. Which term means: "a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock"?
Senior
A.Data race
B.std::atomic
C.std::mutex
D.std::thread
Answer + AI explanation with Pro
9. Which statement is correct?
Senior
A.std::atomic — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
B.std::atomic — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
C.std::atomic — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
D.std::atomic — an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
Answer + AI explanation with Pro
10. What is std::condition_variable?
Senior
A.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
B.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
C.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
D.a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
Answer + AI explanation with Pro
11. Which term means: "a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers"?
Senior
A.std::condition_variable
B.Data race
C.std::atomic
D.std::thread
Answer + AI explanation with Pro
12. Which statement is correct?
Senior
A.std::condition_variable — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
B.std::condition_variable — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
C.std::condition_variable — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
D.std::condition_variable — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
Answer + AI explanation with Pro
13. What is Data race?
Mid
A.a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
B.undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
C.an object representing a single thread of execution that begins running its callable on construction and must be joined or detached
D.a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
Answer + AI explanation with Pro
14. Which term means: "undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization"?
Mid
A.std::mutex
B.std::condition_variable
C.std::thread
D.Data race
Answer + AI explanation with Pro
15. Which statement is correct?
Mid
A.Data race — a template providing indivisible read-modify-write operations on a variable so concurrent access is well defined without a lock
B.Data race — a synchronization primitive granting exclusive access to a shared resource, locked and unlocked to prevent concurrent data races
C.Data race — a primitive that lets threads block until notified of a condition change, used with a lock to coordinate producers and consumers
D.Data race — undefined behavior arising when two threads access the same memory location concurrently with at least one write and no synchronization
Answer + AI explanation with Pro
Free to start
Start with a free readiness check
Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Concurrency question come with Pro.