There are 2 empty jars of 5 and 3 liters capacity. And a
river is flowing besides. I want to measure 4 liters of
wanter using these 2 jars. How do you do this?
Answer Posted / guest
First fill up the 5 liters jar and start filling 3 liters
jar. so now second jar has 3 liters and first jar has 2
liters. Now again fill 5 liters fully and to complete
second jar 1 liter is needed. So, put water in second jar
from first jar. so, 3 liters jar is full now. And first jar
has 4 liters water.
Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
What is encapsulation in oop?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What is multilevel inheritance?
What is interface? When and where is it used?
What is abstract class in oop?
Are polymorphisms mutations?
Explain the advantages of inheritance.
What is pure oop?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is the types of inheritance?
What are oops functions?
What is the importance of oop?
Which type does string inherit from?
What is overriding vs overloading?
What does no cap mean?