GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

When hand tracing, drawing a line through the value stored i…

When hand tracing, drawing a line through the value stored in a variable means that the

Read Details

What is the value of the var variable at the end of the give…

What is the value of the var variable at the end of the given code snippet? int var = 30; var = var + 2 / var; var++;

Read Details

Which one of the following statements displays the output as…

Which one of the following statements displays the output as -1.23e+02?

Read Details

Which error type does the “off-by-one” error belong to?

Which error type does the “off-by-one” error belong to?

Read Details

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

Posts pagination

Newer posts 1 … 74,768 74,769 74,770 74,771 74,772 … 82,478 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top