Answer:
find()
Explanation:
When dealing with MongoDB the method that needs to be used in this scenario would be the find() method. This method basically returns all of the records that exist in the collection on which it is called, if no parameter is passed. If you pass a parameter/expression then only the records that match completely the expression will be returned to the user, otherwise nothing is returned. For example, on a database (db) we would call the following
db.find() ... This will return all records
db.find({specific}) ... This will return only the records that match specific.
Answer:
The best way is 2 and the worst is 1
Explanation:
Answer:
void delete_record(student_record *arr, int &size, int age, string name, double gpa) {
int index = -1;
if (arr != NULL && size > 0) {
for (int i = 0; i < size; ++i) {
if (arr[i].age == age && arr[i].name == name && arr[i].gpa == gpa) {
index = i;
break;
}
}
}
if (index != -1) {
for (int i = index; i < size - 1; ++i) {
arr[i] = arr[i + 1];
}
size--;
}
}
Answer:
sustainability
Explanation:
Sustainability -
It refers to the method to meet the needs of the present generation without hampering the needs of the future generation as well , is referred to as sustainability .
The process of sustainability require to follow the concept of reuse and recycle to be safe for the environment .
The process is very safe for the planet , as it environmental friendly .
Hence , from the given scenario of the question ,
The correct answer is sustainability .
Answer:
Answered below
Explanation:
//Python code
numberOfCasts = 3
j = 0
fishingPoints = 0
sum = 0
while j < numberOfCasts:
dieNum = randint(1 , 6)
if dieNum ==1:
fishingPoints = 2
elif dieNum == 2:
fishingPoints = 4
elif dieNum == 3:
fishingPoints = 6
elif dieNum == 4:
fishingPoints = 8
elif dieNum == 5:
fishingPoints = 10
elif dieNum ==6:
fishingPoints = 12
sum += fishingPoints
j++
if sum > 30:
print ("Great catch")
elif sum > 10 and sum <= 30:
print("Good catch")
else:
print ("Bad day")