Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Which selection correctly implements the following pseudocode? while( int2 int2) mov ebx,0 else mov ebx,int1 } A top: mov eax,int2 cmp eax,int1 jge L3 add

Which selection correctly implements the following pseudocode?

while( int2 <= int1 )

{

add ebx,2

if( ebx > int2)

mov ebx,0

else

mov ebx,int1

}

A

top:

mov eax,int2

cmp eax,int1

jge L3

add ebx,2

cmp ebx,int2

jg L2

mov ebx,int1

jmp L3

L1: mov ebx,0

L2: jmp top

L3:

B

top:

mov eax,int1

cmp eax,int2

jl L3

add ebx,2

cmp ebx,int2

jg L1

mov ebx,int1

jmp L2

L1: mov ebx,0

L2: jmp top

L3:

C

top:

mov eax,int2

cmp eax,int1

jl L3

add ebx,2

cmp ebx,int2

jg L1

mov ebx,int1

jmp L2

L1: mov ebx,0

L2: jmp top

L3:

D

top:

mov eax,int2

cmp eax,int1

jg L3

add ebx,2

cmp ebx,int2

jg L1

mov ebx,int1

jmp L2

L1: mov ebx,0

L2: jmp top

L3:

Please Explain Your Answer

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Sham Navathe

4th Edition

0321122267, 978-0321122261

More Books

Students also viewed these Databases questions