Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 1 (Q.No. 4)
4.
JCOKE = 3
JCOKE = JCOKE + 1
GO TO (5, 8, 9, 11, 15, 16 18, 20) JCOKE.


After the execution of above statement, the control is transferred to statement number
8
11
16
20
Answer: Option
Explanation:

It is a computed GO TO statement. Since J COKE = 3 + 1 = 4, the control is transferred to statement 11.

Discussion:
15 comments Page 1 of 2.

Sushama said:   6 years ago
Can someone resolve the conclusion?

Rajesh. said:   7 years ago
Yes. I agree @kit!.

In assembly or any machine code, starting address is 0.

Kit said:   7 years ago
Doesn't the position start from 0.

So jcoke (4) would be 15.

ASHVANI JHA said:   7 years ago
How can I solve it? Can Anyone Explain in detail? Please.

Sandya said:   8 years ago
JCOKE = 3
JCOKE = JCOKE + 1
GO TO (5, 8, 9, 11, 15, 16 18, 20) JCOKE.

In this JCOKE is a variable name.It holds the number which points to the position in (5, 8, 9, 11, 15, 16 18, 20).

Since JCOKE is having 4, GOTO will point to the 4th position whose value is 11. Hence the answer is 11.
(4)

Priya said:   8 years ago
What is the full form of JCOKE?

Mahi said:   9 years ago
What is the full form of JCOKE?

Ankita said:   9 years ago
Please explain in detail.

Yogesh kumar said:   9 years ago
Please explain with example.

Ravneet kaur said:   10 years ago
Jcoke means?


Post your comments here:

Your comments will be displayed after verification.