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
If a=(1,2,3,4), a[1:-1] is _________
यदि a = (1,2,3,4), एक [1: -1] _________ है
Error, tuple slicing doesn’t exist
[2,3]
(2,3,4)
(2,3)
Next Question
25
See Explanation !
2
What will be the output of the following Python code? print("ccdcddcd".find("c"))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print("ccdcddcd ".find (" c "))
4
0
Error
True
Previous Question
Next Question
25
See Explanation !
3
What does the // operator do in Python?
// ऑपरेटर पायथन में क्या करता है?
Performs integer division and returns the integer part.
Performs normal division and returns a float.
Performs modulus operation.
Performs exponential calculation.
Previous Question
Next Question
25
See Explanation !
4
Istrip() method is used for :
Istrip() विधि का उपयोग इसके लिए किया जाता है:
delete all the trailing characters
delete all the leading characters
delete all the leading and trailing characters
delete upper case characters
Previous Question
Next Question
25
See Explanation !
5
What keyword is used in Python to raise exceptions?
एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?
raise
goto
try
except
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ")
MYMEMORY WARNING: YOU USED ALL AVAILABLE FREE TRANSLATIONS FOR TODAY. NEXT AVAILABLE IN 17 HOURS 14 MINUTES 31 SECONDS VISIT HTTPS://MYMEMORY.TRANSLATED.NET/DOC/USAGELIMITS.PHP TO TRANSLATE MORE
no output
i i i i i i …
a b c d e f
abcdef
Previous Question
Next Question
25
See Explanation !
7
Which of the following executes the programming code line by line?
निम्नलिखित में से कौन सा प्रोग्रामिंग कोड लाइन दर लाइन निष्पादित करता है?
Compiler
Interpreter
Executer
Translator
Previous Question
Next Question
25
See Explanation !
8
Suppose d = {“john”:40, “peter”:45}, what happens when we try to retrieve a value using the expression d[“susan”]?
मान लीजिए d = {“john”:40, “peter”:45}, तब क्या होता है जब हम d[“susan”] अभिव्यक्ति का उपयोग करके मान प्राप्त करने का प्रयास करते हैं?
Since “susan” is not a value in the set, Python raises a KeyError exception
It is executed fine and no exception is raised, and it returns None
Since “susan” is not a key in the set, Python raises a KeyError exception
Since “susan” is not a key in the set, Python raises a syntax error
Previous Question
Next Question
25
See Explanation !
9
Python supports Object-Oriented style or technique of programming that encapsulates code within _____.
पायथन ऑब्जेक्ट - ओरिएंटेड शैली या प्रोग्रामिंग की तकनीक का समर्थन करता है जो _____ के भीतर कोड को समाहित करता है।
objects
style
memory
None
Previous Question
Next Question
25
See Explanation !
10
Which of the following functions is used to open a file in Python?
पायथन में फ़ाइल खोलने के लिए निम्नलिखित में से किस फ़ंक्शन का उपयोग किया जाता है?
open_file()
file_open()
open()
read_file()
Previous Question
Next Question
25
See Explanation !
11
in python which function is used to read CSV file
पायथन में CSV फ़ाइल को पढ़ने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
csv.reader(file)
csv.read(file)
csv.readcsv(file)
csv.readcsvdata(file)
Previous Question
Next Question
25
See Explanation !
12
Which of the following is false about “from ….. import …… " form of import?
निम्नलिखित में से कौन सा आयात के "from ….. import …… " रूप के बारे में गलत है?
The syntax is: from module name import identifier
This form of import does not import anything
The namespace of imported module becomes part of importing module
The identifiers in module are accessed directly as: identifier
Previous Question
Next Question
25
See Explanation !
13
Which of the following will return reverse string str1?
निम्नलिखित में से कौन रिवर्स स्ट्रिंग str1 लौटाएगा?
str1[ : : -1 ]
str1[ : : 1 ]
str1[ : -1 : -1 ]
None
Previous Question
Next Question
25
See Explanation !
14
The ______ statement lets the program go through the piece of code without performing any action.
______ कथन प्रोग्राम को कोई कार्रवाई किए बिना कोड के टुकड़े से गुजरने देता है।
pass
Get
Range
None of these
Previous Question
Next Question
25
See Explanation !
15
Designing the problem?
समस्या को डिज़ाइन करना चाहते हैं?
Testing
Debugging
logical error
Algorithm
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python function? sum(2,4,6) sum([1,2,3])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? sum(2,4,6) sum([1,2,3])
Error, 6
12, Error
12, 6
Error, Error
Previous Question
Next Question
25
See Explanation !
17
What does the 'r' mode signify when opening a file using open() in Python?
पायथन में ओपन() का उपयोग करके फ़ाइल खोलते समय 'r' मोड क्या दर्शाता है?
Read mode
Write mode
Append mode
Binary mode
Previous Question
Next Question
25
See Explanation !
18
Which of the following is not a legal integer type value in python.
निम्नलिखित में से कौन सा पायथन में कानूनी पूर्णांक प्रकार का मान नहीं है।
Decimal
Octal
Hexadecimal
Roman
Previous Question
Next Question
25
See Explanation !
19
The word comes form the name of a Persian mathematician Abu Ja'far Mohammed ibn-i Musa al khowarizami is a called?
यह शब्द एक फारसी गणितज्ञ अबू जाफर मोहम्मद इब्न- ए मूसा अल खोवारिजामी के नाम से आया है को..... क्या कहा जाता है?
Flowchart
Flow
Algorithm
syntax
Previous Question
Next Question
25
See Explanation !
20
What is the output of the following program: i = 0 while i < 3: print (i) i=i+1 print (i+1)
निम्नलिखित प्रोग्राम का आउटपुट क्या है: i = 0 while i < 3: print (i) i=i+1 print (i+1)
0 2 1 3 2 4
0 1 2 3 4 5
Infinite loop
0 1 2 3
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python code snippet? d = {"john":40, "peter":45} print(list(d.keys()))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? d = {"john":40, "peter":45} print(list(d.keys()))
[“john”, “peter”]
[“john”:40, “peter”:45]
(“john”, “peter”)
(“john”:40, “peter”:45)
Previous Question
Next Question
25
See Explanation !
22
What is the symbol used to represent start and stop of a flowchart ?
फ्लोचार्ट के प्रारंभ और ठहराव का प्रतिनिधित्व करने के लिए किस प्रतीक का उपयोग किया जाता है?
Oval
Rectangle
Arrow
Diamond
Previous Question
Next Question
25
See Explanation !
23
Which of the following is an invalid statement?
निम्नलिखित में से कौन सा एक अमान्य कथन है?
abc = 1,000,000
a b c = 1000 2000 3000
a,b,c = 1000, 2000, 3000
a_b_c = 1,000,000
Previous Question
Next Question
25
See Explanation !
24
NumPY stands for. -
NumPY का अर्थ है -
Numbering Python
Number In Python
Numerical Python
None of the above
Previous Question
Next Question
25
See Explanation !
25
Which of the following functions does not necessarily accept only iterables as arguments?
निम्नलिखित में से कौन सा फंक्शन केवल नेससेरली को आर्ग्यमन्ट के रूप में एक्सेप्ट नहीं करता है?
enumerate()
all()
chr()
max()
Previous Question