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
CSS
Javascript
Python
Practical Questions
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Set
25
See Explanation !
1
What will be the output of the following Python statement? print(chr(ord('b')+1))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(chr(ord('b')+1))
a
b
c
A
Next Question
25
See Explanation !
2
What is a correct syntax to check the number of dimensions in an array?
ऐरे में डायमेंशन की संख्या की जांच करने के लिए सही सिंटैक्स क्या है?
np.ndim(array_name)
array_name.ndim()
np.dim(array_name)
array_name.dim
Previous Question
Next Question
25
See Explanation !
3
What does the following code print ? x = 'mohan' for i in range (len(x)): x[i].upper() print (x)
निम्नलिखित कोड क्या प्रिंट करता है? x = 'mohan' for i in range (len(x)): x[i].upper() print (x)
mohan
MOHAN
Error
None of These
Previous Question
Next Question
25
See Explanation !
4
Can we write if / else into one line in python?
क्या हम पाइथन में एक लाइन में if / else लिख सकते हैं?
Yes
No
if / else not used in python
None of the above.
Previous Question
Next Question
25
See Explanation !
5
What will the following code output? print(1==1.0)
निम्नलिखित कोड आउटपुट क्या होगा? print(1==1.0)
True
False
1
Error
Previous Question
Next Question
25
See Explanation !
6
To remove string “hello” from list1, we use which command?
लिस्ट1 से स्ट्रिंग "हैलो" को रिमूव करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.remove(“hello”)
list1.remove(hello)
list1.removeAll(“hello”)
list1.removeOne(“hello”)
Previous Question
Next Question
25
See Explanation !
7
What is the output when we execute list("hello")?
जब हम सूची(" हैलो ") निष्पादित करते हैं तो आउटपुट क्या होता है?
['llo']
['hello']
['h', 'e', T', '1', 'o']
None of the above
Previous Question
Next Question
25
See Explanation !
8
Which function is used to Writes the string(s) to the file and returns the number of characters written.
स्ट्रिंग(ओं) को फ़ाइल में लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है और लिखे गए वर्णों की संख्या बताता है।
writeline (s)
write(s)
read(s)
None
Previous Question
Next Question
25
See Explanation !
9
If a is declared as a=['me', 'he', 'they'], the value of a="".join(a) print(a) will be ______ .
यदि a को a= ['me', 'he', 'they'] के रूप में डिक्लेयर किया जाता है, तो a='''.join (a) print(a) की वैल्यू _____ होगी।
mehethey
me he they
he they me
None of these
Previous Question
Next Question
25
See Explanation !
10
The ____________ function removes the first element of a set and the last element of a list.
____________ फ़ंक्शन सेट का फर्स्ट एलिमेंट् और किसी लिस्ट का लास्ट एलिमेंट निकालता है।
remove
pop
discard
dispose
Previous Question
Next Question
25
See Explanation !
11
random.shuffle() function shuffle value of
random.shuffle() फंक्शन किसकी वैल्यू को शफल करता है
take a sequence, like a list, and arrange the items in ascending order
take a sequence, like a list, and reorganize the order of the items.
take a sequence, like a list, and arrange the items in descending
take a sequence, like a list, and return the same copy of sequence
Previous Question
Next Question
25
See Explanation !
12
What does the strip() method do in Python?
पाइथन में स्ट्रिप() विधि क्या करती है?
Removes all spaces from the string.
Removes the first and last character of the string.
Removes whitespace from the beginning and end of the string.
Converts the string into a list of characters.
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following pseudo code, where & represent AND operation ? Integer a, b, c | Set b= 5, a = 1 | c= a & b | Print c
निम्नलिखित छद्म कोड का आउटपुट क्या होगा, जहाँ - Integer a, b, c | Set b= 5, a = 1 | c= a & b | Print c
1
3
5
7
Previous Question
Next Question
25
See Explanation !
14
Row data assigned to a variable is called as.
एक चर को असाइन किए गए पंक्ति डेटा को कहा जाता है।
variable
literal
identifier
comment
Previous Question
Next Question
25
See Explanation !
15
Istrip() method is used for :
Istrip() विधि का उपयोग इसके लिए किया जाता है:
delete all the trailing characters
delete all the leading characters
delete all the leading and trailing characters
delete upper case characters
Previous Question
Next Question
25
See Explanation !
16
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
open_file()
file_open()
open()
read_file()
Previous Question
Next Question
25
See Explanation !
17
____ is a set of functions you want to include in your applications.
____ कार्यों का एक सेट है जिसे आप अपने अनुप्रयोगों में शामिल करना चाहते हैं।
Module
Function
Folder
None of these
Previous Question
Next Question
25
See Explanation !
18
_____function takes a list of lines to be written to file.
_____FUNCTION फ़ाइल में लिखी जाने वाली पंक्तियों की एक सूची लेता है।
writelines()
write()
tell()
None of these
Previous Question
Next Question
25
See Explanation !
19
Which of the following functions will return the symmetric difference between two sets, x and y?
निम्नलिखित में से कौन सा कार्य दो सेटों, x और y के बीच सिमेट्रिक डिफ्रेंस को रिटर्न करेगा ?
x | y
x ^ y
x & y
x – y
Previous Question
Next Question
25
See Explanation !
20
In the declaration, x = Circle (), x contains a _to Circle object. -
घोषणा में, x = Circle (), x में a_to Circle ऑब्जेक्ट है। -
dropna()
Reference
Optimisers
None of these
Previous Question
Next Question
25
See Explanation !
21
Which one of the following is immutable data type ?
निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
list
set
tuple
dictionary
Previous Question
Next Question
25
See Explanation !
22
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
Arithmetic or Relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
Previous Question
Next Question
25
See Explanation !
23
When _____ gets executed, 'inner PI value' is printed as that is 'pi' value inside the function namespace.
जब _____ को निष्पादित किया जाता है, तो 'आंतरिक PI मान' मुद्रित किया जाता है क्योंकि यह फ़ंक्शन नेमस्पेस के अंदर 'pi' मान होता है।
pi()
piFun()
Fun()
None of these
Previous Question
Next Question
25
See Explanation !
24
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फ़ंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक कॉपी देता है।
find()
copy()
upper()
capitalize()
Previous Question
Next Question
25
See Explanation !
25
To start Python from the command prompt, use the command
कमांड प्रॉम्प्ट से पायथन शुरू करने के लिए, कमांड का उपयोग करें
execute python
go python
python
run python
Previous Question