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 return by math.trunc() function in python
पायथन में Math.trunc() फ़ंक्शन द्वारा क्या लौटाया जाएगा
The truncated decimal part of a number
The rounded integer value of a number.
The truncated integer value of a number.
The floor (largest integer less than or equal to the number).
Next Question
25
See Explanation !
2
What is the output of the following statement ? print ((2, 4) + (1, 5))
निम्नलिखित कोड का परिणाम क्या है ? print ((2, 4) + (1, 5))
(2 , 4), (4 , 5)
(3 , 9)
(2, 4, 1, 5)
Invalid Syntax
Previous Question
Next Question
25
See Explanation !
3
What will be the output of the following Python code? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={5,6,7,8} b={7,8,9,10} print(len(a+b))
8
Error, unsupported operand ‘+’ for sets
6
Nothing is displayed
Previous Question
Next Question
25
See Explanation !
4
What will the following code output? print(‘re\new’)
निम्नलिखित कोड आउटपुट क्या होगा? print(' re\new ')
re\new
new
re new
re ew
Previous Question
Next Question
25
See Explanation !
5
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 !
6
The method used to removes all the items at once.
सभी आइटम को एक साथ हटाने के लिए इस्तेमाल किया जाने वाला तरीका।
remove ()
clear()
removelist ()
None of these
Previous Question
Next Question
25
See Explanation !
7
Which of these is not true about recursion?
इनमें से कौन सा रिकर्शन के बारे में सच नहीं है?
Making the code look clean
A complex task can be broken into sub-problems
Recursive calls take up less memory
Sequence generation is easier than a nested iteration
Previous Question
Next Question
25
See Explanation !
8
Which of the following function of dictionary gets all the keys from the dictionary
निम्नलिखित में से डिक्शनरी का कौन सा फ़ंक्शन डिक्शनरी से सभी की निकालने के लिए किया जाता है
getkeys()
key()
keys()
none of the mentioned
Previous Question
Next Question
25
See Explanation !
9
Choose the correct function declaration of fun1() so that we can execute the following two function calls successfully. fun1(25, 75, 55) fun1(10, 20)
fun1() का सही फ़ंक्शन घोषणापत्र चुनें ताकि हम निम्नलिखित दो फ़ंक्शन कॉल सफलतापूर्वक निष्पादित कर सकें fun1(25, 75, 55) fun1(10, 20)
def fun1(**kwargs)
def fun1(args*)
No, it is not possible in Python
def fun1(*data)
Previous Question
Next Question
25
See Explanation !
10
What will be the output of the following expression ? x =4 print(x<<2)
निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा? x =4 print(x<<2)
4
16
6
2
Previous Question
Next Question
25
See Explanation !
11
What is identifier ?
पहचानकर्ता क्या है?
User-defined name
Pre-defined name
Both of the above
None of the above
Previous Question
Next Question
25
See Explanation !
12
What is range() Funciton ?
range() Funciton क्या है?
generates a list of numbers, to iterate over with for loops
immediate exit from the innermost loop structure.
returned an iterator a sequence object.
Arranging numbers whether in ascending or descending order.
Previous Question
Next Question
25
See Explanation !
13
Which of the following variable declaration is incorrect?
निम्नलिखित में से कौन सा वेरिएबल डिक्लेरेशन गलत है?
a_=3
_a=3
a?=3
All of these
Previous Question
Next Question
25
See Explanation !
14
What is the output of the following code ? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([[1,2,3]]) print(a.shape)
(2,3)
(3,1)
(1,3)
None of These
Previous Question
Next Question
25
See Explanation !
15
What will be the output of the following Python code? matrix = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? मैट्रिक्स = [[1, 2, 3, 4], [4, 5, 6, 7], [8, 9, 10, 11], [12, 13, 14, 15]] for i in range(0, 4): print(matrix[i][1], end = " ")
1 2 3 4
4 5 6 7
1 3 8 12
2 5 9 13
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following Python code? names = ['Amir', 'Bear', 'Charlton', 'Daman'] print(names[-1][-1])
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? NAMES = [' अमीर ', 'भालू ',' चार्ल्टन ', 'दमन '] PRINT(NAMES [-1] [-1])
A
Daman
Error
n
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code snippet? print('xyyxyyxyxyxxy'.replace('xy', '12', 100))
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? print(' xyyyxyxyxxy '.replace (' xy ', '12 ', 100))
xyyxyyxyxyxxy
12y12y1212x12
none of the mentioned
error
Previous Question
Next Question
25
See Explanation !
18
What will be the output of the following? print(sum(1,2,3))
निम्नलिखित कोड का परिणाम क्या है ? print(sum(1,2,3))
error
6
1
3
Previous Question
Next Question
25
See Explanation !
19
PVM is often called
PVM को अक्सर कहा जाता है
Python Interpreter.
Python compiler
Python Volatile machine
Portable virtual machine
Previous Question
Next Question
25
See Explanation !
20
Dictionary has:
शब्दकोश में है:
Sequence value pair
Key value pair
Tuple value pair
Record value pair
Previous Question
Next Question
25
See Explanation !
21
Which statement is correct
कौन सा कथन सही है
List is mutable & Tuple is immutable
List is immutable & Tuple is mutable
Both List and Tuple are Mutable
Both List and Tuple are Immutable
Previous Question
Next Question
25
See Explanation !
22
What will be the output of the following Python code? print('1Rn@'.lower())
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? print('1Rn@'.lower())
n
1rn@
m
r
Previous Question
Next Question
25
See Explanation !
23
Which can not be a variable in python
जो अजगर में एक चर नहीं हो सकता है
_py_
var
_var
try
Previous Question
Next Question
25
See Explanation !
24
What keyword is used in Python to raise exceptions?
एक्सेप्शन उत्पन्न करने के लिए पायथन में किस कीवर्ड का उपयोग किया जाता है?
raise
goto
try
except
Previous Question
Next Question
25
See Explanation !
25
What will be the output of the following Python code? from math import pow print(math.pow(2,3))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? from math import pow print(math.pow(2,3))
Nothing is printed
8
Error, method pow doesn’t exist in math module
Error, the statement should be: print(pow(2,3))
Previous Question