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
Set
25
See Explanation !
1
What will be the output of the following Python code? x = 'abcd' for i in x: print(i) x.upper()
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? x = x में i के लिए 'abcd ': print(i) x.upper ()
a B C D
a b c d
A B C D
error
Next Question
25
See Explanation !
2
Which of the following functions can be used to find the coordinated universal time, assuming that the datetime module has already been imported?
निम्नलिखित कार्यों में से किसको कोआर्डिनेट यूनिवर्सल समय का पता लगाने के लिए यूज़ किया जा सकता है, यह मानते हुए कि डेटाइम मॉड्यूल पहले ही इम्पोर्ट किया जा चुका है?
datetime.utc()
datetime.datetime.utc()
datetime.utcnow()
datetime.datetime.utcnow()
Previous Question
Next Question
25
See Explanation !
3
Choose the correct option with respect to Python..
पायथन के संबंध में सही विकल्प चुनें..
In Python, a tuple can contain only integers as its elements.
In Python, a tuple can contain only strings as its elements.
In Python, a tuple can contain both integers and strings as its elements.
In Python, a tuple can contain either string or integer but not both at a time.
Previous Question
Next Question
25
See Explanation !
4
Which of the following statement will be true.
निम्नलिखित में से कौन सा कथन सत्य होगा।
Python allows you to assign a single value to multiple variables simultaneously.
You can assign multiple values to multiple variables by separating variables and values with commas.
You can assign the same value to multiple variables by using = consecutively..
All of the above
Previous Question
Next Question
25
See Explanation !
5
What is the output of this code? def calc(x): r=2*x**2 return r print(calc(5))
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def calc(x): r=2*x**2 return r print(calc(5))
Error
50
100
20
Previous Question
Next Question
25
See Explanation !
6
Converts a list into tuple.
किसी लिस्ट को टपल में बदल देता है।
Tuples (seq)
list(seq)
dict (seq)
None
Previous Question
Next Question
25
See Explanation !
7
If list1=[10,20,30], then operation list1*2 returns ____ .
यदि list1=[10,20,30], तो ऑपरेशन list1*2 ____ लौटाता है।
[10,20,30,10,20,30]
[20,40,60]
[10,20,30,20,40,60]
None
Previous Question
Next Question
25
See Explanation !
8
The data type whose representation is unknown are called
जिस डेटा प्रकार का प्रतिनिधित्व अज्ञात है उसे कहा जाता है
Built in datatype
Derived datatype
Concrete datatype
Abstract datatype
Previous Question
Next Question
25
See Explanation !
9
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 !
10
n the Python statement x =a + 5 - b : a + 5 - b is
n पायथन कथन x =a 5 - b : a 5 - b है
Operands
Expression
operators
Equation
Previous Question
Next Question
25
See Explanation !
11
Which module in python can be used for working with network socket?
पायथन में किस मॉड्यूल का उपयोग नेटवर्क सॉकेट के साथ काम करने के लिए किया जा सकता है?
HTTP
urllib
socket
header
Previous Question
Next Question
25
See Explanation !
12
Which of the following cannot be a variable?
निम्नलिखित में से कौन एक चर नहीं हो सकता है?
__init__
in
it
on
Previous Question
Next Question
25
See Explanation !
13
What will be the output of the following Python code? a={1:"A",2:"B",3:"C"} a.clear() print(a)
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? a={1:"A",2:"B",3:"C"} a.clear() print(a)
None
{ None:None, None:None, None:None}
{1:None, 2:None, 3:None}
{ }
Previous Question
Next Question
25
See Explanation !
14
Who developed Python?
पायथन किसने विकसित किया?
James Gosling
Guido van Rossum
Dennis Ritchie
Bjarne Stroustrup
Previous Question
Next Question
25
See Explanation !
15
A detailed flowchart is known as:
एक विस्तृत फ़्लोचार्ट के रूप में जाना जाता है:
Micro
Union
Macro
Stack
Previous Question
Next Question
25
See Explanation !
16
What type of data is : arr=[(1,1),(2,2),(3,3)]?
किस प्रकार का डेटा है : arr=[(1,1),(2,2),(3,3)]?
List of tuple
Tuple of List
Array of Tuples
Invalid Type
Previous Question
Next Question
25
See Explanation !
17
What will be the output of the following Python code? def m(list): v = list[0] for e in list: if v < e: v = e return v values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values: print(m(row), end = " ")
निम्नलिखित पायथन कोड का आउटपुट क्या होगा? def m(list): v = list[0] for e in list: if v < e: v = e return v values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values: print(m(row), end = " ")
3 33
1 1
5 6
5 33
Previous Question
Next Question
25
See Explanation !
18
Which of the following is a feature of DocString?
डॉकस्ट्रिंग की निम्नलिखित में से कौन सी विशेषता है?
Provide a convenient way of associating documentation with Python modules, functions, classes, and methods.
All functions should have a docstring.
Docstrings can be accessed by the ___doc_attribute on objects.
All of the mentioned.
Previous Question
Next Question
25
See Explanation !
19
How can you import NumPy in a Python script?
आप Python स्क्रिप्ट में NumPy को कैसे इम्पोर्ट कर सकते हैं?
import numpy
import np
from math import numpy
import numPy as np
Previous Question
Next Question
25
See Explanation !
20
What will the following code output? print(chr(98))
निम्नलिखित कोड आउटपुट क्या होगा? print(chr(98))
a
b
A
B
Previous Question
Next Question
25
See Explanation !
21
What is the output of the following? n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')
निम्नलिखित का आउटपुट क्या है? n=5 while n>0: n-=1 if n==2: continue print(n,end=' ')
5 4 3 1 0
4 3 1 0
4 3 2
none of these
Previous Question
Next Question
25
See Explanation !
22
What will be output for the following code? import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,3,4,2,1]) c = a + b c = c*a print (c[2])
निम्नलिखित कोड का आउटपुट क्या होगा? import numpy as np a = np.array([1,2,3,5,8]) b = np.array([0,3,4,2,1]) c = a + b c = c*a print (c[2])
18
20
21
22
Previous Question
Next Question
25
See Explanation !
23
Data Items having fixed value are called ______
निश्चित मूल्य वाले डेटा आइटम को ______ कहा जाता है।
Identifiers
Functions
keywords
Literals
Previous Question
Next Question
25
See Explanation !
24
Which of the following precedence order is correct in Python?
पायथन में निम्नलिखित में से कौन सा वरीयता क्रम सही है?
Parentheses, Exponential,Multiplication, Division, Addition, Subtraction
Multiplication, Division, Addition, Subtraction, Parentheses, Exponential
Division, Multiplication, Addition, Subtraction, Parentheses, Exponential
Exponential,Parentheses,Multiplication, Division, Addition, Subtraction
Previous Question
Next Question
25
See Explanation !
25
The data structure which is a mutable ordered sequence of elements is called
डेटा संरचना जो तत्वों का एक परिवर्तनशील क्रमबद्ध अनुक्रम है, कहलाती है
Built in
List
Tuple
Derived data
Previous Question