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
np.eye() is used for creating:
np.eye() का उपयोग बनाने के लिए किया जाता है:
Identity Matrix
Upper triangle Matrix
Lower Triangle Matrix
None of the above
Next Question
25
See Explanation !
2
In Python, a variable may be assigned a value of one type, and then later assigned a value of a different type. This concept is known as
पायथन में, एक चर को एक प्रकार का मान असाइन किया जा सकता है, और फिर बाद में एक अलग प्रकार का मान असाइन किया जा सकता है। इस अवधारणा को........... के रूप में जाना जाता है
mutability
static typing
dynamic typing
immutability
Previous Question
Next Question
25
See Explanation !
3
If we try to access the item outside the list index, then what type of error it may give ?
यदि हम सूची सूचकांक के बाहर आइटम तक पहुंचने का प्रयास करते हैं, तो यह किस प्रकार की त्रुटि दे सकता है?
List is not defined
List index out of range
List index out of bound
None of the above
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} for i in a: print(i,end=" ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} for i in a: print(i,end=" ")
1 2 3
‘A’ ‘B’ ‘C’
1 ‘A’ 2 ‘B’ 3 ‘C’
Error, it should be: for i in a.items():
Previous Question
Next Question
25
See Explanation !
5
What will be the output of the following Python code snippet? x = 'abcd' for i in range(len(x)): i.upper() print (x)
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? x = 'abcd' for i in range(len(x)): i.upper() print (x)
a b c d
0 1 2 3
error
none of the mentioned
Previous Question
Next Question
25
See Explanation !
6
What is list data type in python?
अजगर में सूची डेटा प्रकार क्या है?
collection of integer number
collection of string
collection of same data type
collection of different data type
Previous Question
Next Question
25
See Explanation !
7
Which of the following is true about Python strings?
पायथन स्ट्रिंग्स के बारे में निम्नलिखित में से कौन सा सच है?
Strings can be modified using indexing.
Strings are immutable.
Strings can only contain alphabetic characters.
Strings must end with a newline character.
Previous Question
Next Question
25
See Explanation !
8
Which of the following is not a valid namespace?
इनमें से कौन - सा एक मान्य नेमस्पेस नहीं है?
Global namespace
Public namespace
Built-in namespace
Local namespace
Previous Question
Next Question
25
See Explanation !
9
What is 'pass' in python?
पायथन में 'pass' क्या है?
No Operation
No Action
Null Statement
Placeholder
Previous Question
Next Question
25
See Explanation !
10
Which of the following expressions results in an error?
निम्नलिखित में से किस अभिव्यक्ति के परिणामस्वरूप एक त्रुटि होती है?
float('10')
int('10')
float('10.8')
int('10.8')
Previous Question
Next Question
25
See Explanation !
11
Which of the following is not a keyword in python?
पाइथन में इनमें से कौन सा कीवर्ड कीवर्ड नहीं है?
raise
try
val
with
Previous Question
Next Question
25
See Explanation !
12
Which of the following is not valid Python identifiers?
निम्नलिखित में से कौन पायथन पहचानकर्ता मान्य नहीं है?
email
ca$h
marks10
Python2Shar
Previous Question
Next Question
25
See Explanation !
13
Set of statements is executed again and again based upon conditional test.
सशर्त परीक्षण के आधार पर कथनों का सेट बार - बार निष्पादित किया जाता है।
Looping
Selective
Sequence
None
Previous Question
Next Question
25
See Explanation !
14
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 !
15
Given a string x="hello" What is the output of x.count('l')?
एक स्ट्रिंग x = "hello " को देखते हुए x.count ('1') का आउटपुट क्या है?
2
1
0
none
Previous Question
Next Question
25
See Explanation !
16
What is the output of >>>’2’ +’3’
>>>'2' +'3' का आउटपुट क्या है
23
'2+3'
'23'
None of These
Previous Question
Next Question
25
See Explanation !
17
What is the output of the following program ? print 0.1+0.2==0.3
निम्नलिखित प्रोग्राम का आउटपुट क्या है? प्रिंट 0.1 0.2==0.3
True
False
Machine dependent
Error
Previous Question
Next Question
25
See Explanation !
18
Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program ?
पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन दुभाषिया को बताता है कि किसी प्रोग्राम में आयात की गई मॉड्यूल फ़ाइलों का पता कहां लगाया जाए?
PYTHONPATH
PYTHONSTARTUP
PYTHONCASEOK
PYTHONHOME
Previous Question
Next Question
25
See Explanation !
19
The syntax of seek() is: file_object.seek(offset [, reference_point]) What does the reference_point indicate?
seek () का सिंटैक्स है: file_object.seek(offset [, Reference_point]) रेफरेंस_पॉइंट क्या दर्शाता है?
reference_point indicates the current position of the file object
reference_point indicates the starting position of the file object
reference_point indicates the ending position of the file object
None of the above
Previous Question
Next Question
25
See Explanation !
20
which function is used to remove last item from a list?
किसी सूची से अंतिम आइटम को हटाने के लिए किस फ़ंक्शन का उपयोग किया जाता है?
pop()
delete()
remove_last()
delete_last()
Previous Question
Next Question
25
See Explanation !
21
What is the output of the following? m=0 while m<5: m+=1 if m==3: break else: print(0)
निम्नलिखित का आउटपुट क्या है? m=0 while m<5: m+=1 if m==3: break else: print(0)
0 1 2 0
0 1 2
0 0 1 0 2
error
Previous Question
Next Question
25
See Explanation !
22
What will be output for the following code? import numpy as np ary = np.array([1,2,3,5,8]) ary = ary + 1 print (ary[1])
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np ary = np.array([1,2,3,5,8]) ary = ary + 1 print (ary[1])
0
1
2
3
Previous Question
Next Question
25
See Explanation !
23
Which of the following statement will be true?
निम्नलिखित में से कौन सा कथन सत्य होगा?
It is mandatory to have_main_function in python.
It is not mandatory to have _main_function in python.
It is mandatory to have any function in python.
None of the above
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? import time print(time.asctime())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import time print(time.asctime())
Current date only
UTC time
Current date and time
Current time only
Previous Question
Next Question
25
See Explanation !
25
Which one of the following is incorrect?
निम्नलिखित में से कौन सा गलत है?
The variables used inside function are called local variables.
The local variables of a particular function can be used inside other functions, but these cannot be used in global space.
The variables used outside function are called global variables.
In order to change the value of global variable inside function, keyword global is used.
Previous Question