Question
'Amit' can complete a project in 20 days while 'Bhavya' can
do it in 30 days alone. Bhavya starts the project on Day 1, then Amit works on Day 2, and both work together on Day 3. They follow this sequence repeatedly. How many days will they take to complete the project?Solution
ATQ,
Let the total work be LCM (20, 30) = 60 units
Efficiency of Amit = 60 / 20 = 3 units/day
Efficiency of Bhavya = 60 / 30 = 2 units/day
Work done in 3 days = Bhavya (2×1) + Amit (3×1) + Both (5×1) = 2 + 3 + 5 = 10 units
In 3×5 = 15 days (5 full cycles), work = 10 × 5 = 50 units
Remaining work = 60 - 50 = 10 units
Next 2 days work = Bhavya (2) + Amit (3) = 5 units
Remaining = 10 - 5 = 5 units
Next day (both) do 5 units → full day
Total time = 15 (full cycles) + 2 + 1 = 18 days
- In a relational database, which key uniquely identifies tuples within a table and can never contain NULL values?
What will be the output of the following code when implementing the SCAN I/O scheduling algorithm?
def scan(requests, head, direction):
 ...
Which of the following cloud service models provides the most control over the underlying infrastructure to the user?Â
Which method is used to compute the inverse of a matrix in numerical computing efficiently?
Which of the following data structures is best suited for implementing a priority queue?  Â
To count total no of argument in shell
Truncate command in SQL
Which layer in the OSI model corresponds to the Transport layer in the TCP/IP model and is responsible for end-to-end communication, error correction, a...
 The term "FAT" is stands for_____
In the context of Intelligent Systems, which of the following algorithms is primarily used for real-time pathfinding in robotics?