Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
MCQ Answer
What will be the output of random.choice('fun') if the random module has not already been imported?
What will be the output of random.choice('fun') if the random module has not already been imported?
random.choice('fun') का output क्या हो सकता है, यदि random module पहले से import नहीं किया गया है?
Topic : Modules in Python
A.
fun
B.
u
C.
Error
D.
Either f, u, or n
Correct Answer is :
C. Error
Explanation
Without importing random, the name random is undefined and causes a NameError.
random module import न होने पर random नाम defined नहीं होगा और NameError आएगा।
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2026
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
Best Website and Software Company in Allahabad