MCQs on Python Programming Language

Rajasthan Computer Teachers Bharati JUNE, 2022

      MCQs       Part#1

1.

Who developed the Python language?

(A)

Zim Den

(B)

Guido van Rossum

(C)

Niene Stom

(D)

Wick van Rossum

Python भाषा का विकास किसने किया?

(A)

जिम डेन

(B)

गुइडो वैन रोसुम

(C)

निएन स्टॉम

(D)

विक वैन रोसुम

2.

What is the maximum possible length of an identifier?

(A)

16

(B)

32

(C)

64

(D)

None of the above

एक Identifier (पहचानकर्ता) की अधिकतम संभव लंबाई क्या है?

(A)

16

(B)

32

(C)

64

(D)

उपरोक्त में से कोई नहीं

3.

In which year was the Python language developed?

(A)

1995

(B)

1972

(C)

1981

(D)

1989

Python भाषा का विकास किस वर्ष हुआ था?

(A)

1995

(B)

1972

(C)

1981

(D)

1989

4.

 In which language is Python written?

(A)

English

(B)

PHP

(C)

C

(D)

All of the above

Python किस  भाषा में लिखा गया है?

(A)

अंग्रेजी

(B)

पीएचपी

(C)

सी

(D)

उपरोक्त सभी

5.

Which one of the following is the correct extension of the Python file?

(A)

.py

(B)

.python

(C)

.p

(D)

None of the above

निम्नलिखित में से कौन सा Python फाइल का सही एक्सटेंशन है?

(A)

.py

(B)

.python

(C)

.p

(D)

उपरोक्त में से कोई नहीं

6.

What do we use to define a block of code in Python language?

(A)

key

(B)

Brackets

(C)

Indentation

(D)

None of the above

Python भाषा में कोड के ब्लॉक को परिभाषित करने के लिए हम किसका उपयोग करते हैं?

(A)

कुंजी

(B)

ब्रैकेट्स

(C)

इंडेंटेशन

(D)

उपरोक्त में से कोई नहीं

7.

Which character is used in Python to make a single line comment?

(A)

#

(B)

/

(C)

//

(D)

!

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

(A)

#

(B)

/

(C)

//

(D)

!

8.

Which of the following statements is correct regarding the object-oriented programming concept in Python?

(A)

Classes are real-world entities while objects are not real

(B)

Objects are real-world entities while classes are not real

(C)

Both objects and classes are real-world entities

(D)

All of the above

Python में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग कॉन्सेप्ट के बारे में निम्नलिखित में से कौन सा कथन सही है?

(A)

Classes वास्तविक दुनिया की संस्थाएं
हैं जबकि
Objects वास्तविक नहीं हैं

(B)

Objects वास्तविक दुनिया की संस्थाएं हैं जबकि Classes वास्तविक नहीं हैं

(C)

Objects और Classes दोनों वास्तविक
दुनिया की इकाई हैं

(D)

उपरोक्त सभी

9.

What is the method inside the class in python language?

(A)

Object

(B)

Function

(C)

Attribute

(D)

Argument

Python भाषा में कक्षा के अंदर की विधि क्या है?

(A)

वस्तु

(B)

फंक्शन

(C)

एट्रिब्यूट

(D)

आर्गुमेंट

10.

Which of the following is not a keyword in Python language?

(A)

val

(B)

raise

(C)

try

(D)

with

निम्नलिखित में से कौन पायथन भाषा में एक कीवर्ड नहीं है?

(A)

val

(B)

raise

(C)

try

(D)

with

11.

Which of the following statements is correct for variable names in Python language

(A)

All variable names must begin with an underscore.

(B)

Unlimited length

(C)

The variable name length is a maximum of 2.

(D)

All of the above

निम्नलिखित में से कौन सा कथन  भाषा में चर नामों के लिए सही है

(A)

सभी वेरिएबल नाम अंडरस्कोर
से शुरू होने

(B)

असीमित लंबाई

(C)

वेरिएबल नाम लंबाई अधिकतम 2 है।

(D)

उपरोक्त सभी

12.

Which of the following concepts is not a part of Python?

(A)

Pointer

(B)

Loops

(C)

Dynamic Typing

(D)

All of the above

निम्नलिखित में से कौन सी अवधारणा पायथन का हिस्सा नहीं है?

(A)

पॉइंटर

(B)

लूप्स

(C)

डायनामिक टाइपिंग

(D)

