A father said to his son I was as old as you are at the present

  1. A father said to his son, "I was as old as you are at the present at the time of your birth". If the father's age is 38 years now, the son's age five years back was:
  1. A. 14 years
  2. B. 19 years
  3. C. 33 years
  4. D. 38 years
  1. Answer & Explanation:
    Suppose the son's current age is x years. Then, (38 - x) = x
    ⇒  2x = 38.
     ⇒ x = 19.
     Son's age 5 years back (19 - 5) = 14 years
  1. Related Question:
  1. At present, the sum of ages of 4 people is 76. After 7 years, the ratio will be 7:6:5:8. Find out the present age of C?
  1. A. 12
  2. B. 11
  3. C. 17
  4. D. 13
  1. Answer : D ( 13 )

  1. In a class, there are 20 boys whose average age is decreased by 2 months, when one boy age 18 years is replaced by a new boy. The age of the new boy is
  1. A. 14 years 8 months
  2. B. 16 yews 4 months
  3. C. 15 years
  4. D. 17 years 10 months
  1. Answer : A ( 14 years 8 months )

  1. Jayesh is as much younger to Anil as he is older to Prashant. If the sum of the ages of Anil and Prashant is 48 years. What is the age of Jayesh?
  1. A. 20 years
  2. B. 24 years
  3. C. 30 years
  4. D. Cannot be determined
  1. Answer : B ( 24 years )

  1. Four years ago, the father’s age was three times the age of his son. The total of the ages of the father and the son after four years, will be 64 years. What is the father’s age at present?
  1. A. 32
  2. B. 33
  3. C. 36
  4. D. 38
  1. Answer : C ( 36 )

  1. A father's age is three times the sum of the ages of his two children, but 20 years hence his age will be equal to the sum of their ages. Then the father's age is
  1. A. 30 years
  2. B. 40 years
  3. C. 35 years
  4. D. 45 years
  1. Answer : A ( 30 years )

  1. The ratio of the ages of the father and the son at present is 7:1. After 4 years, the ratio will become 4:1. What is the sum of the present ages of the father and the son?
  1. A. 29 years
  2. B. 35 years
  3. C. 32 years
  4. D. None of these
  1. Answer : C ( 32 years )

  1. In a cricket 11, the average age of 11 players is 28 years. Out of these, the average ages of three groups of three players each are 25 years, 28 years and 30 years, respectively. If in these groups, the captain and the youngest player are not included and the captain is eleven years older than the youngest player, what is the age of the captain?
  1. A. 33 years 
  2. B. 34 years 
  3. C. 35 years 
  4. D. 36 years 
  1. Answer : C ( 35 years  )

  1. The present ages of three persons in proportions 4 : 7 : 9. Eight years ago, the sum of their ages was 56. Find their present ages (in years).
  1. A. 8, 20, 28
  2. B. 16, 28, 36
  3. C. 20, 35, 45
  4. D. None of these
  1. Answer : B ( 16, 28, 36 )

  1. The average age of an adult class is 40 years. 12 new students with an average age of 32 years join the class, thereby decreasing the average by 4 years. The original strength of the class was
  1. A. 10
  2. B. 11
  3. C. 12
  4. D. 15
  1. Answer : C ( 12 )

  1. The total age of A and B is 12 years more than the total age of B and C. C is how many years younger than A?
  1. A. C is younger than A
  2. B. 6
  3. C. 12
  4. D. 24

  1. Answer : C ( 12 )

