Question
A swimmer swims from a point A against a current for 5
minutes and then swims current for next 5 minutes and comes to the point B. If AB is 100meters, the speed of the current is (km/h).Solution
. Let the speed of boat in still water =B and speed of stream =S Distance covered by downstream speed in 5 minutes =(B+S) ×5/60 Distance covered by downstream speed in 5 minutes=(B-S) ×5/60 ATQ-
S=6/10 =0.6km/h Speed of current =S= 0.6km/h
 Which of the following method is specifically designed to allow a network analyst to monitor traffic?
Consider a Java method printList(Node head) for a singly linked list.
class Node {
  int data;
  Node next;
  No...
Complete the C function to find the first occurrence of a character c in a string str and return its index. Return -1 if not found.
#include
What were the early operating systems commonly known as, and what was their primary function?
The Process Control Block (PCB) does not typically contain which of the following information?
Complete the recurrence relation for dp[i][j] in the Longest Common Subsequence (LCS) problem when text1[i-1] is *not equal* to text2[j-1].
# dp[...
Consider the following C++ code:
#include
#include
class Printer {
public:
  void print(int n...
Which is not a access modifier in java?
You are trying to parse a JSON string in Java using a library like org.json.
import org.json.JSONObject;
import org.json.JSONException;
Which of the following is a fundamental concept of Object-Oriented Programming (OOP)?