wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

M3 R5 ( Chapter 3)

Total questions: 50

Worksheet time: 25mins

Name
Class
Date
1.

Python को "High-Level Language" क्यों माना जाता है?

a)

क्योंकि यह मशीन कोड में लिखा जाता है

b)

क्योंकि यह इंसानों द्वारा समझी जाने वाली सिंटैक्स में लिखा जाता है

c)

क्योंकि यह केवल हार्डवेयर के लिए लिखा गया है

d)

इनमें से कोई नहीं

2.

Python किस तरह की भाषा है?

a)

Compiled

b)

Interpreted

c)

Low-level

d)

Machine-level

3.

Python का मुख्य तकनीकी लाभ क्या है?

a)

आसान सिंटैक्स

b)

तेज गति

c)

सीमित उपयोग

d)

भारी हार्डवेयर की आवश्यकता

4.

Python में कौन-सा फीचर नहीं है?

a)

Dynamic Typing

b)

Automatic Memory Management

c)

Multi-threading Support

d)

Pointer Arithmetic

5.

Python का मुख्य नुकसान क्या है?

a)

अधिक जटिलता

b)

धीमी गति

c)

बिना लाइब्रेरी के उपयोग

d)

इनमें से कोई नहीं

6.

Python को किस प्रकार के एप्लिकेशन में सीमित उपयोग किया जाता है?

a)

Web Development

b)

Mobile Development

c)

Data Science

d)

Machine Learning

7.

Python का पहला संस्करण कब जारी हुआ था?

a)

1989

b)

1991

c)

1995

d)

2000

8.

Python 3.x और Python 2.x में मुख्य अंतर क्या है?

a)

Python 3.x में print एक फ़ंक्शन है

b)

Python 2.x तेज़ है

c)

Python 3.x में pointers हैं

d)

इनमें से कोई नहीं

9.

Python को इंस्टॉल करने के लिए कौन-सा टूल उपयोग किया जाता है?

a)

pip

b)

apt-get

c)

.exe Installer

d)

उपरोक्त सभी

10.

Python के Virtual Environment को स्थापित करने के लिए कौन सा कमांड उपयोग होता है?

a)

pythonenv

b)

virtualenv

c)

pipenv

d)

venv

11.

Python Interpreter का कार्य क्या है?

a)

Source Code को Compiled Code में बदलना

b)

Source Code को Directly Execute करना

c)

Hardware को Control करना

d)

इनमें से कोई नहीं

12.

कौन-सा Python Interpreter उपलब्ध नहीं है?

a)

CPython

b)

PyPy

c)

Jython

d)

RPython

13.

Python प्रोग्राम शुरू करने के लिए कौन-सी एक्सटेंशन उपयोग होती है?

a)

.java

b)

.py

c)

.cpp

d)

.txt

14.

Python प्रोग्राम को चलाने के लिए कौन-सा कमांड उपयोग होता है?

a)

run

b)

python

c)

execute

d)

interpret

15.

Python में Variable को कैसे Declare किया जाता है?

a)

data-type variable-name

b)

variable-name = value

c)

int variable-name

d)

char variable-name

16.

कौन-सा Python में Variable नाम के लिए सही नहीं है?

a)

_name

b)

name1

c)

1name

d)

name_variable

17.

Python में 'literal' का क्या अर्थ है?

a)

Variable का नाम

b)

Fixed Value

c)

Data Type

d)

Operator

18.

Python में 'if', 'else', 'while' क्या हैं?

a)

Literals

b)

Identifiers

c)

Keywords

d)

Operators

19.

3.14 किस प्रकार का डेटा है?

a)

Integer

b)

Float

c)

Complex

d)

Boolean

20.

Python में Complex Number का Representation क्या है?

a)

2+j3

b)

2+3j

c)

j2+3

d)

उपरोक्त सभी

21.

bool(0) का आउटपुट क्या होगा?

a)

True

b)

False

c)

Error

d)

None

22.

निम्न में से कौन-सा मान Python में True माना जाता है?

a)

[]

b)

None

c)

1

d)

False

23.

5 > 3 जैसी तुलना ऑपरेशन का आउटपुट किस प्रकार का होता है?

a)

int

b)

float

c)

bool

d)

str

24.

Python के सेट की कौन-सी विशेषता है?

a)

Ordered

b)

Duplicates allowed

c)

Mutable

d)

Immutable

25.

What is the output of the following code?

python

Copy code

