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('abcdefcdghcd'.split('cd', -1))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abcdefcdghcd '.split (' cd ', -1))
[‘ab’, ‘ef’, ‘gh’]
[‘ab’, ‘ef’, ‘gh’, ”]
(‘ab’, ‘ef’, ‘gh’)
(‘ab’, ‘ef’, ‘gh’, ”)
Next Question
25
See Explanation !
2
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" जबकि i x में [:-1]: print(i, end = "")
a a a a a
a a a a a a
a a a a a a … infinite Time
a
Previous Question
Next Question
25
See Explanation !
3
Which of the following is the correct way to write multiple lines to a file in Python?
पायथन में किसी फ़ाइल में एक से अधिक पंक्तियाँ लिखने का सही तरीका निम्नलिखित में से कौन सा है?
Use multiple write() statements.
Use writelines() method.
Use writeLine() method.
Use append() method.
Previous Question
Next Question
25
See Explanation !
4
What is the output of the following statement ? print ((2, 4) + (1, 5))
निम्नलिखित कोड का परिणाम क्या है ? print ((2, 4) + (1, 5))
(2 , 4), (4 , 5)
(3 , 9)
(2, 4, 1, 5)
Invalid Syntax
Previous Question
Next Question
25
See Explanation !
5
______ functions is a built-in function in python language.
______ फ़ंक्शन Python भाषा में एक अंतर्निहित फ़ंक्शन है।
val()
print()
print In()
const()
Previous Question
Next Question
25
See Explanation !
6
What will the value of a if a=~100
यदि a=~100 है तो a का मान क्या है?
100
-100
-101
101
Previous Question
Next Question
25
See Explanation !
7
All keywords in python are in ____
अजगर के सभी कीवर्ड ____ में हैं
lowercase
UPPERCASE
Capitalized
None of the mentioned
Previous Question
Next Question
25
See Explanation !
8
Which syntax would print the last 3 numbers from the array below: arr = np.array([1,2,3,4,5,6,7])
नीचे दिए गए ऐरे से अंतिम 3 नंबर कौन सा सिंटैक्स प्रिंट करेगा: arr = np.array([1,2,3,4,5,6,7])
print(arr[3:])
print(arr[3])
print(arr[:3])
print(arr[4:])
Previous Question
Next Question
25
See Explanation !
9
What will be the output of the following code? print(10 // 3)
निम्नलिखित कोड का आउटपुट क्या होगा? print(10 // 3)
3.33
3
4
Error
Previous Question
Next Question
25
See Explanation !
10
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 !
11
Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किस एक की अभिव्यक्ति में सर्वोच्च प्राथमिकता है?
Exponential
Addition
Multiplication
Parentheses
Previous Question
Next Question
25
See Explanation !
12
What will be the output of the following Python code? from math import factorial print(math.factorial(5))
निम्नलिखित कोड का परिणाम क्या है ? from math import factorial print(math.factorial(5))
120
Nothing is printed
NameError: name 'math' is not defined
Error, the statement should be print factorial(5))
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? example = "snow world" example[3] = 's' print (example)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? example = "snow world" example[3] = 's' print (example)
snow
snow world
Error
snos world
Previous Question
Next Question
25
See Explanation !
14
A computer programme that manages and controls a computer’s activity :
एक कंप्यूटर प्रोग्राम जो कंप्यूटर की गतिविधि का प्रबंधन और नियंत्रण करता है:
Interpreter
Modem
Compiler
Operating system
Previous Question
Next Question
25
See Explanation !
15
How can we create on empty list in Python?
हम पायथन में खाली सूची पर कैसे बना सकते हैं?
list=()
list.null
null.list
list=[]
Previous Question
Next Question
25
See Explanation !
16
Which one of the following has the same precedence level?
निम्नलिखित में से किसका वरीयता स्तर समान है?
Addition and Subtraction
Multiplication, Division and Addition
Multiplication, Division, Addition and Subtraction
Addition and Multiplication
Previous Question
Next Question
25
See Explanation !
17
What will be output for the following code ? import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1, 2, 3],[0,1,4],[11,22,33]]) print (a.size)
1
3
9
4
Previous Question
Next Question
25
See Explanation !
18
find the output of following code: def add(a,b): return(a+b) print(add(3,4))
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 01 HOURS 23 MINUTES 41 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
4
7
9
8
Previous Question
Next Question
25
See Explanation !
19
What is the output of the following program: print ("Hello World"[::-1])
निम्नलिखित प्रोग्राम का आउटपुट क्या है: PRINT (" Hello World "[::-1])
dlroW olleH
Hello Worl
D
error
Previous Question
Next Question
25
See Explanation !
20
_____method calls the built-in Python help system.
_____विधि अंतर्निहित पायथन सहायता प्रणाली को बुलाती है।
python.help ()
help()
help.python()
None of the Above
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following ? print((range(4)))
निम्नलिखित कोड का परिणाम क्या है? print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Previous Question
Next Question
25
See Explanation !
22
Which of the following functions converts a string to a float in python ?
निम्नलिखित में से कौन सा कार्य अजगर में एक स्ट्रिंग को एक फ्लोट में परिवर्तित करता है?
int(x [,base])
long(x [,base])
float(x)
str(x)
Previous Question
Next Question
25
See Explanation !
23
Which one of the following is inmmutable data type?
निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
list
set
tuple
dict
Previous Question
Next Question
25
See Explanation !
24
Which of the following function of dictionary gets all the keys from the dictionary
निम्नलिखित में से डिक्शनरी का कौन सा फ़ंक्शन डिक्शनरी से सभी की निकालने के लिए किया जाता है
getkeys()
key()
keys()
none of the mentioned
Previous Question
Next Question
25
See Explanation !
25
The operator returns the quotent after division.
ऑपरेटर विभाजन के बाद कोटेंट लौटाता है।
//
%
&
None of these
Previous Question