GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

Author Archives: Anonymous

Fill in the blank below with one word that pertains to the c…

Fill in the blank below with one word that pertains to the content of this exam. This test is pushing my calculus knowledge it its [BLANK-1].

Read Details

Are you interested in government and politics, or is it a su…

Are you interested in government and politics, or is it a subject you don’t think about too much? (A sentence or two is fine)

Read Details

You have read the syllabus and understand what’s expected of…

You have read the syllabus and understand what’s expected of you.

Read Details

In a grade table, total and count are int variables holding…

In a grade table, total and count are int variables holding one row’s sum and its number of scores. Which expression gives the exact decimal average, such as 86.33 rather than 86?

Read Details

This code is meant to add up every element of pts. What does…

This code is meant to add up every element of pts. What does it actually print?int[][] pts = { {3, 4}, {5, 6}, {1, 2} }; int total = 0; for (int row = 0; row < pts.length; row++) { total = 0; for (int col = 0; col < pts[row].length; col++) { total += pts[row][col]; } } System.out.println(total);

Read Details

A nested loop with the row loop on the outside prints a 2-ro…

A nested loop with the row loop on the outside prints a 2-row by 3-column grid in row-major order. To print it in column-major order (column by column) instead, what should change?

Read Details

This loop is meant to remove every value less than 10. What…

This loop is meant to remove every value less than 10. What does the code print?ArrayList nums = new ArrayList(); nums.add(4); nums.add(6); nums.add(15); nums.add(3); for (int i = 0; i < nums.size(); i++) { if (nums.get(i) < 10) { nums.remove(i); } } System.out.println(nums.get(0) + " " + nums.size());

Read Details

Assume ArrayList has been imported. Which line of this code…

Assume ArrayList has been imported. Which line of this code causes a compile error?ArrayList tags = new ArrayList(); tags.add(“clearance”); int n = tags.length; System.out.println(“Count: ” + n);

Read Details

This code is meant to find the largest value in lows. What d…

This code is meant to find the largest value in lows. What does it print?int[] lows = {-8, -3, -5}; int warmest = 0; for (int t : lows) { if (t > warmest) { warmest = t; } } System.out.println(warmest);

Read Details

What does this code print?int[] a = {4, 9, 2, 6}; a[1] = a[0…

What does this code print?int[] a = {4, 9, 2, 6}; a[1] = a[0] + a[3]; a[0] = 7; System.out.println(a[1]);

Read Details

Posts pagination

Newer posts 1 … 47 48 49 50 51 … 100,439 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top