GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Assuming that a user enters 15 as input, what is the output…

Assuming that a user enters 15 as input, what is the output of the following code snippet? Scanner in = new Scanner(System.in); System.out.print(“Please enter a number: “); int number = in.nextInt(); if (number > 20) { System.out.println(“The number is LARGE!”); } else { System.out.println(“The number is SMALL!”); }

Read Details

Which operator constructs object instances?

Which operator constructs object instances?

Read Details

What values does counter variable i take on when this loop e…

What values does counter variable i take on when this loop executes? for (int i = 20; i >= 2; i = i – 6) { System.out.print(i + “,”); }

Read Details

What is the output of the following code snippet? int num1 =…

What is the output of the following code snippet? int num1 = 10; int num2 = 5; int num3 = 200; num3 = num3 % (num1 * num2); System.out.println(num3);

Read Details

How many times does the loop execute in the following code f…

How many times does the loop execute in the following code fragment? int i; for (i = 0; i < 50; i = i + 4) { System.out.println(i); }

Read Details

What is the upper limit on the size of an integer represente…

What is the upper limit on the size of an integer represented by the BigInteger object in Java?

Read Details

Which one of the following reserved words is used in Java to…

Which one of the following reserved words is used in Java to represent a value without a fractional part?

Read Details

How many times does the following loop execute? for (double…

How many times does the following loop execute? for (double d = 1; d != 10; d++) { d = d / 3; System.out.print(d + ” “); }

Read Details

What is the value of Math.pow(2, 3)?

What is the value of Math.pow(2, 3)?

Read Details

Assume the variable numbers has been declared to be an array…

Assume the variable numbers has been declared to be an array that has at least one element. Which is the following represents the last element in numbers?

Read Details

Posts navigation

Newer posts 1 … 44,988 44,989 44,990 44,991 44,992 … 52,697 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top