The speed of a boat when travelling downstream is 32 km/h, whereas

  1. The speed of a boat when travelling downstream is 32 km/h, whereas when travelling upstream it is 28 km/h. What is the speed of the boat in still water?
  1. A. 27 km/h
  2. B. 29 km/h
  3. C. 31 km/h
  4. D. Cannot be determined
  1. Answer & Explanation:

    Suppose the speed of boat in still water is x km/h and speed of stream is y km/h
    Speed of boat in downstream = (x + y) km/h
    x + y = 32 …(i)
    Speed of boat in upstream = (x – y) km/h
    x – y = 28 …(ii)
    Add. Eqs. (i) and (ii),
    we get
    2x = 60 x = 30 km/h
  1. Related Question:
  1. In one hour, a boat goes 11 km/hr along the stream and 5 km/hr against the stream. The speed of the boat in still water (in km/hr) is:
  1. A. 3 km/hr
  2. B. 5 km/hr
  3. C. 8 km/hr
  4. D. 9 km/hr
  1. Answer : C ( 8 km/hr )

  1. A boat running upstream takes 7 hours 48 minutes to cover a certain distance while it takes 4 hours to cover the same distance running downstream. What is the ratio between speed of the boat and the speed of water current respectively ?
  1. A. 37 : 14
  2. B. 41 : 16
  3. C. 52 : 18
  4. D. 59 : 19
  1. Answer : D ( 59 : 19 )

  1. A man rows a boat at 8 km upstream in 2 hours and 2 km downstream in 40 minutes. How long will he take to reach 7 km in still water?
  1. A. 2 hrs
  2. B. 4 hrs 15 min
  3. C. 6 hrs
  4. D. 7 hrs 40 min
  1. Answer : A ( 2 hrs )

  1. A man rows 40 km downstream and 22 km upstream taking 5 hours each time. What is the velocity of the current ?
  1. A. 1.8 km/h
  2. B. 1.9 km/h
  3. C. 2.3 km/h
  4. D. 2.7 km/h
  1. Answer : A ( 1.8 km/h )

  1. A boat takes 90 mins less to travel 36 miles downstream than to travel the same distance upstream. If the speed of the boat in still water is 10 mph, the speed of the stream is
  1. A. 4
  2. B. 3
  3. C. 2.5
  4. D. 2
  1. Answer : D ( 2 )

  1. A boat goes 24 km upstream and 28 km downstream in 6 hrs. If it goes 30 km upstream and 21 km downstream in 6 hrs and 30 mins, find the speed of the steam.
  1. A. 10 km/hr
  2. B. 5 km/hr
  3. C. 4 km/hr
  4. D. 6 km/hr
  1. Answer : C ( 4 km/hr )

  1. At his usual rowing rate, Rahul can travel 12 miles downstream in a certain river in 6 hrs less than it takes him to travel the same distance upstream. But if he could double his usual rowing rate for this 24mile round trip, the downstream 12 miles would then take only one hour less than the upstream 12 miles. What is the speed of the current in miles per hour?
  1. A. 7/3
  2. B. 4/3
  3. C. 5/3
  4. D. 8/3
  1. Answer : D ( 8/3 )

  1. A and B in boat B1 challenge C and D in boat B2 in a race of 50 km. A and B take turns to row the stretches of 6 km and A begins. C and D take turns to row an hour and C begins. A and C can each row 5 km/hr, B and D each can row only 5(1/2) km/hr. Which boat wins and by what time?
  1. A. B1 wins by 2 mins
  2. B. B2 wins by 1(7/11) mins
  3. C. Both reach the finishing spot together
  4. D. B1 wins by 5(4/11)
  1. Answer : B ( B2 wins by 1(7/11) mins )

  1. In a stream that is running at 2 km/hr, a man goes 10 km upstream and comes back to the starting point in 55 mins. Find the speed of the man in still water.
  1. A. 20 km/hr
  2. B. 22 km/hr
  3. C. 24 km/hr
  4. D. 28 km/hr
  1. Answer : B ( 22 km/hr )

  1. A boatman goes 2 km against the current of the stream in 1 hr and goes 1 km along the current in 10 mins. How long will he take to go 5 km in stationary water?
  1. A. 1 hr
  2. B. 1 hr 15 mins
  3. C. 1(1/2) hrs
  4. D. 40 mins

  1. Answer : B ( 1 hr 15 mins )

SQL Query Example and Sample SQL Commands Queries

MYSQL Query Example


CHAR_LENGTH() Example


CHAR_LENGTH() function is used to count the character in the given String.

  SELECT question, explainans, `view`, CHAR_LENGTH(explainans) AS lengt 
FROM `question` WHERE explainans IS NOT NULL AND CHAR_LENGTH(explainans) > 200 
ORDER BY `view` DESC



