Multiple Choice
int x = 5; int y = 2; double q = (double) x / y;// Code block A int x = ( 25 / 3 ) * (15 % 4);// Code block B int z = 0; for (int i = 0; i < 5; i++) { int y = i + 5; z++; }// Code block C double vatPercent = 21; double priceTag = 55; double vat = priceTag * vatPercent / 100;// Code block D int x = 32; int y = 88; while (x <= 1000) { x += 5; }int x = 15; int b = 3; x = b++;int x = 15; int b = 3; x += (++b);int x = 15; int b = 3; x = (b + 1);int x = 15; int b = 3; b += 1;
Last updated