उपरोक्त सभी

13.

Which of the following types of loops are not supported in Python?

(A)

for

(B)

while

(C)

do – while

(D)

None of the above

निम्नलिखित में से किस प्रकार के लूप Python में समर्थित नहीं हैं?

(A)

for

(B)

while

(C)

do – while

(D)

उपरोक्त में से कोई नहीं

14.

Which type of Programming does Python support?

(A)

Object-Oriented Programming

(B)

Structured Programming

(C)

Functional Programming

(D)

All of the above

Python  किस प्रकार की प्रोग्रामिंग का समर्थन करता है?

(A)

ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग

(B)

स्ट्रक्चर्ड प्रोग्रामिंग

(C)

फंक्शनल प्रोग्रामिंग

(D)

उपरोक्त सभी

15.

All keywords in Python are in _________

(A)

Capitalized

(B)

lower case

(C)

UPPER CASE

(D)

None of these

पायथन में सभी कीवर्ड _________ में हैं-

(A)

कैपिटलाइजड़

(B)

लोअर केस

(C)

अपर केस

(D)

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

16.

What will be the value of the following Python expression?  4 + 3 % 5

(A)

7

(B)

2

(C)

4

(D)

1

निम्नलिखित Python Expression का मूल्य क्या होगा?   4 + 3% 5

(A)

7

(B)

2

(C)

4

(D)

1

17.

Which keyword is used for function in Python language?

(A)

function

(B)

def

(C)

fun

(D)

define

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

(A)

फंक्शन

(B)

डेफ

(C)

फन

(D)

डिफाइन

18.

Python has a built-in editor called…. ?

(A)

IDE

(B)

IDEL

(C)

EDIT

(D)

None of these

Python  में एक अंतर्निर्मित Editor  है जिसे…. ?

(A)

आईडीई

(B)

आईडीईएल

(C)

एडिट

(D)

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

19.

How many keywords in Pythons 3.9 and above version?

(A)

33

(B)

36

(C)

40

(D)

None of the above

Python 3.9 और इसके बाद के संस्करण में कितने कीवर्ड हैं?

(A)

33

(B)

36

(C)

40

(D)

उपरोक्त में से कोई नहीं

20.

To run a program using the Python interpreter-

(A)

Interactive mode

(B)

Script mode

(C)

Both (A) and (B)

(D)

None of the above

Python इंटरप्रेटर का उपयोग करके प्रोग्राम चलाने के लिए-

(A)

इंटरएक्टिव मोड

(B)

स्क्रिप्ट मोड

(C)

दोनों (A) और (B)

(D)

उपरोक्त में से कोई नहीं

21

How many types of Operators available in Python?

(A)

8

(B)

3

(C)

7

(D)

9

Python में कितने ऑपरेटर होते है-

(A)

8

(B)

3

(C)

7

(D)

9

22

Which of the following sequences Data type?

(A)

Strings

(B)

List

(C)

Tuple

(D)

All of the above

निम्नलिखित में से कौन सा  Sequence  डेटा प्रकार है?

(A)

स्ट्रिंग्स

(B)

लिस्ट

(C)

टुपल

(D)

उपरोक्त सभी

23.

What is the output of the following code : print 9//2

(A)

4.5

(B)

4.0

(C)

4

(D)

Error

निम्नलिखित कोड का आउटपुट क्या है: print 9//2

(A)

4.5

(B)

4.0

(C)

4

(D)

त्रुटि

24.

Which of these is not a core data type?

(A)

Lists

(B)

Dictionary

(C)

Tuples

(D)

Class

इनमें से कौन कोर डेटा टाइप नहीं है?

(A)

लिस्ट

(B)

डिक्शनरी

(C)

तुप्ल्स

(D)

क्लास

25.

What data type is the object below ? L = [1, 23, ‘hello’, 1]

(A)

Lists

(B)

Dictionary

(C)

Tuples

(D)

Array

नीचे दी गई वस्तु किस प्रकार का डेटा है? L = [1, 23, ‘hello’, 1]

(A)

Lists

(B)

Dictionary

(C)

Tuples

(D)

Array

 

ANSWER OF MCQ (PYTHON)

1

2

3

4

5

6

7

8

9

10

B

D

D

C

A

C

A

B

B

A

11

12

13

14

15

16

17

18

19

20

B

A

C

D

D

A

B

B

B

C

21

22

23

24

25

C

D

C

D

A

 

 

 

Leave a Reply