A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. The following two functions P1 and P2 that share a variable B with an initial value of 2 execute concurrently.

C = B – 1;
B = 2*C;

D = 2 * B;
B = D - 1;

The number of distinct values that B can possibly take after the execution is
a. 3
b. 2
c. 5
d. 4
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: