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
QUIZ ON : python - MODULES IN PYTHON
MODULES IN PYTHON
00:00:00
English
Hindi
Question No# :
01
out of 50
Which of the following functions can help us to find the version of python that we are currently working on?
निम्नलिखित में से कौन सा फ़ंक्शन हमें वर्तमान में काम कर रहे Python के वर्जन को फाइंड करने में हेल्प कर सकता है?
A.
sys.version
sys.version
B.
sys.version()
sys.version()
C.
sys.version(0)
sys.version(0)
D.
sys.version(1)
sys.version(1)
Question No# :
02
out of 50
Which of the following is the basic I/O connections in file ?
फ़ाइल में निम्न में से कौन सा बुनियादी I/O कनेक्शन है?
A.
Standard Input
Standard Input
B.
Standard Output
Standard Output
C.
Standard Errors
Standard Errors
D.
All of the mentioned
All of the mentioned
Question No# :
03
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">import math as m<br></span><span style="font-size: 14px;">print(m.factorial(4))</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import math as m<br></span><span style="font-size: 14px;">print(m.factorial(4))</span></pre>
A.
4
4
B.
16
16
C.
24
24
D.
Error
Error
Question No# :
04
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randint(1,1))</span></pre><div><br></div>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randint(1,1))</span></pre>
A.
0
0
B.
1
1
C.
Random number
Random number
D.
Error
Error
Question No# :
05
out of 50
What is Full form of LEGB ?
LEGB का फुल फॉर्म क्या है?
A.
Low, Enclosing, Global and Built-in
Low, Enclosing, Global and Built-in
B.
Local, Enclosing, Global and Built-in
Local, Enclosing, Global and Built-in
C.
Local, Ending, Global and Built-in
Local, Ending, Global and Built-in
D.
Light, Emitting, Global and Built-in
Light, Emitting, Global and Built-in
Question No# :
06
out of 50
<p>What will be the output of the following Python function if the random module has already been imported?</p> <pre><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randint(3.5,7))</span></pre><div><br></div>
<p>यदि रैंडम मॉड्यूल पहले से ही इम्पोर्ट किया गया है तो निम्न पायथन फ़ंक्शन का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randint(3.5,7))</span></pre>
A.
Error
एरर
B.
Any integer between 3.5 and 7, including 7
3.5 और 7 के बीच कोई भी पूर्णांक, जिसमें 7 भी शामिल हैं
C.
Any integer between 3.5 and 7, excluding 7
3.5 और 7 के बीच कोई भी पूर्णांक, 7 को छोड़कर
D.
The integer closest to the mean of 3.5 and 7
पूर्णांक 3.5 और 7 के माध्य से निकटतम है
Question No# :
07
out of 50
Scope of a name in Python refers to:
Python में name के scope का अर्थ क्या है?
A.
Lifetime of an object
Lifetime of an object
B.
Region of code where a name is accessible
Region of code where a name is accessible
C.
Size of a variable
Size of a variable
D.
Memory address
Memory address
Question No# :
08
out of 50
Which of the following functions is not defined under the sys module?
निम्नलिखित फंक्शंस में से कौन सी sys मॉड्यूल के अंडर डिफाइन नहीं है?
A.
sys.platform
sys.platform
B.
sys.path
sys.path
C.
sys.readline
sys.readline
D.
sys.argv
sys.argv
Question No# :
09
out of 50
Which of the following statements are used in Exception Handling in Python?
पायथन में एक्सेप्शन हैंडलिंग में निम्नलिखित में से कौन सा कथन उपयोग किया जाता है?
A.
try
try
B.
except
except
C.
finally
finally
D.
All of the above
All of the above
Question No# :
10
out of 50
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?
फ़ंक्शन द्वारा जनरेटेड वैल्यू का इंटरवल random.random () है, यह मानते हुए कि रैंडम मॉड्यूल पहले से ही इम्पोर्ट किया गया है?
A.
(0,1)
(0,1)
B.
(0,1]
(0,1]
C.
[0,1]
[0,1]
D.
[0,1)
[0,1)
Question No# :
11
out of 50
Which file extension is used for Python modules?
Python modules के लिए standard file extension कौन-सी है?
A.
.py
.py
B.
.mod
.mod
C.
.exe
.exe
D.
.txt
.txt
Question No# :
12
out of 50
Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?
निम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?
A.
0
0
B.
1
1
C.
KeyError: 1
KeyError: 1
D.
none of the mentioned
उल्लेखित कोई नहीं
Question No# :
13
out of 50
<p>What will be the output of the following Python expression?</p> <pre><span class="kw2" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">print(round</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span class="nu0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">4.576</span><span class="br0" style="font-family: Consolas, Monaco, " lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">))</span></pre>
<p>निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span class="kw2" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" green;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">print(round</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">(</span><span class="nu0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" color:="" rgb(255,="" 69,="" 0);="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">4.576</span><span class="br0" lucida="" console",="" monospace;="" text-align:="" justify;="" overflow:="" visible;="" padding:="" 0px;="" border:="" box-shadow:="" none;="" background-image:="" initial;="" background-position:="" background-size:="" background-repeat:="" background-attachment:="" background-origin:="" background-clip:="" overflow-wrap:="" normal;="" margin:="" 0px="" !important;="" line-height:="" 20px="" !important;"="">))</span></pre>
A.
4.5
4.5
B.
5
5
C.
4
4
D.
4.6
4.6
Question No# :
14
out of 50
Which scope is searched first according to the LEGB rule?
LEGB rule के अनुसार सबसे पहले कौन-सा scope search किया जाता है?
A.
Global
Global
B.
Enclosing
Enclosing
C.
Built-in
Built-in
D.
Local
Local
Question No# :
15
out of 50
<p>What is the output of following?</p><pre>print(round(4.567, 2))</pre>
<p>निम्न code का output क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">print(round(4.567, 2))</pre>
A.
4.56
4.56
B.
4.57
4.57
C.
4.5
4.5
D.
5
5
Question No# :
16
out of 50
Which keyword is used to modify a global variable inside a function?
किसी फंक्शन के अंदर ग्लोबल वेरिएबल को मॉडिफाई करने के लिए किस कीवर्ड का उपयोग किया जाता है?
A.
static
static
B.
global
global
C.
public
public
D.
extern
extern
Question No# :
17
out of 50
Which statement is correct to import all modules from the package ?
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
A.
From package import all
From package import all
B.
From package import *
From package import *
C.
From package include all
From package include all
D.
From package include *
From package include *
Question No# :
18
out of 50
os.getlogin() function return?
os.getlogin() फ़ंक्शन क्या रिटर्न करेगा ?
A.
Return the name of the user logged in to the terminal
Return the name of the user logged in to the terminal
B.
Return the email of the user logged in to the terminal
Return the email of the user logged in to the terminal
C.
Return the login time when user logged in to the terminal
Return the login time when user logged in to the terminal
D.
None of the above
None of the above
Question No# :
19
out of 50
<p>What will be the output?</p><pre><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.ceil(4.2))</span></pre>
<p>इसका परिणाम क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import math<br></span><span style="font-size: 14px;">print(math.ceil(4.2))</span></pre>
A.
4
4
B.
5
5
C.
4.2
4.2
D.
Error
Error
Question No# :
20
out of 50
What the does random.seed(3) return?
random.seed (3) क्या रिटर्न करता है ?
A.
True
सही
B.
None
कोई नहीं
C.
3
3
D.
1
1
Question No# :
21
out of 50
<p>What will be the output of the following Python function, assuming that the random module has already been imported?</p> <pre><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">random.uniform(3,4)</span></pre>
<p>निम्नलिखित Python फ़ंक्शन का आउटपुट क्या होगा, यह मानते हुए कि रैंडम मॉड्यूल पहले ही इम्पोर्ट किया जा चुका है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">random.uniform(3,4)</span></pre>
A.
Error
एरर
B.
Either 3 or 4
Either 3 or 4
C.
Any integer other than 3 and 4
3 और 4 के अलावा कोई भी इन्टिजर
D.
Any decimal value between 3 and 4
3 और 4 के बीच कोई भी डेसिमल वैल्यू
Question No# :
22
out of 50
What does LEGB stand for in Python scope rules?
पायथन स्कोप नियमों में LEGB का पूर्ण रूप क्या है?
A.
Local, Enclosing, Graphical, Built-in
Local, Enclosing, Graphical, Built-in
B.
Local, External, Global, Binary
Local, External, Global, Binary
C.
List, Entry, Global, Block
List, Entry, Global, Block
D.
Local, Enclosing, Global, Built-in
Local, Enclosing, Global, Built-in
Question No# :
23
out of 50
Which scope is created by a function defined inside another function?
किसी दूसरे function के अंदर defined function द्वारा कौन-सा scope बनाया जाता है?
A.
Local
Local
B.
Global
Global
C.
Enclosing
Enclosing
D.
Built-in
Built-in
Question No# :
24
out of 50
Which of these definitions correctly describes a module?
इनमें से कौन सी परिभाषा सही ढंग से एक मॉड्यूल का वर्णन करती है?
A.
Denoted by triple quotes for providing the specification of certain program elements
कुछ प्रोग्राम एलीमेंटों के विनिर्देश प्रदान करने के लिए ट्रिपल कोट्स द्वारा अस्वीकृत
B.
Design and implementation of specific functionality to be incorporated into a program
एक प्रोग्राम में शामिल किए जाने के लिए विशिष्ट कार्यक्षमता का डिजाइन और कार्यान्वयन
C.
Defines the specification of how it is to be used
इसका उपयोग कैसे करना है, इसके विनिर्देश को परिभाषित करता है
D.
Any program that reuses code
कोई भी प्रोग्राम जो कोड का पुनः उपयोग करता है
Question No# :
25
out of 50
What is the range of values that random.random() can return?
उन वैल्यू की रेंज क्या है जो random.random () रिटर्न आ सकते हैं?
A.
[0.0, 1.0]
[0.0, 1.0]
B.
(0.0, 1.0]
(0.0, 1.0]
C.
(0.0, 1.0)
(0.0, 1.0)
D.
[0.0, 1.0)
[0.0, 1.0)
Question No# :
26
out of 50
Which statement imports only selected names from a module?
केवल selected names को module से import करने वाला statement कौन-सा है?
A.
import math
import math
B.
import math as m
import math as m
C.
from math import sqrt
from math import sqrt
D.
load math
load math
Question No# :
27
out of 50
<p>What will be the output of the following Python code if the system date is: 6/19/2017</p><pre><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today()<br></span><span style="font-size: 14px;">tdelta=datetime.timedelta(days=10) <br></span><span style="font-size: 14px;">print(tday+tdelta)</span></pre><div><br></div>
<p>यदि सिस्टम का दिनांक है: 6/19/2017, तो निम्न पायथन कोड का आउटपुट क्या होगा</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import datetime<br></span><span style="font-size: 14px;">tday=datetime.date.today()<br></span><span style="font-size: 14px;">tdelta=datetime.timedelta(days=10) <br></span><span style="font-size: 14px;">print(tday+tdelta)</span></pre>
A.
2017-16-19
2017-16-19
B.
2017-06-9
2017-06-9
C.
2017-06-29
2017-06-29
D.
Error
एरर
Question No# :
28
out of 50
<p>What will be the output of the code given below?</p><pre>import math as m<br>print(m.pi)</pre>
<p>निम्न code का output क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import math as m<br>print(m.pi)</pre>
A.
3.141592654
3.141592654
B.
math.pi
math.pi
C.
Error
Error
D.
None
None
Question No# :
29
out of 50
A Python module is a file with the __________ file extension that contains valid Python code.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।
A.
.pym
.pym
B.
.pymodule
.pymodule
C.
module
module
D.
.py
.py
Question No# :
30
out of 50
What happens if a local and global variable have same name?
यदि किसी लोकल और ग्लोबल वेरिएबल का नाम एक ही हो तो क्या होगा?
A.
Local variable gets priority
Local variable gets priority
B.
Global variable gets priority
Global variable gets priority
C.
Error occurs
Error occurs
D.
Both are merged
Both are merged
Question No# :
31
out of 50
Which operator is used in Python to import modules from packages?
पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है?
A.
.
.
B.
*
*
C.
->
->
D.
&
&
Question No# :
32
out of 50
Extension of python module is
पायथन मॉड्यूल का एक्सटेंशन क्या है
A.
.mod
.mod
B.
.module
.module
C.
.py
.py
D.
.python
.python
Question No# :
33
out of 50
Which module is to be imported for using randint() function?
randint () फंक्शन का उपयोग करने के लिए कौन सा मॉडयूल आयात किया जाता है ?
A.
random
random
B.
randrange
randrange
C.
randomrange
randomrange
D.
rand
rand
Question No# :
34
out of 50
Both the functions randint and uniform accept ____________ parameters.
दोनों फ़ंक्शन में रैंडम और यूनिफार्म ____________ पैरामीटर्स को स्वीकार करते हैं।
A.
0
0
B.
1
1
C.
3
3
D.
2
2
Question No# :
35
out of 50
<p>What does the following code do?</p><pre><span style="font-size: 14px;">from math import *<br></span><span style="font-size: 14px;">print(cos(0))</span></pre>
<p>निम्न code क्या करता है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">from math import *<br></span><span style="font-size: 14px;">print(cos(0))</span></pre>
A.
Prints 1.0
Prints 1.0
B.
Raises a NameError
Raises a NameError
C.
Prints cos(0)
Prints cos(0)
D.
Error
Error
Question No# :
36
out of 50
<p>What will be the output of the following Python code?</p> <pre><span style="font-size: 12.6px;">import datetime d=datetime.date(2017,6,18) print(d)</span><br></pre>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import datetime d=datetime.date(2017,6,18) print(d)</pre>
A.
Error
एरर
B.
2017-06-18
2017-06-18
C.
18-06-2017
18-06-2017
D.
06-18-2017
06-18-2017
Question No# :
37
out of 50
Command line arguments in Python are accessed using:
Python में command-line arguments को किससे access किया जाता है?
A.
argv[]
argv[]
B.
sys.argv
sys.argv
C.
input()
input()
D.
args[]
args[]
Question No# :
38
out of 50
Which module is to be imported for using randint( ) function ?
randint () फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल इम्पोर्ट किया जाना जरूरी है?
A.
random
random
B.
randrange
randrange
C.
randomrange
randomrange
D.
rand
rand
Question No# :
39
out of 50
Modules act as ______.
मॉड्यूल ______ के रूप में कार्य करते हैं।
A.
Classes
Classes
B.
Functions
Functions
C.
Objects only
Objects only
D.
Namespaces
Namespaces
Question No# :
40
out of 50
Choose the correct option with respect to Python.
पाइथन के सन्दर्भ में सही विकल्प का चयन कीजिए
A.
Both tuples and lists are immutable
टुपल्स और लिस्टस दोनों अपरिवर्तनीय है
B.
Tuples are immutable while lists are mutable
टुपल्स अपरिवर्तनीय है जबकि लिस्ट्स परिवर्तनशील है
C.
Both tuples and lists are mutable
टुपल्स और लिस्ट्स दोनों परिवर्तनशील है
D.
Tuples are mutable while lists are immutable
टुपल्स परिवर्तनशील होते है जबकि लिस्ट्स अपरिवर्तनीय होती है
Question No# :
41
out of 50
The sleep function (under the time module) is used to ___________
स्लीप फ़ंक्शन (टाइम मॉड्यूल के अंडर) ___________ के लिए यूज़ किया जाता है
A.
Pause the code for the specified number of seconds
स्पेसिफ़िएड सेकंड के लिए कोड को पॉज़ करे
B.
Return the specified number of seconds, in terms of milliseconds
मिलीसेकेंड के टर्म में ,स्पेसिफ़िएड सेकंड रिटर्न करे
C.
Stop the execution of the code
कोड का एक्सक्यूशन स्टॉप करे
D.
Return the output of the code had it been executed earlier by the specified number of seconds
कोड का आउटपुट रिटर्न करे जिसे पहले स्पेसिफ़िएड सेकंड के द्वारा एक्सेक्यूट किया गया था
Question No# :
42
out of 50
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 नहीं किया गया है?
A.
fun
fun
B.
u
u
C.
Error
Error
D.
Either f, u, or n
Either f, u, or n
Question No# :
43
out of 50
<p>What will be the output of the following Code ?</p><pre><span style="font-size: 14px;">x=10, y=3<br></span><span style="font-size: 14px;">print(divmod(x,y))</span></pre>
<p> निम्नलिखित कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">x=10, y=3<br></span><span style="font-size: 14px;">print(divmod(x,y))</span></pre>
A.
(3,1)
(3,1)
B.
(4,2)
(4,2)
C.
(5,7)
(5,7)
D.
(1,3)
(1,3)
Question No# :
44
out of 50
To obtain a list of all the functions defined under sys module, which of the following functions can be used?
Sys मॉड्यूल के अंडर डिफाइन सभी फंक्शंस की एक लिस्ट प्राप्त करने के लिए, निम्नलिखित में से किस फ़ंक्शन का यूज़ किया जा सकता है?
A.
print(sys)
print(sys)
B.
print(dir.sys)
print(dir.sys)
C.
print(dir[sys])
print(dir[sys])
D.
print(dir(sys))
print(dir(sys))
Question No# :
45
out of 50
Which of the following is equivalent to random.randrange(3)?
निम्नलिखित में से कौन random.randrange(3) के बराबर है?
A.
range(3)
रेंज (3)
B.
random.choice(range(0, 3))
random.choice (रेंज (0, 3))
C.
random.shuffle(range(3))
random.shuffle (रेंज (3))
D.
random.select(range(3))
random.select (रेंज (3))
Question No# :
46
out of 50
<p>Which can be the output of the following Python code?</p> <pre><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randrange(1,100,10))</span></pre>
<p>निम्नलिखित पायथन कोड का आउटपुट कौन सा हो सकता है?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;"><span style="font-size: 14px;">import random<br></span><span style="font-size: 14px;">print(random.randrange(1,100,10))</span></pre><p><br></p>
A.
32
32
B.
67
67
C.
91
91
D.
80
80
Question No# :
47
out of 50
random.shuffle() function shuffle value of
random.shuffle() फंक्शन किसकी वैल्यू को शफल करता है
A.
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and arrange the items in ascending order
B.
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and reorganize the order of the items.
C.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and arrange the items in descending
D.
take a sequence, like a list, and return the same copy of sequence
take a sequence, like a list, and return the same copy of sequence
Question No# :
48
out of 50
Which type of elements are accepted by random.shuffle()?
किस प्रकार के एलिमेंट्स को random.shuffle () द्वारा एक्सेप्ट किया जाता है?
A.
strings
स्ट्रिंग्स
B.
lists
लिस्ट्स
C.
tuples
tuples
D.
integers
इन्टिजर
Question No# :
49
out of 50
<p>What will be the output of the following Python code?</p> <pre><span style="font-size: 12.6px;">import random print(random.randrange(0,91,5))</span> </pre><div><br></div>
<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">import random print(random.randrange(0,91,5))</pre>
A.
10
10
B.
18
18
C.
79
79
D.
95
95
Question No# :
50
out of 50
Which of the following is equivalent to random.randint(3, 6)?
निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है?
A.
random.choice([3, 6])
random.choice([3, 6])
B.
random.randrange(3, 6)
random.randrange(3, 6)
C.
3 + random.randrange(3)
3 + random.randrange(3)
D.
3 + random.randrange(4)
3 + random.randrange(4)
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