GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Merge sort has a O(n log2(n)) complexity. If a computer can…

Merge sort has a O(n log2(n)) complexity. If a computer can sort 1,024 elements in an amount of time x, approximately how long will it take the computer to sort 1,024 times that many, or 1,048,576 elements?

Read Details

To process keyboard events, you need to define a class that…

To process keyboard events, you need to define a class that implements the ____ interface.

Read Details

Consider the method powerOfTwo shown below: public boolean…

Consider the method powerOfTwo shown below: public boolean powerOfTwo(int n) { if (n == 1) // line #1 { return true; } else if (n % 2 == 1) // line #2 { return false; } else { return powerOfTwo(n / 2); // line #3 } } How many recursive calls are made from the original call of powerOfTwo(64) (not including the original call)?

Read Details

What is the smallest value of n for which n2> 3n + 4?

What is the smallest value of n for which n2> 3n + 4?

Read Details

You wish to detect when the mouse is moved into a graphical…

You wish to detect when the mouse is moved into a graphical component. Which methods of the MouseListener interface will provide this information?

Read Details

A collection that allows speedy insertion and removal of alr…

A collection that allows speedy insertion and removal of already-located elements in the middle of it is called a ____.

Read Details

If the user presses and releases a mouse button in quick suc…

If the user presses and releases a mouse button in quick succession without moving the mouse, which methods  of the MouseListener interface are called?

Read Details

A collection that allows speedy insertion and removal of alr…

A collection that allows speedy insertion and removal of already-located elements in the middle of it is called a ____.

Read Details

Which exception class should you use from the standard libra…

Which exception class should you use from the standard library if you want to thrown an exception when there are insufficient funds in a bank account to cover a withdrawal?

Read Details

Which of the following statements about running times of alg…

Which of the following statements about running times of algorithms is correct?

Read Details

Posts pagination

Newer posts 1 … 59,364 59,365 59,366 59,367 59,368 … 64,647 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top