Start learning 50% faster. Sign in now
Required Answer = [((16-2) ×12 )/(12+16) ] + 2 = (14 × 12)/28 + 2 = 8 days Alternate method: Ram can do a job in 12 days & Shyam can do same job in 16 days. Let assume total work = LCM (12, 16) = 48 units So Ram can daily do = 48 / 12= 4 units & Shyam can do daily = 48/ 16 = 3 units So Ram left 2 days before the completion of work ,it means that Shyam worked alone in last 2 days Hence Shyam did in last 2 days = 3× 2 = 6 units So remaining work = 48 – 6 = 42 is done by both Hence they worked together initially for = 42/(4 + 3) = 42 / 7 = 6 days Hence total days for completing the work = 6 days + 2 days = 8 days
Below code will give what result for f(3)
f(int x)
{
If(x
Return;
f(x-1);
printf(“%d”, x);
f(n-1);
}
‘/?’ is used for what in C++
Which of the following is a commonly used network cable for wired Ethernet connections?
Which type of flip-flop is most commonly used for storing the state of synchronous digital systems?
In which type of scope do variables declared in a function have priority over variables declared in the surrounding program?
What is the decimal value of the floating-point number C1D00000 (hexadecimal notation)? (Assume 32-bit, single precision floating point IEEE representat...
Which searching algorithm requires the data to be sorted beforehand?
Which of the following statements is true about pipeline hazards?
What does the term "microprogramming" refer to in CPU control design?
Which of the following is NOT a common application of IoT?