s = {1, 2, 3, 1} print(len(s))

a)

4

b)

3

c)

2

d)

Error

26.

सेट में कोई एलिमेंट जोड़ने के लिए कौन-सा method उपयोग किया जाता है?

a)

append()

b)

insert()

c)

add()

d)

extend()

27.

निम्न में से कौन Python में एक स्ट्रिंग बनाता है?

a)

"hello"

b)

'world'

c)

"""Python"""

d)

All of the above

28.

What is the output of the following code?

python

Copy code

print("Python"[::-1])

a)

Python

b)

nohtyP

c)

Error

d)

None

29.

निम्न में से कौन-सा प्रकार Python में अपरिवर्तनीय है?

a)

List

b)

Set

c)

String

d)

Dictionary

30.

स्ट्रिंग s = "abcdef" के लिए s[1:4] का आउटपुट क्या होगा?

a)

bcd

b)

abc

c)

cde

d)

Error

31.

निम्न में से कौन-सा slicing ऑपरेशन स्ट्रिंग s के आखिरी तीन अक्षरों को निकालेगा?

a)

s[:3]

b)

s[-3:]

c)

s[3:]

d)

s[-1:]

32.

अगर slicing में रेंज से बाहर का इंडेक्स उपयोग करें तो क्या होगा?

a)

Error

b)

IndexError

c)

Empty string

d)

None

33.

What is the result of 'Hello' + ' World'?

a)

HelloWorld

b)

Hello World

c)

Error

d)

None

34.

Python में स्ट्रिंग को जोड़ने के लिए कौन-सा ऑपरेटर उपयोग किया जाता है?

a)

*

b)

+

c)

-

d)

&

35.

What will be the output of 'Python' * 2?

a)

PythonPython

b)

Python2

c)

Error

d)

None

36.

What does the following code do?

python

Copy code

print("Hello, World!")

a)

Prints Hello, World!

b)

Error

c)

Nothing

d)

None

37.

Python में इंडेंटेशन का उपयोग कैसे किया जाता है?

a)

To define blocks of code

b)

To align text

c)

No use

d)

For decoration

38.

What is the output of the following code?

python

Copy code

x = 5 y = 10 print(x + y)

a)

15

b)

510

c)

Error

d)

None

39.

Python में कंसोल से इनपुट लेने के लिए कौन-सा फ़ंक्शन उपयोग किया जाता है?

a)

input()

b)

read()

c)

scan()

d)

get()

40.

Python में input() द्वारा लौटाए गए मान का प्रकार क्या होता है?

a)

int

b)

float

c)

str

d)

None

41.

इनपुट स्ट्रिंग को integer में कैसे बदला जा सकता है?

a)

int(input())

b)

float(input())

c)

str(input())

d)

None

42.

What will be the output of the following code?

python

Copy code

s = input("Enter a string: ") print(s[1:4])

a)

abc

b)

bcd

c)

cde

d)

Error

43.

उपयोगकर्ता द्वारा दर्ज की गई स्ट्रिंग को उल्टा करने के लिए कौन-सा कोड सही है?

a)

input()[::-1]

b)

input().reverse()

c)

reversed(input())

d)

None of the above

44.

What will be the output of the following code?

python

Copy code

s = input("Enter a string: ") print(bool(s))

a)

True

b)

False

c)

None

d)

Error

45.

निम्न में से कौन-सा Python में False के बराबर है?

a)

Empty string ""

b)

Non-zero integer

c)

Non-empty string

d)

All of the above

46.

What will the following code output if the user inputs "Python"?

python

Copy code

s = input("Enter a string: ") print(s + " Programming")

a)

PythonProgramming

b)

Python Programming

c)

Error

d)

None

47.

Python में उपयोगकर्ता द्वारा दर्ज दो इनपुट्स को कैसे जोड़ा जा सकता है?

a)

input1 + input2

b)

f"{input1} {input2}"

c)

input1 + " " + input2

d)

All of the above

48.

What will be the output of the following code?

python

Copy code

s = set("hello") print(s)

a)
  • {'hello'}

b)

{'h', 'e', 'l', 'o'}

c)

{'o', 'l', 'h', 'e'}

d)

Error

49.

निम्न में से कौन-सा कोड स्ट्रिंग से डुप्लिकेट्स हटा देता है?

a)

set("string")

b)

"".join(set("string"))

c)

Both A and B

d)

None

50.

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!")

a)

You entered something!

b)

You entered nothing!

c)

Error

d)

None