Entrance Exams
Govt. Exams
A's work rate = 1/12, B's work rate = 1/18. Combined rate = 1/12 + 1/18 = 3/36 + 2/36 = 5/36. Time = 36/5 = 7.2 days.
int x = 5;
int y = ++x + x++ + x;
System.out.println(y);
++x makes x=6, then 6 is added. x++ uses 6 then increments to 7. Finally +x adds 7. So: 6 + 6 + 7 = 19.
From given conditions: A < C < D and D < B. This means B > D > C > A. Therefore, B has the highest salary.
Each letter is coded as its position in the alphabet: P=16, A=1, P=16, E=5, R=18. Similarly, PENCIL: P=16, E=5, N=14, C=3, I=9, L=12.
Fibonacci-like sequence: T1=2, T2=3, T3=5, T4=8, T5=13, T6=21. Each term = sum of previous two terms.
Let distance = d km. Time A to B = d/60 hours, Time B to A = d/40 hours. Total time: d/60 + d/40 = 10. LCM(60,40)=120, so (2d + 3d)/120 = 10, giving 5d/120 = 10, thus 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.
The DISTINCT keyword in SQL removes duplicate rows from the result set. Example: SELECT DISTINCT column FROM table;
The correct spelling is 'Occasion' with double 'c' and double 's'. This is a common spelling error in English.
A teacher instructs a student, similarly a doctor treats a patient. The relationship is one of professional service provider to recipient.