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
To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
स्ट्रिंग 3 = "हैलो" से इंडेक्स 3 पर character को रिट्रीव करने के लिए हम किस कमांड को एक्सक्यूट करते हैं (multiple answers allowed)?
s[]
s.getitem(3)
s.__getitem__(3)
s.getItem(3)
Next Question
25
See Explanation !
2
Which of the following statements is false about recursion?
निम्नलिखित में से कौन सा स्टेट्मेंट रिकर्शन के बारे में गलत है?
Every recursive function must have a base case
Infinite recursion can occur if the base case isn’t properly mentioned
A recursive function makes the code easier to understand
Every recursive function must have a return value
Previous Question
Next Question
25
See Explanation !
3
What is the output of the code print(7%2).
कोड print(7%2) का आउटपुट क्या है।
5.5
3.5
1
None of the above
Previous Question
Next Question
25
See Explanation !
4
to use load() function for working with binary file in python which module is require
पायथन में बाइनरी फ़ाइल के साथ काम करने के लिए load() फ़ंक्शन का उपयोग करने के लिए किस मॉड्यूल की आवश्यकता है
pickle
binary
unpickle
fstream
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python function if the random module has already been imported? import random print(random.randint(3.5,7))
यदि रैंडम मॉड्यूल पहले से ही आयात किया गया है, तो निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? import random print(random.randint(3.5,7))
Error
Any integer between 3.5 and 7, including 7
Any integer between 3.5 and 7, excluding 7
The integer closest to the mean of 3.5 and 7
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? myList = [1, 2, 3, 4, 5, 6] for i in range(1, 6): myList[i - 1] = myList[i] for i in range(0, 6): print(myList[i], end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? myList = [1, 2, 3, 4, 5, 6] for i in range(1, 6): myList[i - 1] = myList[i] for i in range(0, 6): print(myList[i], end = " ")
2 3 4 5 6 1
6 1 2 3 4 5
2 3 4 5 6 6
1 1 2 3 4 5
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following Python code? print('xyyzxxyxyy'.lstrip('xyy'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('xyyzxxyxyy '.lstrip (' xyy '))
error
zxxyxyy
z
zxxy
Previous Question
Next Question
25
See Explanation !
8
What will be the output of following code import math print(math.pi)
निम्नलिखित कोड का आउटपुट क्या होगा import math print(math.pi)
5.354562653589793
3.141592653589793
7.867564234556778
9.048495456553358
Previous Question
Next Question
25
See Explanation !
9
What is unpickling ?
अनपिकलिंग क्या है ?
It is used for object deserialization.
It is used for object serialization.
Both of the above.
None of the above.
Previous Question
Next Question
25
See Explanation !
10
_______ method converts all uppercase characters to lowercase and vice versa of the given string, and returns it.
_______ विधि सभी अपरकेस वर्णों को दिए गए स्ट्रिंग के लोअरकेस और इसके विपरीत में परिवर्तित करती है, और इसे वापस करती है।
swapcase
uppertolower()
lowertoUpper()
None of these
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python statement? print(ord('b') - ord('a'))
निम्नलिखित पायथन कथन का आउटपुट क्या होगा? print(ord (' b ') - ord(' a '))
0
1
-1
2
Previous Question
Next Question
25
See Explanation !
12
Which of these about a dictionary is false?
एक ड़िक्शनरी के बारे में इनमें से कौन गलत है?
The values of a dictionary can be accessed using keys
The keys of a dictionary can be accessed using values
Dictionaries aren’t ordered
Dictionaries are mutable
Previous Question
Next Question
25
See Explanation !
13
What does the continue statement do in a loop?
लूप में कंटीन्यू स्टेटमेंट क्या करता है?
Exits the loop entirely.
Skips the rest of the code in the current iteration and moves to the next iteration.
Restarts the loop.
Causes an error.
Previous Question
Next Question
25
See Explanation !
14
Python is a/an _________ language.
पायथन एक _________ भाषा है।
High Level
Low Level
Procedural
Difficult
Previous Question
Next Question
25
See Explanation !
15
Which of the following is not valid Python identifiers?
निम्नलिखित में से कौन पायथन पहचानकर्ता मान्य नहीं है?
email
ca$h
marks10
Python2Shar
Previous Question
Next Question
25
See Explanation !
16
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :
मान लीजिए arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं:
arr[-2]
arr[2]
arr[-1]
arr[1]
Previous Question
Next Question
25
See Explanation !
17
def keyword use for?
def कीवर्ड का उपयोग किसके लिए किया जाता है?
Define keyword in python
Define variable in python
Define function in python
All of the above
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following Python code? x = "abcdef" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 15 MINUTES 36 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
a b c d e f
abcdef
i i i i i i …
error
Previous Question
Next Question
25
See Explanation !
19
Which Python built in function returns the unique number assigned to an object?
कौन सा पायथन बिल्ट-इन फ़ंक्शन किसी ऑब्जेक्ट को निर्दिष्ट अद्वितीय संख्या देता है?
identity( )
id( )
refnum( )
ref( )
Previous Question
Next Question
25
See Explanation !
20
What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?
100
-100
-101
101
Previous Question
Next Question
25
See Explanation !
21
How can you close a file in Python after processing?
प्रसंस्करण के बाद आप पायथन में किसी फ़ाइल को कैसे बंद कर सकते हैं?
close_file()
file_close()
close()
end_file()
Previous Question
Next Question
25
See Explanation !
22
In the Python statement x = a + 5 - b : a and b are
पायथन कथन में x = a 5 - b : a और b हैं
Operands
Expression
operators
Equation
Previous Question
Next Question
25
See Explanation !
23
In python-1 corresponds to the :
Python-1 में निम्नलिखित से मेल खाता है :
last index
first index
middle index
end index
Previous Question
Next Question
25
See Explanation !
24
What will be the result of the expression : print(10 or 0) ?
अभिव्यक्ति का परिणाम क्या होगा: print(10 या 0)?
0
1
10
1.0
Previous Question
Next Question
25
See Explanation !
25
Which of the following error is returned by the given code ? f = open("test.txt","w") f.write(345)
निम्नलिखित में से कौन सी त्रुटि दिए गए कोड द्वारा लौटाई जाती है? f = open("test.txt","w") f.write(345)
Syntax Error
Type Error
String Error
Run Time Error
Previous Question