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
New!
CSS
New!
Javascript
New!
Python
New!
Log in
Sign Up
O Level Papers!
M3 R5: Programming and Problem Solving through Python
Data Structures in Python
Set 8
25
See Explanation !
1
If wd="Hello World" then which of the following statements will display last five characters of the string object?
यदि wd="Hello World" है तो निम्नलिखित में से कौन सा कथन स्ट्रिंग ऑब्जेक्ट के अंतिम पाँच अक्षर प्रदर्शित करेगा?
wd[4:]
wd[:4]
wd[-5:]
wd[:-4]
Next Question
25
See Explanation !
2
What is the output of the following code? dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
निम्नलिखित कोड का परिणाम क्या है? dict={"Joey":1, "Rachel":2} dict.update({"Phoebe":2}) print(dict)
{'Joey': 1, 'Rachel': 2, 'Phoebe': 2}
{“Joey”:1,”Rachel”:}
{“Joey”:1,”Phoebe”:2}
Error
Previous Question
Next Question
25
See Explanation !
3
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 !
4
What is the output of the following code? a = set('dcma') b = set('mlpc') print(a^b)
निम्नलिखित कोड का परिणाम क्या है? a = set('dcma') b = set('mlpc') print(a^b)
{‘d’, ‘c’, ‘m’, ‘l’, ‘p’, ‘c’}
{‘m’, ‘l’, ‘p’, ‘c’}
{‘d’, ‘c’, ‘m’, ‘a’}
None of These
Previous Question
Next Question
25
See Explanation !
5
In which of the following data type, duplicate items are not allowed ?
निम्नलिखित में से किस डेटा प्रकार में डुप्लीकेट आइटम की अनुमति नहीं है?
List
Dictionary
Set
None of the Above
Previous Question
Next Question
25
See Explanation !
6
Suppose a list with name arr, contains 5 elements. You can get the 2nd element from the list using :
मान लीजिए arr नाम वाली एक सूची में 5 तत्व हैं। आप सूची से दूसरा तत्व प्राप्त कर सकते हैं:
arr[-2]
arr[2]
arr[-1]
arr[1]
Previous Question
Next Question
25
See Explanation !
7
What will be the output of the following ? print((range(4)))
निम्नलिखित कोड का परिणाम क्या है? print((range(4)))
0,1,2,3
[0,1,2,3]
range(0, 4)
(0,1,2,3)
Previous Question
Next Question
25
See Explanation !
8
How can we create an empty list in Python ?
हम पायथन में एक खाली लिस्ट कैसे बना सकते हैं?
list=()
list.null
null.list
list=[]
Previous Question
Next Question
25
See Explanation !
9
What does the following code print ? x = 'mohan' for i in range (len(x)): x[i].upper() print (x)
निम्नलिखित कोड क्या प्रिंट करता है? x = 'mohan' for i in range (len(x)): x[i].upper() print (x)
mohan
MOHAN
Error
None of These
Previous Question
Next Question
25
See Explanation !
10
Which one the following is a mutable data type ?
निम्नलिखित में से कौन सा एक परिवर्तनशील डेटा प्रकार है?
set
tuple
string
None of These
Previous Question
Next Question
25
See Explanation !
11
What is the output of the following code ? ms = ('A','D', 'H','U','N','I','C') print(ms[1:4])
निम्नलिखित कोड का परिणाम क्या है ? ms = ('A','D', 'H','U','N','I','C') print(ms[1:4])
(‘D’, ‘H’, ‘U’)
(‘A’, ‘D’, ‘H’,’U’,’N’,’I’,’C’)
(‘D’,’H’,’U’,’N’,’I’,’C’)
(‘D’,’H’,’U’,’N’,’I’,’C’)
Previous Question
Next Question
25
See Explanation !
12
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 !
13
What is the output of the following code? a = {1:"A", 2: "B", 3: "C"} b = {4: "D", 5: "E"} a.update(b) print(a)
निम्नलिखित कोड का परिणाम क्या है ? a = {1:"A", 2: "B", 3: "C"} b = {4: "D", 5: "E"} a.update(b) print(a)
{1:’A’, 2: ‘B’,3: ‘C’}
{1: ‘A’, 2: ‘b’, 3: ‘c’, 4: ‘D’, 5: ‘E’}
Error
{4: ‘D’, 5: ‘E’}
Previous Question
Next Question
25
See Explanation !
14
What is the output of >>>’2’ +’3’
>>>'2' +'3' का आउटपुट क्या है
23
'2+3'
'23'
None of These
Previous Question
Next Question
25
See Explanation !
15
Assume q= [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1) ?
मान लीजिए q= [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची में क्या आइटम होंगे?
[3, 4, 5, 20, 5, 25, 1, 3]
[1, 3, 3, 4, 5, 5, 20, 25]
[3, 5, 20, 5, 25, 1, 3]
[1, 3, 4, 5, 20, 5, 25]
Previous Question
Next Question
25
See Explanation !
16
What will be the output of the following expression? a = 2 b = 8 print(a|b ) print(a >> 1)
निम्नलिखित कोड का परिणाम क्या है ? a = 2 b = 8 print(a|b ) print(a >> 1)
10 0
10 2
2 2
10 1
Previous Question
Next Question
25
See Explanation !
17
what is the output of the following code? M=['b' *x for x in range(4)] print(M)
निम्नलिखित कोड का परिणाम क्या है ? M=['b' *x for x in range(4)] print(M)
['', 'b', 'bb', 'bbb']
['b,'bb', "bbb', "bbbb']
['b','bb', bbb']
none of these
Previous Question
Next Question
25
See Explanation !
18
What is the output of the following? print(max([1, 2, 3, 4.] [4, 5, 6], [7]))
निम्नलिखित कोड का परिणाम क्या है ? print(max([1, 2, 3, 4.] [4, 5, 6], [7]))
[4,5, 6]
[7]
[1, 2,3, 4]
7
Previous Question
Next Question
25
See Explanation !
19
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 !
20
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, 4]
[1,3, 4]
[4,3]
[1,3]
Previous Question
Next Question
25
See Explanation !
21
When we open file in append mode the file pointer is at the of the file?
जब हम फाइल को एपेंड मोड में खोलते हैं तो फाइल पॉइंटर फाइल के ____ पर होता है?
anywhere in between the file
End
beginning
second line of the file
Previous Question
Next Question
25
See Explanation !
22
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 !
23
Which one of the following is inmmutable data type?
निम्नलिखित में से कौन सा अपरिवर्तनीय डेटा प्रकार है?
list
set
tuple
dict
Previous Question
Next Question
25
See Explanation !
24
What will be the output of the following Python code? tuple1=(5,1,7,6,2) tuple1.pop(2) print(tuple1)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? tuple1=(5,1,7,6,2) tuple1.pop(2) print(tuple1)
(5,1,6,2)
(5,1,7,6)
(5,1,7,6,2)
Error
Previous Question
Next Question
25
See Explanation !
25
Which function is used to add an element (5) in the list1?
लिस्ट 1 में एक एलिमेंट (5 ) जोड़ने के लिए किस फंक्शन का प्रयोग किया जाता है ?
list1.sum(5)
list1.add(5)
listl.append(5)
list1.addelement(5)
Previous Question