Question
A man can row at 4 kmph in still water. If the velocity
of current is 3 kmph and it takes him 8 hour to row to a place and come back, how far is the place?Solution
Let the distance be x km. Speed upstream = 4 – 3 = 1 kmph Speed downstream = 4 + 3 = 7 kmph => (x/7) + (x/1) = 8 => (x + 7x)/7 = 8 => 8x = 56 => x = 7 km
What does the term "code optimization" refer to in the context of software development?
Mutex locks can be used in CPU scheduling.
Which of the following members of a superclass are NOT inherited by its subclass?
Which keyword is used in Java to indicate that a method in a subclass is intended to override a method in its superclass?
A system call is typically implemented as a(n):
State true or false
This scheduling algorithm is not ideal for time sharing systems.
Consider the following Java code snippet:
  import java.util.PriorityQueue;
  public class HeapQuestion9 {
    publ...
A hash map (or dictionary) implemented with separate chaining is exhibiting very poor performance, even with a seemingly good hash function. Operations ...
Which algorithm divides the input array into two halves, sorts each half, and then merges the sorted halves?
In object-oriented programming, when defining an interface method, which of the following statements is true regarding method parameters?