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 many times will loop run? for a in "56247839"
लूप कितनी बार चलेगा? for a in "56247839"
11
8
1
0
Next Question
25
See Explanation !
2
What will be the output of the following Python code snippet? a={} a['a']=1 a['b']=[2,3,4] print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={} a['a']=1 a['b']=[2,3,4] print(a)
Exception is thrown
{‘b’: [2], ‘a’: 1}
{‘b’: [2], ‘a’: [3]}
{'a': 1, 'b': [2, 3, 4]}
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following code snippet? a=[1,2,3,4,5,6,7,8,9] a[::2]=10,20,30,40,50,60 print(a)
निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा? a=[1,2,3,4,5,6,7,8,9] a[:2]= 10,20,30,40,50,60 print(a)
ValueError: attempt to assign sequence of size 6 to extended slice of size 5
[10, 2, 20, 4, 30, 6, 40, 8, 50, 60]
[1, 2, 10, 20, 30, 40, 50, 60]
[1, 10, 3, 20, 5, 30, 7, 40, 9, 50, 60]
Previous Question
Next Question
25
See Explanation !
4
What is default data type of NumPy Array
NumPy Array का डिफ़ॉल्ट डेटा प्रकार क्या है?
float
integer
string
boolean
Previous Question
Next Question
25
See Explanation !
5
Which symbol is used for bitwise XOR operator
बिटवाइज़ XOR ऑपरेटर के लिए कौन सा प्रतीक प्रयोग किया जाता है?
|
&
^
!
Previous Question
Next Question
25
See Explanation !
6
Python Programs are typed in
पायथन प्रोग्राम टाइप किए गए हैं
Interactive Mode
Script Mode
Both Interactive Mode or Script Mode
None of These
Previous Question
Next Question
25
See Explanation !
7
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
Next Question
25
See Explanation !
8
What does the update() method do in a dictionary?
अपडेट() विधि शब्दकोश में क्या करती है?
Clears all key-value pairs
Updates a specific key
Merges another dictionary into the current one
Removes all values
Previous Question
Next Question
25
See Explanation !
9
Python is written in
पायथन को किस भाषा में लिखा जाता है?
Java
C
PHP
All of the above
Previous Question
Next Question
25
See Explanation !
10
Which of the following arrays is a two dimensional (2-D) array?
निम्न में से कौन सा सरणियाँ द्विविमीय (2-डी) सरणी है?
89
[1,2,3,4]
[1,2,3],[3,4,5],[1,3,4]
[[2 3 5][ 4 5 6][4 5 6]]
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} print(a.get(1,4))
1
A
4
Invalid syntax for get method
Previous Question
Next Question
25
See Explanation !
12
Designing the problem in known as
समस्या को डिजाइन करना जिसे के रूप में जाना जाता है
Testing
Debugging
logical error
Algorithm
Previous Question
Next Question
25
See Explanation !
13
In Python, a complex number is represented as:
पायथन में, एक जटिल संख्या को इस प्रकार दर्शाया जाता है:
a+√b
a+√b j
a+bj
a+√j
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? x = "abcdef" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 15 MINUTES 36 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
a b c d e f
abcdef
i i i i i i …
error
Previous Question
Next Question
25
See Explanation !
15
Changing one data type to another is known as
एक डेटा प्रकार को दूसरे में बदलना कहलाता है
Type Casting
Data Transformation
Type modification
Variable Shifting
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? print('abcd'.partition('cd'))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('abcd '.partition (' cd '))
(‘ab’, ‘cd’, ”)
(‘ab’, ‘cd’)
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
17
If we open a file in write mode and file does not exists, which of the error will generate?
यदि हम एक फाइल को राइट मोड में खोलते हैं और फाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?
File Found Error
File Not Exist Error
File Not Found Error
None of these
Previous Question
Next Question
25
See Explanation !
18
What will the following code output? a=555 b=55 print( b in a)
निम्नलिखित कोड क्या आउटपुट देगा? a=555 b=55 print( b in a)
True
False
55
TypeError
Previous Question
Next Question
25
See Explanation !
19
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 !
20
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 !
21
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 !
22
Write the list comprehension to pick out only negative integers from a given list ‘l’.
दी गई लिस्ट। L ’से केवल नेगटिव इन्टिजर निकालने के लिए लिस्ट की समझ लिखें।
[x<0 in l]
[x for x<0 in l]
[x in l for x<0]
[x for x in l if x<0]
Previous Question
Next Question
25
See Explanation !
23
Which term describes a loop that continues repeating without a terminating (ending) condition ?
कौन सा शब्द एक लूप का वर्णन करता है जो बिना किसी समाप्ति (समाप्त) स्थिति के दोहराना जारी रखता है?
Infinite Loop
conditional loop
unlimited loop
None of these
Previous Question
Next Question
25
See Explanation !
24
what will be output for the following code? import numpy as np a=np.array([1,2,3,5,8]) print(a.ndim)
निम्नलिखित कोड का परिणाम क्या है? import numpy as np a=np.array([1,2,3,5,8]) print(a.ndim)
0
1
2
3
Previous Question
Next Question
25
See Explanation !
25
What is the output of this code? def calc(x): r=2*x**2 return r print(calc(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def calc(x): r=2*x**2 return r print(calc(5))
Error
50
100
20
Previous Question