Question: __2__ will be the value of a after this statement: int a = 9 / 4; ____ will be the value of b after this

__2__ will be the value of a after this statement: int a = 9 / 4;

____ will be the value of b after this statement: int b = 9 % 4;

_2.25___ will be the value of d after this statement: double d = 9 / 4;

__6__ will be the value of c after this statement: int c = 12 / 6 * 3;

__0__ will be the value of e after this statement: int e = 12 / ( 6 * 3 );

__9__ will be the value of f after this statement: int f = 6 + 6 / 2;

__6__ will be the value of g after this statement: int g = ( 6 + 6 ) / 2;

__2.3__ will be the value of h after this statement: double h = 7.0 / 3 ;

____ will be the value of i after this statement: int i = (int) 7.0 / 5;

____ will be the value of j after this statement: double j = (double) 7 / 5;

____ will be the value of k after this statement: double k = (double) ( 7 / 5 );

____ will be the value of m after these statements: int m = 8;

++m;

____ will be the value of n after these statements: int n = 9;

n--;

____ will be the value of p after these statements: int p = 6;

p += 6;

____ will be the value of q after these statements: int q = 7;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!