NIELIT O Level Exam

What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?

What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?

क्या होगा यदि लूप के लिए/लूप की बॉडी एक ऐसी प्रॉपर्टी को हटा देता है जिसे अभी तक एन्यूमरेट नहीं किया गया है?

A. The property will be stored in a cache प्रॉपर्टी को कैश में स्टोर किया जाएगा

B. The loop will not run लूप नहीं चलेगा

C. That property will not be enumerated उस प्रॉपर्टी की गणना नहीं की जाएगी

D. The property will be enumerated प्रॉपर्टी की गणना की जाएगी




Correct Answer is :

C. That property will not be enumerated



Explanation
If the body of a for/in loop deletes a property that has not yet been enumerated, that property will not be enumerated. If the body of the loop defines new properties on the object, those properties will generally not be enumerated.
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