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
The condition in the if statement should be in the form of
if स्टेटमेंट में शर्त इस प्रकार होनी चाहिए
Arithmetic or Relational expression
Arithmetic or Logical expression
Relational or Logical expression
Arithmetic
Next Question
25
See Explanation !
2
What will following code segment print? a=True b=False c=False if not a or b: print(1) elif not a or not b and c: print(2) elif not a or b or not b and a: print(3) else: print(4)
निम्नलिखित कोड सेगमेंट प्रिंट क्या होगा? a=True b=False c=False if not a or b: print(1) elif not a or not b and c: print(2) elif not a or b या not b और a: print(3) else: print(4)
1
3
2
4
Previous Question
Next Question
25
See Explanation !
3
Which of the following is equivalent to random.randint(3, 6)?
निम्नलिखित में से कौन सा random.randint(3, 6) के बराबर है?
random.choice([3, 6])
random.randrange(3, 6)
3 + random.randrange(3)
3 + random.randrange(4)
Previous Question
Next Question
25
See Explanation !
4
What will be the output of the following Python code snippet? a={1:"A",2:"B",3:"C"} for i,j in a.items(): print(i,j,end=" ")
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} for i,j in a.items(): print(i,j,end=" ")
1 A 2 B 3 C
1 2 3
A B C
1:”A” 2:”B” 3:”C”
Previous Question
Next Question
25
See Explanation !
5
Hierarchy in a pseudo-code can be shown by:
सूड़ो-कोड में पदानुक्रम को द्वारा दिखाया जा सकता है|
Curly Braces
Round Brackets
Indentation
Semicolon
Previous Question
Next Question
25
See Explanation !
6
Suppose listExample is [‘h’,’e’,’l’,’l’,’o’], what is len(listExample)?
मान लीजिए listExample [' h ',’e ',’ l ', ’l ',’ o '] है, len(listExample) क्या है?
5
4
None
Error
Previous Question
Next Question
25
See Explanation !
7
What is the output of following code ? a = np.array([[1,2,3],[4,5,6]]) print(a.shape)
निम्नलिखित कोड का परिणाम क्या है? a = np.array([[1,2,3],[4,5,6]]) print(a.shape)
(2,3)
(3,2)
(1,1)
none of these
Previous Question
Next Question
25
See Explanation !
8
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 !
9
To give a default separator with print() argument is used.
Print() तर्क के साथ एक डिफ़ॉल्ट विभाजक देने के लिए उपयोग किया जाता है।
sep
separator
end
tab
Previous Question
Next Question
25
See Explanation !
10
lstrip() method is used for :
lstrip () फंक्शन का उपयोग इसके लिए किया जाता है:
delete all the trailing whitespace characters
delete all the leading whitespace characters
delete all the leading and trailing whitespace characters
delete upper case characters
Previous Question
Next Question
25
See Explanation !
11
Connectors used to connect flowchart symbols to each other are classified as.
फ्लोचार्ट प्रतीकों को एक दूसरे से जोड़ने के लिए उपयोग किए जाने वाले कनेक्टरों को इस प्रकार वर्गीकृत किया जाता है।
Arrow lines.
Symbols
Annotation
Special symbols
Previous Question
Next Question
25
See Explanation !
12
What is the output of the following code ? def fun(a, b=6): a=a+b print(a) fun(5, 4)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
11
9
5
4
Previous Question
Next Question
25
See Explanation !
13
What will be the output of following statement ? >>>"m"+"n1"
निम्नलिखित कोड का परिणाम क्या है ? >>>"m"+"n1"
'm+nl'
'mn1'
'm n1'
'm'
Previous Question
Next Question
25
See Explanation !
14
What will be the output of the following Python code? x = ['ab', 'cd'] for i in x: x.append(i.upper()) print(x)
X: x.append (i.upper ()) print(x) में i के लिए निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = [' ab ', 'cd ']
[‘AB’, ‘CD’]
[‘ab’, ‘cd’, ‘AB’, ‘CD’]
[‘ab’, ‘cd’]
Infinite Loop
Previous Question
Next Question
25
See Explanation !
15
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 !
16
Which statement will move file pointer 10 bytes backward from current position.
कौन सा स्टेटमेंट फाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट पीछे ले जाएगा ।
f.seek(-10, 0)
f.seek(10,0)
f.seek(-10, 1)
None of the above
Previous Question
Next Question
25
See Explanation !
17
Which of the following data types is not supported in python?
पायथन में निम्नलिखित में से कौन सा डेटा प्रकार समर्थित नहीं है?
Number
String
List
Slice
Previous Question
Next Question
25
See Explanation !
18
Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं से निपटते समय पायथन केस संवेदनशील होता है?
yes
no
machine dependent
none of the mentioned
Previous Question
Next Question
25
See Explanation !
19
Each line of a text file is terminated by a special character, called the ___
टेक्स्ट फाइल की प्रत्येक पंक्ति को एक विशेष कैरेक्टर द्वारा समाप्त किया जाता है, जिसे ____ कहा जाता है।
End of File
End of Line
End of Statement
End of program
Previous Question
Next Question
25
See Explanation !
20
Which one the following is a mutable data type ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
set
tuple
string
None of These
Previous Question
Next Question
25
See Explanation !
21
What will be the output of the following Python expression? print(round(4.576))
निम्नलिखित पायथन एक्सप्रेशन का आउटपुट क्या होगा? print(round(4.576))
4.5
5
4
4.6
Previous Question
Next Question
25
See Explanation !
22
What is the Full form of EOL?
EOL का फुल फॉर्म क्या है?
End of List
End of Line
End of Loop
End of Language
Previous Question
Next Question
25
See Explanation !
23
Which function is used to generate a sequence of numbers in Python loops?
पायथन लूप्स में नंबर्स का सीक्वेंस जनरेट करने के लिए किस फ़ंक्शन का यूज़ किया जाता है?
sequence()
range()
list()
loop()
Previous Question
Next Question
25
See Explanation !
24
The structure having keys and values is called _____ .
चाबियाँ और मानों वाली संरचना को _____ कहा जाता है।
List
Dictionary
Tuple
None of these
Previous Question
Next Question
25
See Explanation !
25
Dictionary has:
शब्दकोश में है:
Sequence value pair
Key value pair
Tuple value pair
Record value pair
Previous Question