Home
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
Other 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
2024
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
Set
25
See Explanation !
1
What happens if you attempt to access an index that is out of range in a list?
यदि आप किसी सूचकांक को एक्सेस करने का प्रयास करते हैं जो सूची में सीमा से बाहर है, तो क्या होता है?
It returns None.
It raises an IndexError
It creates a new element at that index.
It returns an empty list.
Next Question
25
See Explanation !
2
Which function returns the exact copy of the string with the first letter in uppercase.
कौन सा फ़ंक्शन अपरकेस में पहले अक्षर के साथ स्ट्रिंग की सटीक कॉपी देता है।
find()
copy()
upper()
capitalize()
Previous Question
Next Question
25
See Explanation !
3
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 !
4
Suppose list1 is [1, 5, 9], what is sum(list1)?
मान लीजिए list1 [1, 5, 9] है, योग(list1) क्या है?
1
9
15
Error
Previous Question
Next Question
25
See Explanation !
5
A program that convert a high-level language program to a set of instructions that can run on a computer is called a
एक प्रोग्राम जो एक उच्च - स्तरीय भाषा प्रोग्राम को निर्देशों के एक सेट में परिवर्तित करता है जो कंप्यूटर पर चल सकता है उसे एक कहा जाता है
Compiler
Debugger
Editor
None of the above
Previous Question
Next Question
25
See Explanation !
6
What will be the output of the following python code? from math import * floor(11.7)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import * floor(11.7)
12
11
11.0
none of these
Previous Question
Next Question
25
See Explanation !
7
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 !
8
The operator used for concatenating two strings. -
ऑपरेटर दो तारों को जोड़ने के लिए उपयोग किया जाता है। -
+
*
%
None
Previous Question
Next Question
25
See Explanation !
9
The ______ mode of Python gives instant result of typed statement
पायथन का ______ मोड टाइप किए गए कथन का तत्काल परिणाम देता है।
Interactive Mode
Script Mode
Combination of Interactive and Script modes
All of these
Previous Question
Next Question
25
See Explanation !
10
Which of these is false about recursion?
इनमें से कौन सी पुनरावृत्ति के बारे में गलत है?
Recursive function can be replaced by a non-recursive function
Recursive functions usually take more memory space than non-recursive function
Recursive functions run faster than non-recursive function
Recursion makes programs easier to understand
Previous Question
Next Question
25
See Explanation !
11
What is called when a function is defined inside a class?
जब किसी फ़ंक्शन को क्लास के अंदर परिभाषित किया जाता है तो उसे क्या कहा जाता है?
Module
Class
Another function
Method
Previous Question
Next Question
25
See Explanation !
12
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
PYTHONCASEOK
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following code? import numpy as np a=np.array([1,2,3]) print(a.ndim)
निम्नलिखित कोड का परिणाम क्या है? import numpy as np a=np.array([1,2,3]) print(a.ndim)
1
2
3
0
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)? import datetime tday=datetime.date.today() print(tday.isoweekday())
यदि सिस्टम दिनांक 21 जून, 2017 (बुधवार) है, तो निम्नलिखित पायथन कोड का आउटपुट क्या होगा? import datetime tday=datetime.date.today() print(tday.isoweekday())
Wed
Wednesday
2
3
Previous Question
Next Question
25
See Explanation !
15
How is a code block indicated in Python?
पायथन में एक कोड ब्लॉक कैसे इंगित किया जाता है?
Brackets
Indentation
Key
None of the above
Previous Question
Next Question
25
See Explanation !
16
What is identity array?
Identity Array क्या है?
This is a square array with ones on the main diagonal.
This is a normal array.
This is a array with ones on the main diagonal.
None of these
Previous Question
Next Question
25
See Explanation !
17
Designing the problem in known as
समस्या को डिजाइन करना जिसे के रूप में जाना जाता है
Testing
Debugging
logical error
Algorithm
Previous Question
Next Question
25
See Explanation !
18
If a is declared as a=['me', 'he', 'they'], the value of a="".join(a) print(a) will be ______ .
यदि a को a= ['me', 'he', 'they'] के रूप में डिक्लेयर किया जाता है, तो a='''.join (a) print(a) की वैल्यू _____ होगी।
mehethey
me he they
he they me
None of these
Previous Question
Next Question
25
See Explanation !
19
In which language is Python written?
पायथन किस भाषा में लिखा जाता है?
English
PHP
C
All of the above
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: print('i', end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = "abcdef" i = "a" while i in x: print('i', end = " ")
no output
i i i i i i … infinite Time
a a a a a a …
a b c d e f
Previous Question
Next Question
25
See Explanation !
21
How are keyword arguments specified in the function heading?
फ़ंक्शन शीर्षक में कीवर्ड तर्क कैसे निर्दिष्ट किए जाते हैं?
one-star followed by a valid identifier
one underscore followed by a valid identifier
two stars followed by a valid identifier
two underscores followed by a valid identifier
Previous Question
Next Question
25
See Explanation !
22
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 !
23
What will be the output of the following Python code? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
निम्नलिखित पायथन फ़ंक्शन का आउटपुट क्या होगा? def foo(k): k[0] = 1 q = [0] foo(q) print(q)
[0]
[1]
[1, 0]
[0, 1]
Previous Question
Next Question
25
See Explanation !
24
What will the following code output? a=5 a*=10 print(a)
निम्नलिखित कोड क्या आउटपुट देगा? a=5 a*=10 print(a)
5
10
50
Error
Previous Question
Next Question
25
See Explanation !
25
What will the following code output? print(4 & 5)
निम्नलिखित कोड आउटपुट क्या होगा? print(4 & 5)
4
5
0
1
Previous Question