For the input: 8  5What numbers will this program print? pr…

For the input: 8  5What numbers will this program print? program program15;      #include( “stdlib.hhf” ); static   i : int8;   j : int8; begin program15;   stdout.put( “gimme i:” );   stdin.get( i ); mov( i, BL ); stdout.put( “gimme j:” ); stdin.get( j );   mov( j, CL ); LoopingCode:   stdout.put( i, ” ”  );   cmp( BL, CL );   je EndingCode; jl LessThan; jg GreaterThan; LessThan:   inc( BL ); mov( BL, i ); jmp LoopingCode; GreaterThan:   dec( BL ); mov( BL, i );   jmp LoopingCode; EndingCode: stdout.put( nl ); end program15;

What is the output of the following code?     class A {     …

What is the output of the following code?     class A {             void foo() {  System.out.println(“1”); }             public A() {  System.out.println(“2”); foo();   }     }     class B extends A {             public B() { System.out.println(“3”);  }             void foo() { System.out.println(“4”);   }     }      public class Client {             public static void main(String [] args) {                         new B();             }    }

For the input: 12  What numbers will this program print? pr…

For the input: 12  What numbers will this program print? program program12;      #include( “stdlib.hhf” ); static   i : int8;   j : int8 := 3; begin program12;   stdout.put( “gimme i:” );   stdin.get( i );   mov( j, CL ); LoopingCode:   stdout.put( i, ” ”  );   cmp( CL, 1 );   je EndingCode; IncrementI:   inc( i ); DecrementJ:   dec( CL );   jmp LoopingCode; EndingCode: stdout.put( nl ); end program12;

This code is trying to decrement the value of i until it has…

This code is trying to decrement the value of i until it has the value -10.  The code builds and runs but has logic flaw.  Please select the reason why the code is flawed.  program program10;      #include( “stdlib.hhf” ); static   i : int32; begin program10;   stdout.put( “gimme i:” );   stdin.get( i ); LoopUntilMinus10: mov( i, EBX );   cmp( EBX, -10 );   je EndingCode;   sub( 1, EBX );   jmp LoopUntilMinus10; EndingCode:   stdout.put( “Done and i=-10 or less!”, nl ); end program10;