Question
At a farm, the number of heads and legs of chickens and
cows was counted, and it was found that there were 40 heads and 120 legs. Find the number of chickens on the farm.Solution
Given - Head = 40 Leg = 120 As we know – four legs of a cow and two legs of a chicken. Let total head have 4egs =40×4= 160 max leg = 160-120= 40 chickens in park =40/2= 20 now cows= 40-20= 20.
Which of the following integrity constraints ensures that every non-null foreign key value must reference an existing primary key value in another tabl...
Hashing is used for:
The amortized cost of appending an element at the end of a dynamic array is:
Consider the following stack operations. What will be the content of the stack after executing all the operations?
Stackstack = new Stack... Which of the following is NOT among the OWASP Top 10 Web Security Risks?
In Python, what will be the output of the following code snippet, considering scope rules?
x = 5
In asymmetric encryption, which of the following statements is correct?
Which algorithm constructs a suffix tree in linear time?
What is the primary purpose of a B+ Tree in a database management system?
Which sorting algorithm has O(n log n) average case?