NIELIT O Level Exam

The reduce and reduceRight methods follow a common operation called __________

The reduce and reduceRight methods follow a common operation called __________

कम करने और कम करने के तरीके __________ नामक एक सामान्य ऑपरेशन का पालन करते हैं

A. filter and fold फिल्टर और फोल्ड

B. inject and fold इंजेक्ट और फोल्ड

C. finger and fold फिंगर और फोल्ड

D. fold फोल्ड




Correct Answer is :

B. inject and fold



Explanation
The reduceRight() method reduces the array to a single value. The reduceRight() method executes a provided function for each value of the array (from right-to-left). The return value of the function is stored in an accumulator (result/total). Hence it does the operation of injecting and folding.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad