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
How is a function declared in Python ?
पायथन में एक फ़ंक्शन कैसे घोषित किया जाता है?
def function function_name():
declare function function_name():
def function_name():
declare function_name():
Next Question
25
See Explanation !
2
Which of the following is an invalid mode?
निम्न में से कौन सा अमान्य मोड है?
a
ar+
r+
w
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? d = {0: 'a', 1: 'b', 2: 'c'} for x in d.values(): print(d[x])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.values () में x के लिए: print(d[x])
0 1 2
a b c
0 a 1 b 2 c
none of the mentioned
Previous Question
Next Question
25
See Explanation !
4
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 !
5
What will be the output of the following Python code? print("abcdef".find("cd") == "cd" in "abcdef")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print(" abcdef ".find(" cd ") == "abcdef" में "cd ")
True
False
Error
None of the mentioned
Previous Question
Next Question
25
See Explanation !
6
Which can not be a variable in python
जो अजगर में एक चर नहीं हो सकता है
_py_
var
_var
try
Previous Question
Next Question
25
See Explanation !
7
Which of the following is the correct way to declare a variable in Python?
पायथन में वेरिएबल घोषित करने का सही तरीका निम्नलिखित में से कौन सा है?
int x = 10
x = 10
var x = 10
x: 10
Previous Question
Next Question
25
See Explanation !
8
In a flowchart a calculation (process) is represented by
फ़्लोचार्ट में एक गणना (प्रक्रिया) किसके द्वारा दर्शाई जाती है
A rectangle
A rhombus
A parallelogram
A circle
Previous Question
Next Question
25
See Explanation !
9
which function is used to get the ASCII value of any Character in PYthon?
पायथन में किसी भी वर्ण का ASCII मान प्राप्त करने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
ascii()
getAscii()
get_ascii()
ord()
Previous Question
Next Question
25
See Explanation !
10
What is recursion in python?
पाइथन में रिकर्शन फंक्शन के है
Repeating a process in a loop
Calling a function from within itself
Using a loop to iterate over elements
Breaking down a problem into smaller subproblems
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
What is the return type of function id?
फ़ंक्शन आईडी का रिटर्न प्रकार क्या है?
int
float
bool
dict
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? print('abcdefcdgh'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcdefcdgh '.partition (' cd '))
(‘ab’, ‘cd’, ‘ef’, ‘cd’, ‘gh’)
(‘ab’, ‘cd’, ‘efcdgh’)
(‘abcdef’, ‘cd’, ‘gh’)
error
Previous Question
Next Question
25
See Explanation !
14
The .......... construct allows to choose statements to be executed, depending upon the result of a condition.
.......... निर्माण किसी स्थिति के परिणाम के आधार पर निष्पादित किए जाने वाले कथनों को चुनने की अनुमति देता है।
selection
repetition
sequence
flow
Previous Question
Next Question
25
See Explanation !
15
_____ help programmers to create lists in a concise way.
_____ प्रोग्रामर को संक्षिप्त तरीके से सूचियाँ बनाने में मदद करें।
Tuple
Dictionary
List Comprehensions
None of these
Previous Question
Next Question
25
See Explanation !
16
List structure in python where elements are stored in parenthesis.
अजगर में सूची संरचना जहां तत्व कोष्ठक में संग्रहीत किए जाते हैं।
[]
()
{}
none of these
Previous Question
Next Question
25
See Explanation !
17
You can also create your own functions, these functions are called?
आप अपने खुद के फंक्शन भी बना सकते हैं, इन फंक्शन्स को क्या कहते हैं?
built-in functions
user-defined functions
py function
None of the above
Previous Question
Next Question
25
See Explanation !
18
The ______ can be accessed only inside the function in which they are declared, whereas global variables can be accessed throughout the program body by all functions.
______ को केवल उस फ़ंक्शन के अंदर एक्सेस किया जा सकता है जिसमें उन्हें घोषित किया गया है, जबकि सभी फ़ंक्शन द्वारा पूरे प्रोग्राम बॉडी में ग्लोबल वेरिएबल्स को एक्सेस किया जा सकता है।
Global variables
local variables
datatype
None of these
Previous Question
Next Question
25
See Explanation !
19
In Python, a variable must be declared before it is assigned a value.
पायथन में, एक चर को एक मान निर्दिष्ट करने से पहले घोषित किया जाना चाहिए।
True
False
Only in Functions
Only in modules
Previous Question
Next Question
25
See Explanation !
20
What is the output of the following ? print(int())
निम्नलिखित का आउटपुट क्या है? print(int())
Any Random Number
0
1
Error
Previous Question
Next Question
25
See Explanation !
21
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 !
22
which one is the correct syntax to create an array of type float?
फ्लोट प्रकार की सरणी बनाने के लिए सही सिंटैक्स क्या है?
arr=np.float([1,2,3,4])
arr=np.array([1,2,3,4]).toFloat()
arr=np.array([1,2,3,4],dtype='float')
arr=np.farray([1,2,3,4])
Previous Question
Next Question
25
See Explanation !
23
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 !
24
What will be the output of the following Python code? import time print(time.asctime())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import time print(time.asctime())
Current date only
UTC time
Current date and time
Current time only
Previous Question
Next Question
25
See Explanation !
25
Which statement is correct about Isalnum().
Isalnum () के बारे में कौन सा कथन सही है।
Method returns true if all characters in the string are alphanumeric numbers(either alphabets numbers). If not,it returns false
Method returns False if all characters in the string are alphanumeric numbers(either alphabets numbers). If not,it returns True
Both of the above
None of these
Previous Question