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
Set
25
See Explanation !
1
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): print(x) x = 'a'
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = 'abcd' for i in range(len(x)): print(x) x = 'a'
a
abcd abcd abcd abcd
a a a a
none of the mentioned
Next Question
25
See Explanation !
2
What is the output of the following code? dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
निम्नलिखित कोड का परिणाम क्या है? dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
{“Joey”:1,”Rachel”:}
{“Joey”:1,”Phoebe”:2}
Error
Previous Question
Next Question
25
See Explanation !
3
The sleep function (under the time module) is used to ___________
स्लीप फ़ंक्शन (टाइम मॉड्यूल के अंडर) ___________ के लिए यूज़ किया जाता है
Pause the code for the specified number of seconds
Return the specified number of seconds, in terms of milliseconds
Stop the execution of the code
Return the output of the code had it been executed earlier by the specified number of seconds
Previous Question
Next Question
25
See Explanation !
4
Which one of these is NOT true about recursion?
इनमें से कौन सा पुनरावृत्ति के बारे में सही नहीं है?
We can replace a recursive function by a non-recursive function.
The memory space taken by the recursive functions is more than that of non-recursive function,
Running a recursive function is faster as compared to a non-recursive function.
The process of recursion makes it easier for users to understand a program.
Previous Question
Next Question
25
See Explanation !
5
What keyword is used in Python to raise exceptions?
एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?
raise
goto
try
except
Previous Question
Next Question
25
See Explanation !
6
In which format Binary file contains information?
बाइनरी फ़ाइल में सूचना किस प्रारूप में होती है?
Quick response code
Same format in which the data is held in memory
ASCII format
Unicode format
Previous Question
Next Question
25
See Explanation !
7
The small sections of code that are used to perform a particular task is called
कोड के छोटे खंड जो किसी विशेष कार्य को करने के लिए उपयोग किए जाते हैं, कहलाते हैं
Subroutines
Files
Pseudo code
Modules
Previous Question
Next Question
25
See Explanation !
8
A Python tuple that is created without using the parentheses brackets () is called as ?
एक पायथन टपल जिसे कोष्ठक कोष्ठक () का उपयोग किए बिना बनाया जाता है, को कहा जाता है?
Tuple packing
Tuple sampling
Tuple sorting
None of the above
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b)
[10,34,56,[95]]
[10,23,56,[78]]
[10,23,56,[95]]
[10,34,56,[78]]
Previous Question
Next Question
25
See Explanation !
10
Which module is to be imported for using randint() function?
randint () फंक्शन का उपयोग करने के लिए कौन सा मॉडयूल आयात किया जाता है ?
random
randrange
randomrange
rand
Previous Question
Next Question
25
See Explanation !
11
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 !
12
Which of the following is the exponentiation operator in Python?
पायथन में घातांकन ऑपरेटर निम्नलिखित में से कौन सा है?
^
**
^^
exp()
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following pseudo code? Integer a,b | set a=10,b=5 | a=a mod(a-6) | b=b mod(b-2) | print a-b
निम्नलिखित छद्म कोड का आउटपुट क्या होगा? पूर्णांक a,b | सेट a=10,b=5 | a = a mod(a -6) | b= b mod(b -2) | प्रिंट a - b
4
0
1
8
Previous Question
Next Question
25
See Explanation !
14
The structure having keys and values is called _____ .
चाबियाँ और मानों वाली संरचना को _____ कहा जाता है।
List
Dictionary
Tuple
None of these
Previous Question
Next Question
25
See Explanation !
15
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 !
16
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 !
17
Which of the following commands will create a list?
निम्नलिखित में से कौन सा आदेश एक सूची बनाएगा?
list1 = list()
list1 = []
list1 = list([1, 2, 3])
all of the mentioned
Previous Question
Next Question
25
See Explanation !
18
What happens if a local variable exists with the same name as the global variable you want to access?
यदि कोई लोकल वैरिएबल वैसा ही नाम के साथ मौजूद है जैसा कि ग्लोबल वैरिएबल जिसे आप एक्सेस करना चाहते हैं?
Error
The local variable is shadowed
Undefined behavior
The global variable is shadowed
Previous Question
Next Question
25
See Explanation !
19
To insert 5 to the third position in list1, we use which command?
लिस्ट 1 में 5 से थर्ड पोज़िशन पर इन्सर्ट करने के लिए, हम किस कमांड का यूज़ करते हैं?
list1.insert(3, 5)
list1.insert(2, 5)
list1.add(3, 5)
list1.append(3, 5)
Previous Question
Next Question
25
See Explanation !
20
If a is a dictionary with some key-value pairs, what does a.popitem() do?
यदि कुछ की-वैल्यू वाले पेअर के साथ एक ड़िक्शनरी है,तो a.popitem () क्या करता है?
Removes an arbitrary element
Removes all the key-value pairs
Removes the key-value pair for the key given as an argument
Invalid method for dictionary
Previous Question
Next Question
25
See Explanation !
21
Which function is used to Evaluates string and returns an object.
स्ट्रिंग का मूल्यांकन करने और किसी ऑब्जेक्ट को वापस करने के लिए किस फ़ंक्शन का उपयोग किया जाता है।
exp(x)
eval(str)
str(x)
None of the above
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[:-1] print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x: x = x [:-1] print(i, end = "")
i i i i i i
a a a a a a
a a a a a
none of the mentioned
Previous Question
Next Question
25
See Explanation !
23
Function of a compiler is to
एक संकलक का कार्य है
put to gether the file and functions that are required by the program
translate the instructions in to a form suitable for execution by the program
load the executable code in to the memory and execute them
allow the user to type the program
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', 2, 11))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" xyyzxyzxzxyy ".count(' xyyy ', 2, 11))
2
0
1
error
Previous Question
Next Question
25
See Explanation !
25
_______ are user Define name
_______ उपयोगकर्ता हैं नाम को परिभाषित करें
Identifiers
constant
syntax
expression
Previous Question