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
Python Programming
Set 14
25
See Explanation !
1
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
Next Question
25
See Explanation !
2
What will the following code output? a=55 b=’55’ print( a is not b)
निम्नलिखित कोड क्या आउटपुट देगा? a=55 b=’55’ print( a is not b)
True
False
55
TypeError
Previous Question
Next Question
25
See Explanation !
3
What will the following code output? print( 12/4/2)
निम्नलिखित कोड आउटपुट क्या होगा? print( 12/4/2)
6
1
1.5
Error
Previous Question
Next Question
25
See Explanation !
4
Which of the following is the correct syntax for a conditional statement in Python?
पायथन में कंडिशनल स्टेट्मेंट के लिए निम्नलिखित में से कौन सा सही सिंटेक्स है?
if (x > 0):
if x > 0
if x > 0 then:
Both A and B
Previous Question
Next Question
25
See Explanation !
5
What is the purpose of the elif statement in Python?
पायथन में एलिफ स्टेटमेंट का पर्पज क्या है?
To create an infinite loop.
To check additional conditions when the first if condition is False.
To end the if block.
To execute code unconditionally.
Previous Question
Next Question
25
See Explanation !
6
Which function is used to generate a sequence of numbers in Python loops?
पायथन लूप्स में नंबर्स का सीक्वेंस जनरेट करने के लिए किस फ़ंक्शन का यूज़ किया जाता है?
sequence()
range()
list()
loop()
Previous Question
Next Question
25
See Explanation !
7
Which of the following is true about the break statement in loops?
लूप्स में ब्रेक स्टेटमेंट के बारे में निम्नलिखित में से कौन सा सत्य है?
It skips the current iteration and goes to the next iteration.
It terminates the loop entirely
It does nothing.
It restarts the loop.
Previous Question
Next Question
25
See Explanation !
8
What does the continue statement do in a loop?
लूप में कंटीन्यू स्टेटमेंट क्या करता है?
Exits the loop entirely.
Skips the rest of the code in the current iteration and moves to the next iteration.
Restarts the loop.
Causes an error.
Previous Question
Next Question
25
See Explanation !
9
What is the purpose of an else block in loops?
लूप्स में else ब्लॉक का पर्पज़ क्या है?
To execute if the loop terminates normally without a break.
To execute after every iteration..
To handle errors in the loop.
To terminate the loop.
Previous Question
Next Question
25
See Explanation !
10
What happens when multiple if statements are used instead of if-elif?
क्या होता है जब if-elif के स्थान पर मल्टीपल if स्टेटमेंट्स का यूज़ किया जाता है?
Only the first condition is checked.
All conditions are checked, even if one is True.
It behaves the same as if-elif.
It raises an error.
Previous Question
Next Question
25
See Explanation !
11
Which keyword is used to exit a loop prematurely in Python?
पायथन में लूप से समय से पहले एग्जिट होने के लिए किस कीवर्ड का यूज़ किया जाता है?
exit
break
continue
stop
Previous Question
Next Question
25
See Explanation !
12
Which of the following is NOT a valid use of a loop in Python?
निम्नलिखित में से कौन सा पायथन में लूप का वैलिड यूज़ नहीं है?
Iterating over a list.
Iterating over a string.
Iterating over a dictionary.
None of the above
Previous Question
Next Question
25
See Explanation !
13
What happens if the condition in a while loop is initially False?
यदि थोड़ी देर के लूप में स्थिति शुरू में गलत हो तो क्या होगा?
The loop runs indefinitely.
The loop executes once before terminating.
The loop does not execute.
It raises an error
Previous Question
Next Question
25
See Explanation !
14
What will happen if a for loop tries to iterate over an empty list?
यदि कोई लूप किसी एम्प्टी लिस्ट पर पुनरावृति करने का प्रयास करता है तो क्या होगा?
It will raise an IndexError.
It will iterate once with a default value of None.
It will not execute the loop body.
It will run indefinitely.
Previous Question
Next Question
25
See Explanation !
15
What is the purpose of the else block in a Python loop?
पायथन लूप में अन्य ब्लॉक का पर्पज क्या है?
To execute when the loop is terminated using break.
To execute after the loop completes without encountering a break.
To restart the loop.
To execute before the loop starts
Previous Question
Next Question
25
See Explanation !
16
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 !
17
Which one is not a looping structure available in python.
पायथन में कौन सी लूपिंग स्ट्रक्चर अवेलबल नहीं है?
while loop
for loop
do while loop
all of these
Previous Question
Next Question
25
See Explanation !
18
Which of the following statements is used to test multiple conditions in Python?
निम्नलिखित में से किस स्टेट्मेंट का यूज़ पायथन में मल्टिपल कंडीशन का टेस्ट करने के लिए किया जाता है?
if
if-else
elif
if-else-if
Previous Question
Next Question
25
See Explanation !
19
How can we store 2 in a, 3 in b and 4 in c in one line statement.
हम एक लाइन स्टेटमेंट में 2 को a में, 3 को b में और 4 को c में कैसे स्टोर कर सकते हैं।
a=2,b=3,c=4
a,b,c=2,3,4
a=2;b=3;c=4
Both b and c
Previous Question
Next Question
25
See Explanation !
20
How many for loop structure we can use in our program?
हम अपने प्रोग्राम में कितने फॉर लूप स्ट्रक्चर का यूज़ कर सकते हैं?
Only One
1-10
Any number of Times
Any number of times but one inside another only.
Previous Question
Next Question
25
See Explanation !
21
What will the following code output? x=0 if x: print("True") else: print("False")
निम्नलिखित कोड क्या आउटपुट देगा? x=0 if x: print("True") else: print("False")
True
False
None
Error
Previous Question
Next Question
25
See Explanation !
22
What is the output of the following code? for i in range(3): print(i,end=" ")
निम्नलिखित कोड का आउटपुट क्या है? for i in range(3): print(i,end=" ")
0 1 2
1 2 3
0 1 2 3
Error
Previous Question
Next Question
25
See Explanation !
23
What is the output of the following code? count=0 while count<3: print(count,end=" ") count+=1
निम्नलिखित कोड का आउटपुट क्या है? count=0 while count<3: print(count,end=" ") count+=1
0 1 2
1 2 3
0 1 2 3
Error
Previous Question
Next Question
25
See Explanation !
24
What is the output of the following code? python x = [1, 2, 3] print(x[1])
निम्नलिखित कोड का आउटपुट क्या है? python x = [1, 2, 3] print(x[1])
1
2
3
IndexError
Previous Question
Next Question
25
See Explanation !
25
Which of the following keywords is used to skip the current iteration in a Python loop?
निम्नलिखित में से कौन सा कीवर्ड पायथन लूप में वर्तमान पुनरावृत्ति को छोड़ने के लिए उपयोग किया जाता है?
break
exit
pass
continue
Previous Question