Report Bug

QusTo increase the value of x five times using an augmented assignment operator, the correct expression will be Qusसंवर्धित असाइनमेंट ऑपरेटर का उपयोग करके x के मान को पांच गुना बढ़ाने के लिए, सही अभिव्यक्ति होगी


A. x += 5
B. x *= 5
C. x = x ** 5
D. none of these


Solution
B. x *= 5



Explanation

x*=5 is equivalent to x=x*5, where first it multiply the value of n with 5 and then assign/ overwrite the value of n by it.

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