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.

Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad