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 code snippet? print(''.isdigit())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?print(''.isdigit ())
True
False
None
Error
Next Question
25
See Explanation !
2
To create sequence of numbers,Numpy provides a function ____ analogous to range that returns arrays instead of lists.
संख्याओं का अनुक्रम बनाने के लिए,Numpy एक फ़ंक्शन प्रदान करता है ____ श्रेणी के अनुरूप जो सूचियों के बजाय सरणी देता है।
arange
aspace
aline
All of the above
Previous Question
Next Question
25
See Explanation !
3
The values which are passed to a function definition are called
फ़ंक्शन परिभाषा में जो मान पास किए जाते हैं उन्हें कहा जाता है
Arguments
Subroutines
Function
Definition
Previous Question
Next Question
25
See Explanation !
4
Which is the correct operator for power(x,y)?
पावर(x,y) के लिए सही ऑपरेटर कौन सा है?
X^y
X**y
X^^y
None of the mentioned
Previous Question
Next Question
25
See Explanation !
5
Which of the following symbol is used for input and output operations in a flow chart?
फ्लो चार्ट में इनपुट और आउटपुट संचालन के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?
Rectangle
Parallelogram
Circle
Diamond
Previous Question
Next Question
25
See Explanation !
6
Given a function that does not return any value, What value is thrown by default when executed in shell.
एक फ़ंक्शन को देखते हुए जो किसी भी मान को वापस नहीं करता है, शेल में निष्पादित होने पर डिफ़ॉल्ट रूप से कौन सा मान फेंक दिया जाता है।
int
bool
void
None
Previous Question
Next Question
25
See Explanation !
7
Diagram that represents steps or operations involved in any kind of process is called
आरेख जो किसी भी प्रकार की प्रक्रिया में शामिल चरणों या संचालन का प्रतिनिधित्व करता है, को कहा जाता है
System diagram
Management hierarchy
Flowcharts
Convenience diagrams
Previous Question
Next Question
25
See Explanation !
8
What will be the output of the following Python code snippet? print('1.1'.isnumeric())
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('1.1'.isnumeric ())
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following Python code? def foo(): total += 1 return total total = 0 print(foo())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(): total = 1 return total = 0 print(foo ())
0
1
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
10
IDLE means..... -
IDLE का अर्थ है..... -
Integrated Development and Learning Environment
Ideal Development and Learning Environment
Interenet development and Learning Environment
None of the above
Previous Question
Next Question
25
See Explanation !
11
Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
मान लीजिए d = {“john”:40, “peter”:45}, तब क्या होता है जब हम d[“susan”] अभिव्यक्ति का उपयोग करके मान प्राप्त करने का प्रयास करते हैं?
Since “susan” is not a value in the set, Python raises a KeyError exception
It is executed fine and no exception is raised, and it returns None
Since “susan” is not a key in the set, Python raises a KeyError exception
Since “susan” is not a key in the set, Python raises a syntax error
Previous Question
Next Question
25
See Explanation !
12
Numpy developed by?
Numpy किसके द्वारा विकसित किया गया है?
Guido van Rossum
Travis Oliphant
Wes McKinney
Jim Hugunin
Previous Question
Next Question
25
See Explanation !
13
What is the output of the following code? print(len("Python\nProgramming"))
निम्नलिखित कोड का आउटपुट क्या है? print(len(" Python\ nProgramming "))
19
18
17
Error
Previous Question
Next Question
25
See Explanation !
14
Suppose d = {"john”:40, “peter":45}. To obtain the number of entries in dictionary which command do we use?
मान लीजिए कि d = {" जॉन ":40, "पीटर ":45}। शब्दकोश में प्रविष्टियों की संख्या प्राप्त करने के लिए हम किस आदेश का उपयोग करते हैं?
d.size()
len(d)
size(d)
d.len ()
Previous Question
Next Question
25
See Explanation !
15
Which one of the following is incorrect?
निम्नलिखित में से कौन सा गलत है?
The variables used inside function are called local variables.
The local variables of a particular function can be used inside other functions, but these cannot be used in global space.
The variables used outside function are called global variables.
In order to change the value of global variable inside function, keyword global is used.
Previous Question
Next Question
25
See Explanation !
16
List is mutable and Tuple is immutable?
सूची परिवर्तनीय है और ट्यूपल अपरिवर्तनीय है?
Yes, list mutable and tuple immutable
No, list and tuple both are mutable
No, list and tuple both are in immutable
No, just opposite, list immutable and tuple mutable
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code snippet? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a = [0, 1, 2, 3] for a[-1] in a: print(a[-1])
0 1 2 3
0 1 2 2
3 3 3 3
error
Previous Question
Next Question
25
See Explanation !
18
_____ returns the current time instant, a floating-point number of seconds since the epoch.
_____ वर्तमान समय तत्काल लौटाता है, जो युग के बाद से फ़्लोटिंग - पॉइंट सेकंड की संख्या है।
Time.time()
datetime()
time.date()
None of the above
Previous Question
Next Question
25
See Explanation !
19
Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
निम्नलिखित कार्यों में से किसको कोआर्डिनेट यूनिवर्सल समय का पता लगाने के लिए यूज़ किया जा सकता है, यह मानते हुए कि डेटाइम मॉड्यूल पहले ही इम्पोर्ट किया जा चुका है?
datetime.utc()
datetime.datetime.utc()
datetime.utcnow()
datetime.datetime.utcnow()
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code snippet? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? test = {1:'A', 2:'B', 3:'C'} del test[1] test[1] = 'D' del test[2] print(len(test))
0
2
Error as the key-value pair of 1:’A’ is already deleted
1
Previous Question
Next Question
25
See Explanation !
21
Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटि के बिना चलेगी?
round(45.8)
round(6352.898,2,5)
round()
round(7463.123,2,1)
Previous Question
Next Question
25
See Explanation !
22
What is 'pass' in python?
पायथन में 'pass' क्या है?
No Operation
No Action
Null Statement
Placeholder
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following Python code? a=["Apple","Ball","Cobra"] a.sort(key=len) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a=["Apple","Ball","Cobra"] a.sort(key=len) print(a)
[‘Apple’, ‘Ball’, ‘Cobra’]
[‘Ball’, ‘Apple’, ‘Cobra’]
[‘Cobra’, ‘Apple’, ‘Ball’]
Invalid syntax for sort()
Previous Question
Next Question
25
See Explanation !
24
_____ reads one entire line from the file.
_____ फ़ाइल से एक पूरी पंक्ति पढ़ता है।
readline()
read()
readinglines()
None of these
Previous Question
Next Question
25
See Explanation !
25
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