GROUP BY() Example

 SELECT created_at, COUNT(*) FROM `application_for_otherexam` WHERE exam_id = '8' 
GROUP BY DATE(created_at)

 SELECT created_at, COUNT(*) AS Total FROM `application_for_otherexam` 
WHERE exam_id = '8'  AND form_status='55' GROUP BY DATE(created_at)



General Sample MY SQL Query Example

 SELECT COUNT(*) AS Total FROM `application` WHERE formstatus IN('4', '44', '55') 
AND examid='8'

 SELECT school_name, code FROM `school_master` WHERE code IN('22','31','31')

 SELECT CONCAT(FIRST_NAME,' ',LAST_NAME) AS WORKER_NAME FROM WORKER WHERE 
CONCAT(FIRST_NAME,' ',LAST_NAME) LIKE '%hal'

 SELECT YEAR(dob), COUNT(*) AS TOTAL FROM STUDENT_DETAILS GROUP BY YEAR(DOB) 
HAVING TOTAL>10 ORDER BY YEAR(DOB) ASC

 SELECT CONCAT(FIRST_NAME, ' ', LAST_NAME), SALARY FROM WORKER WHERE SALARY
BETWEEN 50000 AND 100000 

 SELECT APPCOMMADDR1, LENGTH(APPCOMMADDR1) AS T1, APPCOMMADDR2, 
LENGTH(APPCOMMADDR2) AS T2, APPCOMMADDR3, LENGTH(APPCOMMADDR3) AS T3 
FROM `Data_Dump_Dept_exam_dec2019_20191203` HAVING T1>50 AND T2>50 AND T3>50


MYSQL Sub Queries Example

 SELECT udiscode FROM schoolmaster WHERE code IN ( SELECT SCHL FROM `udise_mapping`
GROUP BY SCHL HAVING COUNT(*)>1)



CONCAT(), UPPER(), LOWER() Function Example

 SELECT UPPER(FIRST_NAME) AS FNAME, UPPER(LAST_NAME) AS LNAME, 
CONCAT(UPPER(FIRST_NAME),' ',UPPER(LAST_NAME))AS FULLNAME FROM WORKER 
ORDER BY FULLNAME ASC

 SELECT CONCAT(FIRST_NAME,' ',LAST_NAME) AS WORKER_NAME FROM WORKER WHERE 
CONCAT(FIRST_NAME,' ',LAST_NAME) LIKE '%hal'



SQL DATE(), YEAR(), MONTH() Function Example

 SELECT CURDATE() 

 SELECT YEAR(CURDATE())

 SELECT MONTH(CURDATE())

 SELECT DAY(CURDATE())

 SELECT NOW()

 SELECT YEAR(NOW())

 SELECT MONTH(NOW())

 SELECT HOUR(NOW())

 SELECT MINUTE(NOW())

 SELECT SECOND(NOW())
 SELECT * FROM WORKER WHERE MONTH(JOINING_DATE) = 6 ORDER BY SALARY DESC LIMIT 2

 SELECT  MONTHNAME(STR_TO_DATE(MONTH(dob),'%m')) AS mname, COUNT(*) AS totalno 
FROM `student_details` WHERE MONTH(dob) =1 GROUP BY MONTHNAME(STR_TO_DATE(MONTH(dob),'%m'))



Example Using Case in MYSQL Query

 SELECT COUNT(
       CASE
           WHEN roll_no IS NULL
           THEN 1
           ELSE NULL
       END
   ) AS 'not_complete',
   COUNT(
       CASE
           WHEN  roll_no IS NOT NULL
           THEN 1
           ELSE NULL
       END
   ) AS 'completed'
    FROM `application`
WHERE examid =7

 SELECT school_id, COUNT(
       CASE
           WHEN formstatus = '4'
           THEN 1
           ELSE NULL
       END
   ) AS 'Initiated',
   COUNT(
       CASE
           WHEN  formstatus = '45'
           THEN 1
           ELSE NULL
       END
   ) AS 'Payment Pending',
   COUNT(
       CASE
           WHEN  form_status = '55'
           THEN 1
           ELSE NULL
       END
   ) AS 'Payment Done'
    FROM `application` 
