Question
The speed of a boat in still water is 8 km/hr and speed
of current is 4 km/hr. If time taken to cover a certain distance upstream is 12 hours, then how long will the boat take to cover the same distance downstream?Solution
Total distance = 12 × (8 – 4) = 48 km Required time = 48/(8 + 4) = 4 hrs
Which of the following is the primary characteristic of serverless computing in cloud platforms?Â
Which of the following conditions is not one of the four necessary conditions for a deadlock to occur?
Fill the blank
In K-Means algorithm, we calculate the distance between each point of the dataset to every ________ initialized.Â
...Which algorithm is used for constraint satisfaction problems?
Which is correct version of delete query in SQL
Quick Sort, another Divide and Conquer algorithm, partitions an array around a pivot. The choice of pivot can significantly impact its performance. What...
In pipelining, the CPU executes each instruction in a series of following stages: Instruction Fetching (IF) —–> Instruction Decoding (ID) —–> In...
A programmer is debugging a Selection Sort implementation. They notice that after the first pass, the smallest element is correctly placed at the beginn...
What is a best practice for securing remote access in Windows and Unix/Linux environments?Â
Complete the Python function to find the starting index of the first occurrence of sub in main_string. Return -1 if not found.
def find_substring...