340 views
0 votes
0 votes

1 Answer

1 votes
1 votes
Here as we can see P1 increases x by 1 and gets out of loop if x>=y. And P2 increases y by 1 and gets out of loop if x==y.

As we can see that P1 can get executed by making x==y, but P2 can not get executed i.e. it will never come out of loop because when x==y then P2 first increases y by 1, making x!=y thus never coming out of loop.

Thus, statement (c) is FALSE.

Related questions

0 votes
0 votes
1 answer
1
`JEET asked Jan 21, 2019
1,037 views
Disk request come into disk driver for cylinders 5, 17, 60, 125, 28, 170, 8, 32. Total moves using SCAN algorithm when disk head is currently positioned at 35 and moving ...
0 votes
0 votes
0 answers
2
`JEET asked Jan 1, 2019
1,735 views
Consider the following grammar:S → XXX → bX → aX Where S and X are non-terminals and a, b are terminals. Which of the following can be the viable prefixes?aabSaaaaa...
1 votes
1 votes
0 answers
3
`JEET asked Dec 18, 2018
376 views
Compute the coefficient value of $ x^3 y^2z$ in the $(x-y+3z)^6$
1 votes
1 votes
1 answer
4
thor asked Jan 6, 2017
236 views
in sync counters Tpd = Tcombinational + Tff