NEW
Font size
WorksheetsM3 R5 ( Chapter 3)
Total questions: 50
Worksheet time: 25mins
Python को "High-Level Language" क्यों माना जाता है?
क्योंकि यह मशीन कोड में लिखा जाता है
क्योंकि यह इंसानों द्वारा समझी जाने वाली सिंटैक्स में लिखा जाता है
क्योंकि यह केवल हार्डवेयर के लिए लिखा गया है
इनमें से कोई नहीं
Python किस तरह की भाषा है?
Compiled
Interpreted
Low-level
Machine-level
Python का मुख्य तकनीकी लाभ क्या है?
आसान सिंटैक्स
तेज गति
सीमित उपयोग
भारी हार्डवेयर की आवश्यकता
Python में कौन-सा फीचर नहीं है?
Dynamic Typing
Automatic Memory Management
Multi-threading Support
Pointer Arithmetic
Python का मुख्य नुकसान क्या है?
अधिक जटिलता
धीमी गति
बिना लाइब्रेरी के उपयोग
इनमें से कोई नहीं
Python को किस प्रकार के एप्लिकेशन में सीमित उपयोग किया जाता है?
Web Development
Mobile Development
Data Science
Machine Learning
Python का पहला संस्करण कब जारी हुआ था?
1989
1991
1995
2000
Python 3.x और Python 2.x में मुख्य अंतर क्या है?
Python 3.x में print एक फ़ंक्शन है
Python 2.x तेज़ है
Python 3.x में pointers हैं
इनमें से कोई नहीं
Python को इंस्टॉल करने के लिए कौन-सा टूल उपयोग किया जाता है?
pip
apt-get
.exe Installer
उपरोक्त सभी
Python के Virtual Environment को स्थापित करने के लिए कौन सा कमांड उपयोग होता है?
pythonenv
virtualenv
pipenv
venv
Python Interpreter का कार्य क्या है?
Source Code को Compiled Code में बदलना
Source Code को Directly Execute करना
Hardware को Control करना
इनमें से कोई नहीं
कौन-सा Python Interpreter उपलब्ध नहीं है?
CPython
PyPy
Jython
RPython
Python प्रोग्राम शुरू करने के लिए कौन-सी एक्सटेंशन उपयोग होती है?
.java
.py
.cpp
.txt
Python प्रोग्राम को चलाने के लिए कौन-सा कमांड उपयोग होता है?
run
python
execute
interpret
Python में Variable को कैसे Declare किया जाता है?
data-type variable-name
variable-name = value
int variable-name
char variable-name
कौन-सा Python में Variable नाम के लिए सही नहीं है?
_name
name1
1name
name_variable
Python में 'literal' का क्या अर्थ है?
Variable का नाम
Fixed Value
Data Type
Operator
Python में 'if', 'else', 'while' क्या हैं?
Literals
Identifiers
Keywords
Operators
3.14 किस प्रकार का डेटा है?
Integer
Float
Complex
Boolean
Python में Complex Number का Representation क्या है?
2+j3
2+3j
j2+3
उपरोक्त सभी
bool(0) का आउटपुट क्या होगा?
True
False
Error
None
निम्न में से कौन-सा मान Python में True माना जाता है?
[]
None
1
False
5 > 3 जैसी तुलना ऑपरेशन का आउटपुट किस प्रकार का होता है?
int
float
bool
str
Python के सेट की कौन-सी विशेषता है?
Ordered
Duplicates allowed
Mutable
Immutable
What is the output of the following code?
python
Copy code
s = {1, 2, 3, 1} print(len(s))
4
3
2
Error
सेट में कोई एलिमेंट जोड़ने के लिए कौन-सा method उपयोग किया जाता है?
append()
insert()
add()
extend()
निम्न में से कौन Python में एक स्ट्रिंग बनाता है?
"hello"
'world'
"""Python"""
All of the above
What is the output of the following code?
python
Copy code
print("Python"[::-1])
Python
nohtyP
Error
None
निम्न में से कौन-सा प्रकार Python में अपरिवर्तनीय है?
List
Set
String
Dictionary
स्ट्रिंग s = "abcdef" के लिए s[1:4] का आउटपुट क्या होगा?
bcd
abc
cde
Error
निम्न में से कौन-सा slicing ऑपरेशन स्ट्रिंग s के आखिरी तीन अक्षरों को निकालेगा?
s[:3]
s[-3:]
s[3:]
s[-1:]
अगर slicing में रेंज से बाहर का इंडेक्स उपयोग करें तो क्या होगा?
Error
IndexError
Empty string
None
What is the result of 'Hello' + ' World'?
HelloWorld
Hello World
Error
None
Python में स्ट्रिंग को जोड़ने के लिए कौन-सा ऑपरेटर उपयोग किया जाता है?
*
+
-
&
What will be the output of 'Python' * 2?
PythonPython
Python2
Error
None
What does the following code do?
python
Copy code
print("Hello, World!")
Prints Hello, World!
Error
Nothing
None
Python में इंडेंटेशन का उपयोग कैसे किया जाता है?
To define blocks of code
To align text
No use
For decoration
What is the output of the following code?
python
Copy code
x = 5 y = 10 print(x + y)
15
510
Error
None
Python में कंसोल से इनपुट लेने के लिए कौन-सा फ़ंक्शन उपयोग किया जाता है?
input()
read()
scan()
get()
Python में input() द्वारा लौटाए गए मान का प्रकार क्या होता है?
int
float
str
None
इनपुट स्ट्रिंग को integer में कैसे बदला जा सकता है?
int(input())
float(input())
str(input())
None
What will be the output of the following code?
python
Copy code
s = input("Enter a string: ") print(s[1:4])
abc
bcd
cde
Error
उपयोगकर्ता द्वारा दर्ज की गई स्ट्रिंग को उल्टा करने के लिए कौन-सा कोड सही है?
input()[::-1]
input().reverse()
reversed(input())
None of the above
What will be the output of the following code?
python
Copy code
s = input("Enter a string: ") print(bool(s))
True
False
None
Error
निम्न में से कौन-सा Python में False के बराबर है?
Empty string ""
Non-zero integer
Non-empty string
All of the above
What will the following code output if the user inputs "Python"?
python
Copy code
s = input("Enter a string: ") print(s + " Programming")
PythonProgramming
Python Programming
Error
None
Python में उपयोगकर्ता द्वारा दर्ज दो इनपुट्स को कैसे जोड़ा जा सकता है?
input1 + input2
f"{input1} {input2}"
input1 + " " + input2
All of the above
What will be the output of the following code?
python
Copy code
s = set("hello") print(s)
{'hello'}
{'h', 'e', 'l', 'o'}
{'o', 'l', 'h', 'e'}
Error
निम्न में से कौन-सा कोड स्ट्रिंग से डुप्लिकेट्स हटा देता है?
set("string")
"".join(set("string"))
Both A and B
None
What will the following code output?
python
Copy code
x = bool(input("Enter something: "))
if x: print("You entered something!")
else: print("You entered nothing!")
You entered something!
You entered nothing!
Error
None
