GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Given that the integer array y has elements {10, 20, 30, 40,…

Given that the integer array y has elements {10, 20, 30, 40, 50}, what is the output from the following loop? int j; for (j = 0; j < 4; ++j) {    System.out.print(y[j] + y[j + 1] + " ");}

Read Details

Which of the following if statements correctly checks if a v…

Which of the following if statements correctly checks if a variable age is between 18 and 25 (inclusive) or if age is greater than 65?

Read Details

What does the following UML diagram entry mean? – setHeight…

What does the following UML diagram entry mean? – setHeight (h : double) : int

Read Details

What is the value of x after this code executes? int x = 1;i…

What is the value of x after this code executes? int x = 1;int y = 2;int z = 3; x = z * x + y + z;     x = 1 + x++;    

Read Details

What is the primary purpose of the Eclipse debugger?

What is the primary purpose of the Eclipse debugger?

Read Details

Which if statement checks if a variable score is less than 5…

Which if statement checks if a variable score is less than 50 or greater than or equal to 90?

Read Details

What will the following code output if the variable score is…

What will the following code output if the variable score is set to 75? if (marks >= 90) {    System.out.println(“A”);} else if (marks >= 80) {    if (marks > 85 && marks < 90) {        System.out.println("B+");    } else {        System.out.println("B");    }} else if (marks >= 70) {    if (marks >= 75) {        System.out.println(“C+”);    } else {        System.out.println(“C”);    }} else {    System.out.println(“D or lower”);}

Read Details

For the given program, how many times will the println metho…

For the given program, how many times will the println method be executed?   public class ShippingController {     //——————————————     public static void main(String[] args){         printShippingCost(8);        printShippingCost(18);        printShippingCost(25);            }//end main        //——————————————     public static void printShippingCost(double weight) {         if((weight > 0.0) && (weight 5.0) && (weight 10.0) && (weight

Read Details

What is the output? int a = 9;do { System.out.print(a + ” “…

What is the output? int a = 9;do { System.out.print(a + ” “); a = a + 1;} while (a

Read Details

What is the output of the code below?   for(int x = 5; x

What is the output of the code below?   for(int x = 5; x

Read Details

Posts pagination

Newer posts 1 … 44,231 44,232 44,233 44,234 44,235 … 80,194 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top