Report Bug

QusWhat will be the output of random.choice('fun') if the random module has not already been imported? Qusrandom.choice('fun') का output क्या हो सकता है, यदि random module पहले से import नहीं किया गया है?


A. fun
B. u
C. Error
D. Either f, u, or n


Solution
C. Error



Explanation
Without importing random, the name random is undefined and causes a NameError.

random module import न होने पर random नाम defined नहीं होगा और NameError आएगा।
Latest Current Affairs 2026 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