Home
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
Other 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
2024
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
Set
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
Which predefined Python function is used to find length of String()
स्ट्रिंग() की लंबाई का पता लगाने के लिए किस पूर्वनिर्धारित पायथन फ़ंक्शन का उपयोग किया जाता है
length
length()
len()
None
Previous Question
Next Question
25
See Explanation !
3
What will be the output of : infile.read(2)
निम्नलिखित कोड का आउटपुट क्या होगा? infile.read(2)
Read two words from file
Read two line from file
Read two character / two bytes
count the number of '2' in file
Previous Question
Next Question
25
See Explanation !
4
What will the following code output? print( 12/4/2)
निम्नलिखित कोड आउटपुट क्या होगा? print( 12/4/2)
6
1
1.5
Error
Previous Question
Next Question
25
See Explanation !
5
In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?
List
Dictionary
Set
None of the Above
Previous Question
Next Question
25
See Explanation !
6
Escape sequences are treated as ____
एस्केप सीक्वेंस को ____ माना जाता है
Strings
Characters
Integers
None of These
Previous Question
Next Question
25
See Explanation !
7
Which of the following is not a keyword in Python
पायथन में इनमें से कौन सा कीवर्ड कीवर्ड नहीं है
eval
assert
nonlocal
pass
Previous Question
Next Question
25
See Explanation !
8
What will be the output : 24//6%3,24//4//2
इसका आउटपुट क्या होगा: 24//6%3,24//4//2
(1,3)
(2,5)
(2,1)
(4,8)
Previous Question
Next Question
25
See Explanation !
9
What will be the output after the following statements? for i in range(1,6): print(i, end='') if i == 3: break
निम्नलिखित कथनों के बाद आउटपुट क्या होगा? for i in range(1,6): print(i, end ='') if i == 3: break
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following Python code snippet? print('Ab!2'.swapcase())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' Ab!2 '.swapcase ())
AB!@
ab12
aB!2
aB1@
Previous Question
Next Question
25
See Explanation !
11
By using function _____ ,we can change the shape of the Numpy array in python.
फ़ंक्शन _____ का उपयोग करके,हम अजगर में Numpy सरणी के आकार को बदल सकते हैं।
shape ()
reshape()
change()
None of these
Previous Question
Next Question
25
See Explanation !
12
Function range(10, 5, 2) will yield an iterable sequence like
फंक्शन रेंज(10, 5, 2) से एक पुनरावर्तनीय अनुक्रम प्राप्त होगा जैसे
[]
[10, 8, 6]
[2, 5, 8]
[8, 5, 2]
Previous Question
Next Question
25
See Explanation !
13
What will the following code output? print(‘55’+’5’)
निम्नलिखित कोड आउटपुट क्या होगा? print(‘55’+’5’)
55
60
555
Error
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(fname, val): print(fname(val)) foo(max, [1, 2, 3]) foo(min, [1, 2, 3])
3 1
1 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
15
Which of the following mode will refer to binary data?
निम्न में से कौन सा मोड बाइनरी डेटा को संदर्भित करेगा?
r
w
+
b
Previous Question
Next Question
25
See Explanation !
16
The default separator character of print() is ___
Print() का डिफ़ॉल्ट विभाजक वर्ण ___ है
tab
space
newline
dot
Previous Question
Next Question
25
See Explanation !
17
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 !
18
Which can not be a variable in python
जो अजगर में एक चर नहीं हो सकता है
_py_
var
_var
try
Previous Question
Next Question
25
See Explanation !
19
To return the length of string s what command do we execute?
स्ट्रिंग की लेंथ रिटर्न करने के लिए हम किस कमांड को एक्सक्यूट करते हैं?
s.__len__()
len(s)
size(s)
s.size()
Previous Question
Next Question
25
See Explanation !
20
A detailed flowchart is known as:
एक विस्तृत फ़्लोचार्ट के रूप में जाना जाता है:
Micro
Union
Macro
Stack
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code? example = "helle" print(example.find("e"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "helle" print(example.find("e"))
Error
-1
1
0
Previous Question
Next Question
25
See Explanation !
22
What is the output of the following code? print(5 > 3 and 5 < 10)
निम्नलिखित कोड का आउटपुट क्या है? प्रिंट(5 > 3 और 5 < 10)
True
False
Error
None
Previous Question
Next Question
25
See Explanation !
23
You do not have pay Python and you can view its source code too. it means Python is _______
आपके पास पायथन का भुगतान नहीं है और आप इसका स्रोत कोड भी देख सकते हैं। इसका मतलब है कि पायथन _______ है
Free and Open Source
Freeware
Open source
Shareware
Previous Question
Next Question
25
See Explanation !
24
What will the output of following code? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
False
True
Syntax error for issuperset() method
Error, no method called issuperset() exists
Previous Question
Next Question
25
See Explanation !
25
If we open a file in write mode and file does not exists, which of the error will generate?
यदि हम एक फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?
File Found Error
File Not Exist Error
File Not Found Error
None of these
Previous Question