WHERE examid =7 GROUP BY school_id

 SELECT COUNT(
CASE 
  WHEN gender = 'MALE'
  THEN 1
  ELSE NULL
  END 
  ) AS MALECOUNT, 
COUNT(
CASE 
  WHEN gender = 'FEMALE'
  THEN 1
  ELSE NULL
  END 
  ) AS FEMALECOUNT, COUNT(*) AS Total 
FROM `application` WHERE exam_id='8' AND form_status IN('55')



Using MYSQL IF statement with Example

 SELECT b.centre_id,COUNT(IF(MED='TAMIL' OR  MED='ENGLISH',1,NULL)) AS TAMENG,
COUNT(IF(MED='KANNADA',1,NULL)) AS KANNADA,
COUNT(IF(MED='HINDI',1,NULL)) AS HINDI,
COUNT(IF(MED='URDU',1,NULL)) AS URDU,
COUNT(IF(MED='ARABIC',1,NULL)) AS ARABIC,
COUNT(IF(MED='PERSIAN',1,NULL)) AS PERSIAN,
COUNT(IF(MED='LATIN',1,NULL)) AS LATIN,
COUNT(IF(MED='ENGLISH',1,NULL)) AS ENGLISH FROM `dummynoexam`a
JOIN `examrollnumber` b ON a.student_id=b.student_id AND a.class_id=b.class_id 
AND a.sess_id=b.sess_id
JOIN  centremasterexam cm FORCE INDEX(cent_class_sess) ON   b.centre_id=cm.CENT 
AND b.class_id=cm.CLASS_ID AND b.sess_id=cm.SESS_ID
GROUP BY SUB,b.centre_id

 SELECT COUNT(IF(statusflag = 1, 1, NULL)) AS STATUS1, COUNT(IF(statusflag=0, 1, NULL)) 
AS STATUS0, COUNT(IF(statusflag IS NULL,1, NULL)) AS STATUSNULL FROM `student`



MYSQL LPAD AND MID FUNCTION() USAGE and Example

SELECT `code`, MID(district_name,1,4) AS prefix, CONCAT(prefix,LPAD(`code`,4,0)) 
FROM `educational_district`


Set the Variable in MYSQL

SET @a:=1;  // Run this first and then run the query

SELECT e.code, s.dge_code, centre_id, rollno, student_group_id, subject_id, medium_id, @a:=@a+1 AS ID   FROM `student_pappermapping` a JOIN `student_exam_details` b ON a.student_exam_details_id =b.id
JOIN `student_details` c ON b.student_id= c.id 
JOIN `subject_list` d ON d.SUBJECT = a.subject_id AND b.class_id=d.CLASS_ID
JOIN school_master s ON c.school_id=s.id
JOIN `educational_district` e ON s.district_id=e.id
JOIN  `exam_rollnumber` r ON r.student_id=c.id AND r.class_id = b.class_id AND r.sess_id=b.sess_id
WHERE c.school_id =1345 AND b.class_id =3 AND b.sess_id= 1 AND (d.TTAG='P' OR LNKSUB <> '')  
ORDER BY e.code, dge_code, student_group_id, subject_id, medium_id



SELECT sr.student_id, doe.ROLLNO, doe.NAME, COUNT(*), (GROUP_CONCAT(sr.subject_id SEPARATOR ', ')) AS applied_subjects
FROM `student_revaluation` sr JOIN `dummy_no_exam` doe ON doe.student_id = sr.student_id AND doe.SUB = sr.subject_id GROUP BY sr.student_id





Reema can complete a piece of work in 12 days while Seema

  1. 👉   Reema can complete a piece of work in 12 days while Seema can the same work in 18 days. If they both work together, then how many days will be required to finish the work?
  1. A. 6 days
  2. B. 7.2 days     👈 Correct Answer
  3. C. 9.5 days
  4. D. 12 days

  1. 👉  Answer & Explanation:

    Reema can complete a piece of work in 12 days, So Reema 1 Day's work will be  1/12 
    Seema can complete a Same piece of work in 18 days, So Seema 1 Day's work will be 1 / 18
    Combine 1 Day's  Work of Reema and Seema  ⇒  1/12 +  1/18
    So combined 1 Day work 1/12 +  1/18  ⇒  (6 + 4)/72  ⇒  5 / 36
    : : combinely they (Reema and Seema) will acomplish the task in 36 / 5 Days ⇔ 7(1/5)
    7.2 days
