Syllabus
O Level
M1 R5: Information Technology Tools and Network Basics
Introduction to Computers
Office Automation Tools
Internet and Web Technologies
Networking Fundamentals
M2 R5: Web Designing and Publishing
HTML
CSS
Javascript
Web Hosting And Publishing
M3 R5: Programming and Problem Solving through Python
Introduction to Programming
Python Programming
Data Structures in Python
File Processing in Python
M4 R5: Internet of Things (IoT) and Its Applications
Introduction to IoT
IoT Architecture
IoT Applications
IoT Security and Challenges | Soft Skills
Courses
Under Graduate Courses
BA
BCA
B.COM
Post Graduate Courses
MCA
MBA
M.COM
MA
M.SC.(MATHS)
MSW
Institutional Courses
DCA
ADCA
DFA
DOAP
TALLY PRIME
JAVA
PYTHON
CCA
C Languages
Job Oriented Courses
Digital Marketing
Full Stack Development
Data Science
Cybersecurity and Ethical Hacking
Blockchain Development
Cloud Computing
Artificial Intelligence (AI) and Machine Learning
Government Courses
CCC
O LEVEL
A LEVEL
Mock Test
M1 R5: Information Technology Tools and Network Basics
M2 R5: Web Designing and Publishing
M3 R5: Programming and Problem Solving through Python
M4 R5: Internet of Things (IoT) and Its Applications
Old Papers
2025
New!
2024
New!
2023
New!
2022
New!
2021
New!
2020
New!
2019
New!
2018
New!
2017
New!
2016
New!
2015
New!
2014
New!
2013
New!
2012
New!
2011
New!
Assignments
HTML
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
File Processing in Python
Set 4
25
See Explanation !
1
Which of the following functions helps us to randomize the items of a list?
निम्नलिखित में से कौन सा फ़ंक्शन किसी लिस्ट के आइटम्स को रैनडोमाइज़ करने में हमारी हेल्प करता है?
seed
randomise
shuffle
uniform
Next Question
25
See Explanation !
2
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?
फ़ंक्शन द्वारा जनरेटेड वैल्यू का इंटरवल random.random () है, यह मानते हुए कि रैंडम मॉड्यूल पहले से ही इम्पोर्ट किया गया है?
(0,1)
(0,1]
[0,1]
[0,1)
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? import random print(random.randrange(0,91,5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import random print(random.randrange(0,91,5))
10
18
79
95
Previous Question
Next Question
25
See Explanation !
4
Both the functions randint and uniform accept ____________ parameters.
दोनों फ़ंक्शन में रैंडम और यूनिफार्म ____________ पैरामीटर्स को स्वीकार करते हैं।
0
1
3
2
Previous Question
Next Question
25
See Explanation !
5
Which can be the output of the following Python code? import random print(random.randrange(1,100,10))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import random print(random.randrange(1,100,10))
32
67
91
80
Previous Question
Next Question
25
See Explanation !
6
What the does random.seed(3) return?
random.seed (3) क्या रिटर्न करता है ?
True
None
3
1
Previous Question
Next Question
25
See Explanation !
7
Which of the following cannot be returned by random.randrange(4)?
निम्नलिखित में से क्या random.randrange (4) द्वारा रिटर्न नहीं किया जा सकता है?
0
3
2.3
none of the mentioned
Previous Question
Next Question
25
See Explanation !
8
Which of the following is equivalent to random.randrange(3)?
निम्नलिखित में से कौन random.randrange(3) के बराबर है?
range(3)
random.choice(range(0, 3))
random.shuffle(range(3))
random.select(range(3))
Previous Question
Next Question
25
See Explanation !
9
The function random.randint(4) can return only one of the following values. Which?
फ़ंक्शन random.randint (4) निम्न में से केवल एक वैल्यू रिटर्न कर सकता है। कौन से है ?
4
3.4
error
5
Previous Question
Next Question
25
See Explanation !
10
Which of the following is equivalent to random.randint(3, 6)?
निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है?
random.choice([3, 6])
random.randrange(3, 6)
3 + random.randrange(3)
3 + random.randrange(4)
Previous Question
Next Question
25
See Explanation !
11
Which of the following will not be returned by random.choice(“1 ,”)?
निम्नलिखित में से कौन सा random.choice(“1 ,”) द्वारा रिटर्न नहीं किया जाएगा?
1
(space)
'
none of the mentioned
Previous Question
Next Question
25
See Explanation !
12
Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?
निम्नलिखित में से कौन सा प्रिंट निष्पादित करने पर कभी प्रदर्शित नहीं होगा (random.choice ({0: 1, 2: 3}))?
0
1
KeyError: 1
none of the mentioned
Previous Question
Next Question
25
See Explanation !
13
What does random.shuffle(x) do when x = [1, 2, 3]?
जब x = [1, 2, 3] random.shuffle(x) क्या करता है?
error
do nothing, it is a placeholder for a function that is yet to be implemented
shuffle the elements of the list in-place
none of the mentioned
Previous Question
Next Question
25
See Explanation !
14
Which type of elements are accepted by random.shuffle()?
किस प्रकार के एलिमेंट्स को random.shuffle () द्वारा एक्सेप्ट किया जाता है?
strings
lists
tuples
integers
Previous Question
Next Question
25
See Explanation !
15
What is the range of values that random.random() can return?
उन वैल्यू की रेंज क्या है जो random.random () रिटर्न आ सकते हैं?
[0.0, 1.0]
(0.0, 1.0]
(0.0, 1.0)
[0.0, 1.0)
Previous Question
Next Question
25
See Explanation !
16
Which of the following functions can help us to find the version of python that we are currently working on?
निम्नलिखित में से कौन सा फ़ंक्शन हमें वर्तमान में काम कर रहे Python के वर्जन को फाइंड करने में हेल्प कर सकता है?
sys.version
sys.version()
sys.version(0)
sys.version(1)
Previous Question
Next Question
25
See Explanation !
17
Which of the following functions is not defined under the sys module?
निम्नलिखित फंक्शंस में से कौन सी sys मॉड्यूल के अंडर डिफाइन नहीं है?
sys.platform
sys.path
sys.readline
sys.argv
Previous Question
Next Question
25
See Explanation !
18
To obtain a list of all the functions defined under sys module, which of the following functions can be used?
Sys मॉड्यूल के अंडर डिफाइन सभी फंक्शंस की एक लिस्ट प्राप्त करने के लिए, निम्नलिखित में से किस फ़ंक्शन का यूज़ किया जा सकता है?
print(sys)
print(dir.sys)
print(dir[sys])
print(dir(sys))
Previous Question
Next Question
25
See Explanation !
19
Which statement is correct to import all modules from the package ?
पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?
From package import all
From package import *
From package include all
From package include *
Previous Question
Next Question
25
See Explanation !
20
A Python module is a file with the __________ file extension that contains valid Python code.
एक पायथन मॉड्यूल __________ फाइल एक्सटेंशन वाली एक फाइल है जिसमें वैध पायथन कोड होता है।
.pym
.pymodule
module
.py
Previous Question
Next Question
25
See Explanation !
21
Which module is to be imported for using randint( ) function ?
randint () फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल इम्पोर्ट किया जाना जरूरी है?
random
randrange
randomrange
rand
Previous Question
Next Question
25
See Explanation !
22
Which of the following is the basic I/O connections in file ?
फ़ाइल में निम्न में से कौन सा बुनियादी I/O कनेक्शन है?
Standard Input
Standard Output
Standard Errors
All of the mentioned
Previous Question
Next Question
25
See Explanation !
23
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
24
To use a module in another module, you must import it using an, statement
अन्य मॉड्यूल में किसी मॉड्यूल का उपयोग करने के लिए, आपको उस स्टेटमेंट का उपयोग करके इम्पोर्ट करना होगा
import
include
both (A) and (B)
none of the above
Previous Question
Next Question
25
See Explanation !
25
Choose the correct option with respect to Python.
पाइथन के सन्दर्भ में सही विकल्प का चयन कीजिए
Both tuples and lists are immutable
Tuples are immutable while lists are mutable
Both tuples and lists are mutable
Tuples are mutable while lists are immutable
Previous Question