Govt Exams
Let distance = d. Time = Distance/Speed. Going: d/60, Returning: d/40. Total: d/60 + d/40 = 10. Taking LCM: (2d + 3d)/120 = 10, so 5d/120 = 10, therefore d = 240 km.
Binary search has a time complexity of O(log n) because it divides the search space by half in each iteration. This works only on sorted arrays.
Cost per apple = 50/12 = Rs. 4.17. Selling price = Rs. 5. Profit = 5-4.17 = 0.83. Profit% = (0.83/4.17)×100 ≈ 20%.
For independent events: P(A and B) = P(A) × P(B) = 0.4 × 0.3 = 0.12
A firewall is a security barrier that filters network traffic based on predetermined rules to protect systems from unauthorized access
Agile methodology emphasizes iterative development, continuous feedback, and adaptability rather than fixed lengthy development cycles
Normalization is the process of organizing data to reduce redundancy and dependency, improving database integrity
ArrayList uses arrays (O(1) random access) while LinkedList uses nodes (O(n) random access but O(1) insertion/deletion at ends)
Cloud computing is characterized by remote resources, not physical hardware on-premises. All others are cloud characteristics
Polymorphism allows objects to take multiple forms - same method name can behave differently in different contexts (method overriding, overloading)