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 will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} print(a.get(3))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
Error, invalid syntax
A
5
C
Next Question
25
See Explanation !
2
The function pow(x,y,z) is evaluated as:
फ़ंक्शन pow(x, y, z) का मूल्यांकन इस प्रकार है:
(x**y)**z
(x**y) / z
(x**y) % z
(x**y)*z
Previous Question
Next Question
25
See Explanation !
3
what will the output of x=5+8*((3*5)-9)/10
x=5+8*((3*5)-9)/10 का आउटपुट क्या होगा
12.5
8
9.8
9
Previous Question
Next Question
25
See Explanation !
4
For two objects x and y, the expression x is y will yield True, if and only if
दो वस्तुओं x और y के लिए, व्यंजक x, y है, सत्य प्राप्त करेगा, यदि और केवल यदि
id(x) == id(y)
len(x) == len(y)
x == y
all of these
Previous Question
Next Question
25
See Explanation !
5
What will the output of following code? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
निम्नलिखित कोड का आउटपुट क्या होगा? a={1,2,3} b={1,2,3,4} c=a.issuperset(b) print(c)
False
True
Syntax error for issuperset() method
Error, no method called issuperset() exists
Previous Question
Next Question
25
See Explanation !
6
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 !
7
A Function used for writing data in the binary format :
बाइनरी फॉर्मेट में डेटा लिखने के लिए उपयोग किया जाने वाला एक फंक्शन:
write
output
send
dump
Previous Question
Next Question
25
See Explanation !
8
Which one of the following has the highest precedence in the expression? -
निम्नलिखित में से किस एक की अभिव्यक्ति में सर्वोच्च प्राथमिकता है? -
Exponential
Parentheses
Multiplication
None of the above
Previous Question
Next Question
25
See Explanation !
9
Which of the following mode argument is used in file to truncate ?
निम्नलिखित में से किन मोड आर्गुमेंट का उपयोग ट्रंकेट करने के लिए उपयोग किया जाता है?
a
f
w
t
Previous Question
Next Question
25
See Explanation !
10
What does readlines() method return ?
Readlines() विधि क्या लौटाती है?
Dictionary
String
Tuple
List
Previous Question
Next Question
25
See Explanation !
11
What will be the output of the following Python code? a={1:5,2:3,3:4} a.pop(3) print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:5,2:3,3:4} a.pop(3) print(a)
{1: 5}
{1: 5, 2: 3}
Error, syntax error for pop() method
{1: 5, 3: 4}
Previous Question
Next Question
25
See Explanation !
12
The order of statement execution in the form of top to bottom, is known as .......... construct.
ऊपर से नीचे के रूप में कथन निष्पादन के क्रम को.......... निर्माण के रूप में जाना जाता है।
selection
repetition
sequence
flow
Previous Question
Next Question
25
See Explanation !
13
To remove string "hello" from list1, we use which command ?
List1 से स्ट्रिंग "hello" हटाने के लिए, हम किस कमांड का उपयोग करते हैं?
list1.remove("hello")
list1.remove(hello)
list1.removeAll("hello")
list1.removeOne ("hello")
Previous Question
Next Question
25
See Explanation !
14
What will tuple('abc') return?
Tuple(' abc ') क्या लौटाएगा?
('abc’)
('a', 'b', 'c’)
['a', 'b', 'c’]
Error
Previous Question
Next Question
25
See Explanation !
15
Which of the following is not a Keyword in Python ?
पायथन में निम्नलिखित में से कौन सा कीवर्ड नहीं है?
break
while
continue
operators
Previous Question
Next Question
25
See Explanation !
16
What will happen if you try to access a key that doesn’t exist in a dictionary?
अगर आप किसी ऐसी कुंजी को एक्सेस करने की कोशिश करते हैं, जो किसी शब्दकोश में मौजूद नहीं है, तो क्या होगा?
Returns None
Throws a KeyError
Creates a new key with a default value
Crashes the program
Previous Question
Next Question
25
See Explanation !
17
What does the strip() method do in Python?
पाइथन में स्ट्रिप() विधि क्या करती है?
Removes all spaces from the string.
Removes the first and last character of the string.
Removes whitespace from the beginning and end of the string.
Converts the string into a list of characters.
Previous Question
Next Question
25
See Explanation !
18
Raw data assigned to a variable is called as
एक चर को असाइन किए गए कच्चे डेटा को कहा जाता है
Variable
Literals
Identifiers
Comment
Previous Question
Next Question
25
See Explanation !
19
What will be the output of the following Python code snippet? print('abef'.partition('cd'))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print('abef '.partition (' cd '))
(‘abef’)
(‘abef’, ‘cd’, ”)
(‘abef’, ”, ”)
error
Previous Question
Next Question
25
See Explanation !
20
What will be the output of the following Python expression? print(4.00/(2.0+2.0))
निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा? print(4.00/(2.0 2.0))
Error
1.0
1.00
1
Previous Question
Next Question
25
See Explanation !
21
Which of the following statements create a dictionary?
निम्नलिखित में से कौन सा स्टेट्मेंट एक ड़िक्शनरी बनाता है?
d = {}
d = {“john”:40, “peter”:45}
d = {40:”john”, 45:”peter”}
All of the mentioned
Previous Question
Next Question
25
See Explanation !
22
What will the following code output? print(ord(‘A’))
निम्नलिखित कोड आउटपुट क्या होगा? print(ORD (' A '))
65
97
32
67
Previous Question
Next Question
25
See Explanation !
23
What will be the output of the following ? import numpy as np arr=np.array([1,2,3]) print(arr.shape)
निम्नलिखित कोड का परिणाम क्या है? import numpy as np arr=np.array([1,2,3]) print(arr.shape)
(3,)
(4,)
1
3
Previous Question
Next Question
25
See Explanation !
24
What is the output of the code print (9//2)
कोड प्रिंट का आउटपुट क्या है (9//2)
4.5
4.0
4
Error
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? list1 = [1, 3] list2 = list1 list1[0] = 4 print(list2)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? list1 = [1, 3] list2 = list1 list1[0] = 4 print(list2)
[1, 3]
[4, 3]
[1, 4]
[1, 3, 4]
Previous Question