reema can complete a piece of work in 12 days

👉 Reema can complete a piece of work in 12 days 👈



  1. Related Question Like Reema can complete a piece of work:
  1. 20 men and 20 women can complete half of the work in 20 days working with alternatively. If 10 men and 20 boys together can complete the whole work in 10 days, then find the number of days required by 20 boys alone complete the Remaining work?
  1. A. 12 days
  2. B. 11 days
  3. C. 10 days
  4. D. 12 days
  1. Answer : C ( 10 days )

  1. 10 men can complete a piece of work in 15 days and 15 women can complete the same work in 12 days. If all the 10 men and 15 women work together, in how many days will the work get completed?
  1. A. 6
  2. B. 6 (1/3)
  3. C. 6 (2/3)
  4. D. 7 (2/3)
  1. Answer : C ( 6 (2/3) )

  1. Two candles of the same height are lighted at the same time. The first is consumed in 4 h and the second in 3 h. Assuming that each candle burns at a constant rate, in how many hrs after being lighted was the first candle twice the height of the second?
  1. A. 3/4 h
  2. B. 1 1/2 h
  3. C. 2 h
  4. D. 2 2/5 h
  1. Answer : D ( 2 2/5 h )

  1. A can complete 2/3 of the work in 6 days. If A and B together the complete the work in 6 days, then find the time required by C, who is twice efficient than B? June 28, 2018
  1. A. 9 days
  2. B. 7 days
  3. C. 12 days
  4. D. 5 days
  1. Answer : A ( 9 days )

  1. 4 men and 6 women can complete a work in 8 days, while 3 men and 7 women can complete it in 10 days. In how many days will 10 women complete it?
  1. A. 35
  2. B. 40
  3. C. 50
  4. D. 45
  1. Answer : B ( 40 )

  1. Twenty women can do a work in sixteen days. Sixteen men can completed the same work in fifteen days. What is the ratio between the capacity of a man and women?
  1. A. 3:4
  2. B. 4:3
  3. C. 5:3
  4. D. Data inadequate
  1. Answer : B ( 4:3 )

  1. Robin, the cook, can cut either 120 carrots or 72 potatoes or 60 beetroots in t mins. One day, during the first K mins, he spent an equal amount of time cutting each of the three types of vegetables. However, in the next K mins, he cut exactly n carrots, n beetroots and n potatoes. If he cut a total of 282 vegetables during the first 2K mins on that day, what is the value of n?
  1. A. 225
  2. B. 75
  3. C. 45
  4. D. 135
  1. Answer : C ( 45 )

  1. Ten women can complete a piece of work in 15 days. Six men can complete the same piece of work in 10 days. In how many days can five women and six men together complete the piece of work?
  1. A. 15 days
  2. B. 7.5 days
  3. C. 9 days
  4. D. 12.5 days
  1. Answer : B ( 7.5 days )

  1. 7 men can complete a piece of work in 12 days. How many additional men will be required to complete double the work in 8 days?
  1. A. 28
  2. B. 21
  3. C. 14
  4. D. 7
  1. Answer : C ( 14 )

  1. Karthi is 40% more efficient than Rajesh, and Karthi can alone do a work in 20 days. If they working in alternative days starts with Karthi, then in how many days the work will get completed?
  1. A. 21 (1/7) days
  2. B. 26 (2/5) days
  3. C. ys18 (6/17) days
  4. D. 23 (1/5) days

  1. Answer : D ( 23 (1/5) days )

Our Feature Post

There is a tree between houses of A and B If the tree leans on As House

    There is a tree between houses of A and B. If the tree There is a tree between houses of A and B. If the tree leans on A’s House, the t...

Our Popular Post