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? def foo(): return total + 1 total = 0 print(foo())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def foo(): कुल 1 कुल = 0 प्रिंट(foo ()) लौटाएं
0
1
error
none of the mentioned
Next Question
25
See Explanation !
2
When we open file in append mode the file pointer is at the of the file?
जब हम फाइल को एपेंड मोड में खोलते हैं तो फाइल पॉइंटर फाइल के ____ पर होता है?
anywhere in between the file
End
beginning
second line of the file
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.keys(): print(d[x])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? d = {0 :' a ', 1 :' b ', 2 :' c '} d.keys () में 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
How are keyword arguments specified in the function heading?
फ़ंक्शन शीर्षक में कीवर्ड तर्क कैसे निर्दिष्ट किए जाते हैं?
one-star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
5
Which part of the memory does the system store the parameter and local variables of a function call ?
मेमोरी का कौन सा भाग सिस्टम फ़ंक्शन कॉल के पैरामीटर और स्थानीय चर को संग्रहीत करता है?
Heap
Stack
Uninitialized data segment
None of the above
Previous Question
Next Question
25
See Explanation !
6
Which of the following is not a Python IDE
निम्नलिखित में से कौन पायथन आईडीई नहीं है
IDLE
Spyder
Jupyter Notes
Sublime Test
Previous Question
Next Question
25
See Explanation !
7
What is the output when we execute list(“hello”)?
जब हम सूची(" नमस्ते ") निष्पादित करते हैं तो आउटपुट क्या होता है?
[‘h’, ‘e’, ‘l’, ‘l’, ‘o’]
[‘hello’]
[‘llo’]
[‘olleh’]
Previous Question
Next Question
25
See Explanation !
8
In Python, _____ defines a block of statements.
Python में, _____ कथनों के एक खंड को परिभाषित करता है।
Block
{}
Indentation
loop
Previous Question
Next Question
25
See Explanation !
9
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 !
10
What is the extension of Python code File?
पायथन कोड फ़ाइल का विस्तार क्या है?
.py
.python
.ppt
.pyt
Previous Question
Next Question
25
See Explanation !
11
How are variable length arguments specified in the function heading?
फ़ंक्शन हेडिंग में वैरिएबल लेंथ आर्ग्यमन्ट कैसे स्पेसिफ़ाइड किए जाते हैं?
one star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
12
What is the value of the expression 100 / 25 ?
व्यंजक 100/25 का मान क्या है?
4
4.0
2.5
none of these
Previous Question
Next Question
25
See Explanation !
13
Which of the following is not an immutable type in Python ?
निम्नलिखित में से कौन पायथन में एक अपरिवर्तनीय प्रकार नहीं है?
String
Tuples
Set
None of these
Previous Question
Next Question
25
See Explanation !
14
An empty/null statement in Python is
पायथन में एक खाली/शून्य कथन है
go
pass
over
;
Previous Question
Next Question
25
See Explanation !
15
Which of the following python function converts a string to a list.
निम्नलिखित में से कौन सा पायथन फ़ंक्शन एक स्ट्रिंग को एक सूची में परिवर्तित करता है।
list()
str()
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
16
Getting and setting the value of individual array elements:
पर्टिकुलर ऐरे एलिमेंट का मान प्राप्त करना और सेट करना
Indexing
Slicing
Reshaping
None of the above
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following ? import numpy as np a = np.arange(1,3,.5) print(a)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.arange(1,3,.5) print(a)
[1 2 3]
[1. 1.5 2. 2.5]
[1. 1.5 2. 2.5 3]
[1 1.5 2 2.5 3]
Previous Question
Next Question
25
See Explanation !
18
Suppose list1 is [2445,133,12454,123], what is max(list1)?
मान लीजिए list1 [2445,133,12454,123] है, MAX(list1) क्या है?
2445
133
12454
123
Previous Question
Next Question
25
See Explanation !
19
_______ 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 !
20
ndarray is also known as the ____ array.
ndarray को ____ सरणी के रूप में भी जाना जाता है।
Array
alias
variable
None of these
Previous Question
Next Question
25
See Explanation !
21
_____is a Pandas function for loading CSV files into Dataframe.
_____ CSV फ़ाइलों को डेटाफ़्रेम में लोड करने के लिए एक पांडा फ़ंक्शन है।
read_csv()
csv_read()
csv.write()
None of these
Previous Question
Next Question
25
See Explanation !
22
What will the following code output? print(‘re\new’)
निम्नलिखित कोड आउटपुट क्या होगा? print(' re\new ')
re\new
new
re new
re ew
Previous Question
Next Question
25
See Explanation !
23
Which of the following statement will be true.
निम्नलिखित में से कौन सा कथन सत्य होगा।
Python allows you to assign a single value to multiple variables simultaneously.
You can assign multiple values to multiple variables by separating variables and values with commas.
You can assign the same value to multiple variables by using = consecutively..
All of the above
Previous Question
Next Question
25
See Explanation !
24
Which of the following is true for nested loops in Python?
पायथन में नेस्टेड लूप के लिए निम्नलिखित में से कौन सा सत्य है?
The outer loop must run fewer times than the inner loop.
Only for loops can be nested.
Both for and while loops can be nested.
The inner loop runs only once for each iteration of the outer loop.
Previous Question
Next Question
25
See Explanation !
25
Which expression is equivalent to A=A*8
कौन सा व्यंजक A=A*8 के समतुल्य है
A*A=8
A*=8
A*8=A
A=*8
Previous Question