Electronics and Communication Engineering - Microprocessors - Discussion

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

[A]. 8
[B]. 11
[C]. 16
[D]. 20

Answer: Option B

Explanation:

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


Joseph said: (Jun 9, 2014)  
Any one explain how?

Priyanka said: (Oct 24, 2014)  
Can somebody explain why this answer came such?

Sravani said: (Jan 20, 2015)  
Here JCOKE = 3+1 = 4.

In goto statement jcoke (4) means 5-1, 8-2, 9-3, 11-4.

Bikash Kumar Jha said: (Jan 28, 2015)  
Explain in detail.

Bhagya said: (Mar 10, 2015)  
Given Jcoke = 3.

Jcoke = Jcoke+1.

So now Jcoke = 4, then it is go to 4th number in the sequence.

Ravneet Kaur said: (Oct 11, 2015)  
Jcoke means?

Yogesh Kumar said: (Apr 8, 2016)  
Please explain with example.

Ankita said: (Sep 26, 2016)  
Please explain in detail.

Mahi said: (Jan 2, 2017)  
What is the full form of JCOKE?

Priya said: (Aug 15, 2017)  
What is the full form of JCOKE?

Sandya said: (Jan 12, 2018)  
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.

Ashvani Jha said: (Mar 2, 2018)  
How can I solve it? Can Anyone Explain in detail? Please.

Kit said: (May 16, 2018)  
Doesn't the position start from 0.

So jcoke (4) would be 15.

Rajesh. said: (Jul 30, 2018)  
Yes. I agree @kit!.

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

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.