The average of 11 numbers is 30. If the | Solutions
The average of 11 numbers is 30. If the average of first six numbers is 17.5 and that of last six is 42.5, then what is the sixth number?
A. 30 👈Correct Answer
B. 36
C. 45
D. 50
Answer & Explanation:
Sum of 11 Number is 11 x 30 = 330
Given :
[ Avg of first 6 numbers is 17.5, so Sum of first Six Number is 6 x 17.5 ]
[ Avg of Last 6 numbers is 42.5, so Sum of last Six Number is 6 x 42.5 ]
6th Number : ( Sum of first Six Number + Sum of last Six Number ) - 330
Hence the 6th Number is 30
Related Question on The Average of:
The average marks scored by Ganesh in English, Science, Mathematics and History is less than 15 from that scored by him in English, History, Geography and Mathematics. What is the difference of marks in Science and Geography secured by him?
A. 40
B. 50
C. 60
D. Data inadequate
Answer : C( 60 )
The average weight of three men A, B and C is 84 kg. D joins them and the average weight of the four becomes 80 kg. If E, whose weight is 3 kg more than that of D, replaces A, the average weight of B, C, D and E becomes 79 kg. The weight of A is
A. 65 kg
B. 70 kg
C. 75 kg
D. 80 kg
Answer : C( 75 kg )
In a class of 100 students the average marks obtained by a student in Maths is 44. If we remove the highest and the lowest the average of the class becomes 43.92. A total of three students get either highest or lowest. What is the average of these three students?
A. 73.33
B. 46.66
C. 59.99
D. cannot be determined
Answer : B( 46.66 )
Find the average of first 20 natural numbers ?
A. 6
B. 7.5
C. 10.5
D. 12
Answer : C( 10.5 )
The average of 8 men is increased by 2 years when 2 of them whose ages are 21 and 23 years as replaced by two new men. The average age of two new men is
A. 22 years
B. 24 years
C. 28 years
D. 30 years
Answer : D( 30 years )
The average age of a class is 15.8 years. The average age of the boys in the class is 16.4 years and that of the girls is 15.4 years. What is the ratio of boys to girls in the class ?
A. 2 : 3
B. 2 : 4
C. 3 : 4
D. 3 : 5
Answer : A( 2 : 3 )
The average weight of 8 men is increased by 1.5 Kg when one of the men who weights 65 Kg is replaced by a new man. The weight of the new man is
A. 65 Kg
B. 77 Kg
C. 82 Kg
D. 90 Kg
Answer : B( 77 Kg )
A hiker walked for two days. On the second day, the hiker walked 2 hrs. longer and at an average speed of 1 km per hour faster than he walked on the first day. If during the two days he walked a total of 64 km and spent a total of 18 hrs. walking, what was his average speed on the first day?
A. 2 km/h
B. 3 km/h
C. 4 km/h
D. 5 km/h
Answer : B( 3 km/h )
The average age of 8 persons in a committee is increased by 2 years when two men aged 35 years and 45 years are substituted by two women. The average age of these two women is
A. 41 years
B. 45 years
C. 48 years
D. 53 years
Answer : C( 48 years )
Of the four numbers whose average is 60, the first is one-fourth of the sum of the last three. The first number is
We will perform all the mongoDB Aggregation Operator on studentInfo DB. Create studentInfo Database in MongoDB server. Use the below code for creating the DB.
In the above studentInfo Mongo Database we will create many collection and we will perform mongoDB Delete Collection.
Use command db.createCollection("collectionName") , this query we will use and create collection in the studentInfo DB.
Below is the video reference for dropping and deleting the Collection in Mongo.
Create Collection In studentInfo DB, below is the query to create the collection.
db.createCollection("studentPersonal")
db.createCollection("studentMarks")
studentPersonal, studentMarks Collection will be created using above two Mongo Query.
Mongodb Drop Collection Query
Now we will use db.collectionName.drop() for dropping collection in MongoDB. So as we created the collection named with studentPersonal and studentMarks. MongoDB delete and Drop collection will perform in these two collection.
db.studentPersonal.drop()
db.studentMarks.drop()
This above two query will delete the studentPersonal and studentMarks collection from MongoDB.
Note : If there will not be a single collection in the mongoDB then the studentInfo DB will not be visible.
Mongodb Truncate Collection Query
Sometime you want to truncate the Collection in MongoDB instead of Dropping or Deleting the Collection. In that case you must use remove() method on the collection which you want to truncate.
Syntax for MongoDB Collection Truncate
db.collection.remove(<query>,<justOne>)
So if we want to truncate the collection we must have to use remove() method. <justOne > is optional here which limits the deletion of document.
We will Truncate theteacherInfo Collection using below command.
db.teacherInfo.remove({})
This above query will truncate the collection in MongoDB.