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 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz