GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Which one of the following statements is correct about the g…

Which one of the following statements is correct about the given code snippet? int[] somearray = new int[6]; for (int i = 1; i < 6; i++) { somearray[i] = i + 1; }

Read Details

Assume the following variable has been declared and given a…

Assume the following variable has been declared and given a value as shown: int[] numbers = {9, 17, -4, 21 }; Which is the value of numbers.length?

Read Details

The operator !> stands for

The operator !> stands for

Read Details

Which code snippet will always output “Yes!” when s1 and s2…

Which code snippet will always output “Yes!” when s1 and s2 are two strings the contain the same sequence of characters?

Read Details

Which is a legal number literal of type int in Java?

Which is a legal number literal of type int in Java?

Read Details

Arguments supplied to methods are enclosed by which symbols?

Arguments supplied to methods are enclosed by which symbols?

Read Details

Which statement about number literals in Java is false?

Which statement about number literals in Java is false?

Read Details

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

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

Read Details

Select the statement that reveals the logic error in the fol…

Select the statement that reveals the logic error in the following method. public static double minimum(double[] data) { double smallest = 0.0; for (int i = 0; i < data.length; i++) { if (data[i] < smallest) { smallest = data[i]; } } return smallest; }

Read Details

 What is the output of the statements below? int a = 10; if…

 What is the output of the statements below? int a = 10; if (a > 5) { System.out.print (“One”); } else { System.out.print (“Two”); } System.out.print (“Three”);

Read Details

Posts pagination

Newer posts 1 … 74,361 74,362 74,363 74,364 74,365 … 82,068 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top