Subscribe Us

Responsive Advertisement

Advertisement

python most imp mcqs set 5

 

 python mcqs most imp set 5




1. Find the output of the following Python Programs. निम्नलिखित पायथन प्रोग्राम का आउटपुट ज्ञात करें:

a="Meetmeafterparty" b=13

print a+b

A. 29

B. 14

C. error in code

D. 15

 

2. Find the output of the following Python programs. निम्नलिखित पायथन प्रोग्राम का आउटपुट ज्ञात करेः

class Acc:

             def____ init____ (self, id):

                       self.id = id         

                       id = 555

acc = Acc (111)

print (acc.id)

A. 111

B. 555

C. 666

D. error in code

 

3. Which of the following is an invalid variable? निम्नलिखित में से कौन सा एक इन्वैलिड वेरिएबल है?

A. my_string_1

B. foo

C. _V

D. 1st_string

 

4. Find the output of the following Python

programs. निम्नलिखित पायथन प्रोग्राम का आउटपुट ज्ञात करें.

x= ['ab', 'cd']

for i in x:

i.upper()

print (x)

 

A. ab

B. cd

C. ['ab','cd']

D. ['cd','ab']

 

5. What is the output of the following program? निम्नलिखित प्रोग्राम का आउटपुट क्या है?

 

a=2

b='3.77'

c = -8

str1 = '(0:.4f) (0:3d) (2) (1)'.format(a, b, c)

print (str1)

 

A. 2.0000 2 -8 3.77

Β. 2 3.77 -8 3.77

C. 2.000 3-8 3.77

D. 2.000 2 8 3.77

 

6. Find out the output of the following Python programs:निम्नलिखित पायथन प्रोग्राम का आउटपुट ज्ञात करे def gfg (x,1=[]):

 

for i in range(x):

i.append(i*i)

print (1)

gfg (2)

A. [3,2,1,0,1,4]

B. [0,1]

C. [0,1,0,1,4]

D. error in code

 

7. Suppose t=(1.2.4.3), which of the following is incorrect? मान लें कि t = (1,2,4,3), निम्नलिखित में से कौन सा गलत है?

 

A. print(t[3])

B. t[3]=45

C. print(max(t))

D. print(len(t))

 

8. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>t1=(1,2,4,3) >>>t2=(1,2,3,4)

>>>t1<t2

A .True

B. False

C .Error

D. (1.2.4.3)

 

9. Which of the following statement is false about recursion: रिकर्शन के बारे में निम्नलिखित कथनों में से कौन सा गलत है।

A. Every recursive function must have a base case प्रत्येक रिकर्सिव फंक्शन का एक बेस केस अवश्य होता आहिए

B. Infinite recursion can occur if the base case isn't properly mentioned यदि बेस कैंस का उल्लेख उपयुक्त रूप में न किया गया हो तो इन्फाइनाईट रिकर्शन हो सकता है

C. A recursive function makes the code

easier to understand एक रिकर्सिव कंक्शन कोड को समझने में आसान बनाता है

D. Every recursive function must have a return value प्रत्येक रिकर्सिव फंक्शन की एक रिटर्न वैल्यू अवश्य होनी चाहिए

 

10. What will be the output of the following Python code? निम्नलिखित पाइथन कोड का माचटपुट क्या होगा?

import functools

l = [1,2,3,4,5]

m = functools.reduce( lambda x, y:x if x>y else y, l)

print (m)

A. Error

B. Address of m

C. 1

D. 5

 

11. The  ......function generates a sequence of numbers from 1 to n.  .........फंक्शन 1 से तक संख्याओं का एक सिक्वेन्स उत्पन्न करता है।

A. Range-रेंज

B. Input-इनपुट

C. Open-जोपेन

D. Pass-पास

 

12. The............ command is used to take  input from the keyboard. कीबोर्ड से इनपुट लेने के लिए.........कमांड का उपयोग किया जाता है।

A. Range-रेंज

B. Input-इनपुट

C. Open-ओपेन

D. Pass-पास

 

13. The......... function takes two parameters, filename and mode. .........फंक्शन पैरामीटर फाइल नाम और मोड लेता है।

A. Range-रेंज

B. Input इनपुट।

C. Open()-ओपेन

D. Pass-पास

 

14. List structure in python where elements are stored in ........... parenthesis. पायथन में लिस्ट स्ट्रक्चर जहां एलिमेंट को .............कोष्ठक में संग्रहीत किया जाता है

A. []

 B. ()

C. {}

D. None of these इनमें से कोई नहीं

 

15. The.........statement lets the program go through the piece of code without performing any action.........स्टेटमेंट प्रोग्राम को बिना किसी भी क्रिया को किये कोड के टुकड़े के माध्यम से जाने देता है।

A. pass – पास

B. Get - गेट

C. Range - रेंज

D. None of these इनमें से कोई नहीं

 

16. ..........operator repeats a list for the given number of items. किसी दिए गए आइटम की संख्या के लिए एक लिस्ट को दोहराता है।

A. *

B. +

C. &

D. None of these इनमें से कोई नहीं

 

17. .........is a set of functions you want to include in your application. ........फंक्शनो का एक सेट है जिसे आप अपने एप्लिकेशन में शामिल करना चाहते हैं।

A. Module मॉड्यूल

B. Function फंक्शन

C. Folder - फोल्डर

D. None of these इनमें से कोई नहीं

 

18. The structure having keys and values is called.........'की' और वैल्यू वाले स्ट्रक्चर को .......कहा जाता है।

A. List - लिस्ट

B. Dictionary डिक्शनरी

C. Tuple - टपल

D. None of these इनमें से कोई नहीं

 

19. The .......function is used to convert a string value to int, ......फंक्शन का उपयोग स्ट्रिंग वैल्यू को int में बदलने के लिए किया जाता है

A. Str

B. int

C. convert

D. None of these इनमें से कोई नहीं

 

20. Array processing package. ऐरे प्रोसेसिंग पैकेज है।

A. Numpy - नमपाई

B. Array - ऐरे

C. dictionary - डिक्शनरी

D. None of these इनमें से कोई नहीं

 

21. The....... statement is used for exiting from the loop. ....... स्टेटमेंट का उपयोग लूप से बाहर निकलने के लिए किया जाता है।

A. Continue कंटिन्यू

B. Break - ब्रेक

C. pass - प्रास

D. None of these इनमें से कोई नहीं

 

22. The output of this expression, >>>6*1*3 is ........इस एक्सप्रेशन >>> 6*1*3 का आउटपुट....... है।

A. 6

B. 18

C. 10

D. None of the above उपर्युक्त में से कोई नहीं

 

23. Which of the statements about modules is false?मॉड्यूल के बारे में कौन सा कथन गलत है?

A. In the "from-import" form of import identifiers beginning with two underscores are private and aren't imported. इम्पोर्ट के रूप में 'from-import', दो अंडरस्कोर से शुरू होने वाले आईडेन्टिफॉयर प्राइवेट होते हैं और इम्पोर्ट नहीं किए जाते हैं

B. dir() built-in function monitors the items in the namespace of the main module. dir() बिल्ट-ईन फंक्शन मुख्य मॉड्यूल के नेमस्पेस में आइटम को देखता है।

C. In the "from-import" form of import, all identifiers regardless of whether they are private or public are imported. इम्पोर्ट के रूप में "from-import", सभी आईडेन्टिफॉयर चाहे वे प्राइवेट हों या पब्लिक, इम्पोर्ट किए जाते हैं।

D. When a module is loaded, a compiled version of the module with file extension .pyc is automatically produced. जब कोई मॉड्यूल लोड होता है, तो फाइल एक्सटेंशन .pyc के साथ मॉड्यूल का एक कम्पाइल्ड वर्जन स्वचालित रूप से निर्मित होता है।

 

24. Which one of the following is the correct extension of the Python file- निम्नलिखित में से कौन सा पायथन फाइल का सही एक्सटेंशन है-

A. .py

B. .python

C. .p

D. None of these इनमें से कोई नहीं

 

25. The function pow(x,y,z) is evaluated as: फंक्शन pow(x,y,z) का मूल्यांकन इस प्रकार किया जाता है:

A. (x*y)*z

B. (x**y)/z

C. (x**y) % z

D. (x**y)*z

 

26. In which year was the Python 3.0 version developed? पायथन 3.0 वर्जन किस वर्ष विकसित किया गया था?

 

A. 2008

B. 2010

C. 2000

D. 2005

 

27. By using function ......, we can change the shape of the Numpy array in python. .......फंक्शन का उपयोग करके, हम पायथन में Numpy ऐरे का आकार बदल सकते हैं।

A. shape()

B. reshape()

C. change()

D. None of these इनमें से कोई नहीं

 

28. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

 

x= 'abcd'

print(list(map(list,x)))

 

A. ['a', 'b','c','d']

B. ['abcd']

C. [['a'],['b'],['c'],['d']]

D. None of these इनमें से कोई नहीं

 

29...... reports all error with line numbers and produce faster object code then interpreter......लाइन नंबरों के साथ सभी एरर की रिपोर्ट करता है और इन्टरप्रिटर की तुलना में तेजी से ऑब्जेक्ट कोड बनाता है।

 

A. Compiler - कंपाइलर

B. Assembler - असेंबलर

C. Translator – ट्रांसलेटर

D. None of these इनमें से कोई नहीं

 

30. The functions which are coming with Python software automatically are called.......पायथन सॉफ्टवेयर के साथ स्वचालित रूप से आने वाले फंक्शन को कहा जाता है।

 

A. built-in functions बिल्ट-इन फंक्शन

B. User-defined functions यूजर-डिफाइन्ड फंक्शन

C. Both of the above उपरोक्त दोनो

D. None of these

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

 

31. The GCD of the numbers 136 and 170 is...... संख्या 136 और 170 की जीसीडी है.....

A. 34

B. 40

C. 50

D. None-कोई नहीं।

 

32. The operator returns the quotent after division. ऑपरेटर डिवीजन के बाद भागफल रिटर्न करता है।

A//

B: %

C. &

D. None of theseइनमें से कोई नहीं

 

33. The readlines() method reads and returns रीडलाइन मेथड पड़ता है और ........रिटर्न करता है।

A. individual lines of a file. किसी फाडल की अलग-अलग लाइने।

B. A list of remaining lines of the entire file सपूर्ण फाइल की शेष पंक्तियों की लिस्ट

C. Write Individual lines अलग-अलग पंक्तियाँ लिखता है।

D. None of the Above उपरोक्त में से कोई नहीं।

 

34. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>d=["john":40, "peter":45) >>>d["john"]  

 A. 12

B. 40

C. 45

D. None of these इनमें से कोई नहीं     

 

35. Shape() function in Numpy array is used to.Numpy ऐरे में Shape() फंक्शन का उपयोग किया जाता है।

A. Find the shape of the array ऐरे का आकार खोजने

 B. change the shape of array ऐरे का आकार बदलने

C. Display elements एलिमेन्ट डिस्प्ले करना

D. None of these इनमें से कोई नहीं

 

36. It defines the accessibility and the lifetime of a variable. यह वैरियेबल की पहुंच और जीवनकाल को डिफाइन करता है।

A. scope स्कोप

B. Lifetime लाइफटाइम

C. keyword- कीवर्ड

D. None- कोई नहीं

 

37. A sentinel-controlled loop can be Implemented using....... एक sentinel-controlled  लूप........  उपयोग करके लागू किया जा सकता है।

 A. If-इफ

 B. for-फॉर

C. Both of the above - उपर्युक्त दोनों

D. None - कोई नहीं

 

38. Every function has an implicit .......statement as the last instruction in the function body. प्रत्येक फंक्शन का फंक्शन बॉडी में अंतिम निर्देश के रूप में एक अंतर्निहित....... स्टेटमेंट होता है।

A. Return -रिटर्न

B. pass -पात्त

C. for-फॉर

D. None of these इनमें से कोई नहीं

 

39. ......symbol is used to indicate the process direction. प्रक्रिया की दिशा को इंगित करने के लिए सिम्बल का उपयोग किया जाता है।

A. Flow lines - फ्लो लाईन्स

B. circle सर्किल

C. diamond - डॉयमन्ड

D. None of these इनमें से कोई नही

 

40. ........help programmers to create lists in a concise way......संक्षिप्त रूप में सूची बनाने के लिए प्रोग्रामर की मदद करता है।

A. Tuple टपल

B. Dictionary - डिक्शनरी

C. List Comprehensions लिस्ट कम्प्रीहेन्सन

D. None of these इनमें से कोई नही

 

41. When ......gets executed, 'inner PI value' is printed as that is 'pi' value inside the function namespace. जब...... एक्सिक्यूट होता है, तो 'inner PI value' प्रिंट होता है क्योंकि फंक्शन नेमस्पेस के अंदर 'pi' वैल्यू होता है।

A. pi

B. piFun()

C. Fun()

D. None of these इनमें से कोई नहीं

 

42. The....... function converts the specified value into a string. .....फंक्शन निर्दिष्ट वैल्यू को एक स्ट्रिंग में परिवर्तित करता है।

 

A. str()

B. int()

C. String()

D. None of these इनमें से कोई नहीं

 

43. A natural number 1 is also an....... एक नेचुरल नंबर 1 भी एक है।

A. Factor फैक्टर

B. Integer number - पूर्णांक संख्या

C. unique number यूनिक नंबर

D. None of these इनमें से कोई नहीं 6

 

44. Python converts the source code into an Intermediate form called........ एक मध्यवर्ती रूप में सोर्स कोड को परिवर्तित करता है।

A. Source-code - सोर्स कोड

B. bytecode - बाईटकोड

C. human-readable code ह्यूमन-रीडेबिल कोड

D. None of these इनमें से कोई नहीं

 

45. ........is also known as the alias array. .........को alias array के रूप में भी जाना जाता है।

A. ndarray एनडीऐरे

B. array - ऐरे

C. alias एलियॉस

D. None of these इनमें से कोई नहीं

 

46. are the modes of both writing and reading in binary format in file. फाइल में बाइनरी फार्मेट में लिखने और पढ़ने दोनों मोड होते हैं।

A. bw+

B. wb+

C. rb+

D. None of these इनमें से कोई नहीं

 

47. Which function is used to Writes the string(s) to the file and returns the number of characters written. किस फंक्शन का उपयोग फाइल में स्ट्रिंग लिखने और लिखे गए कैरेक्टरो की संख्या लौटाने के लिए किया जाता है।

A. writeline(s)

B. write(s)

C. read(s)

D. None - कोई नहीं

 

48. Users write the programs in which language? यूजर किस भाषा में प्रोग्राम लिखते हैं?

A. Low-level Language लो लेवल लैंग्वेज

B. High-level Language हाई लेवल लैंग्वेज

C. Middle-level Language मिडिल लेवल लैंग्वेज

D. None of these इनमें से कोई नहीं

 

49. Which method is used to Write(s) a list of lines to the file. फाइल में लाइन्स की लिस्ट लिखने के लिए किस मेथड का प्रयोग किया जाता है।

A. write(s)

B. writelines(lines)

C. readlines(lines)

D. None of these - इनमे से कोई नहीं

 

50. What will be the output of the given program segment? दिए गए प्रोग्राम सेगमेंट का आउटपुट क्या होगा?

a=10 b=5 if(a%b==0): print("Greater")

if (a//b=0):

print ("Example")

else:

print ("Sooo Sorry")

A. Example

B. Greater Sooo Sorry

C. Error

D. None of the above उपरोक्त में से कोई नहीं

 

51. Which one of the following is a valid Python if statement: निम्नलिखित में से कौन सा एक वैध पायथन if स्टेटमेन्ट है:

A. if a>=2:

B. if (a >= 2)

C. if (a =>22)

D. if a>=22

 

52. In Python, .......defines a block ofstatements. पायथन में, स्टेटमेन्टो के एक ब्लॉक को डिफाइन करता है।

A. Block - ब्लॉक

B. {}

C. Indentation - इंडेशन

D. loop- लूप

 

53. An empty /null statement in Python is........पायथन में एक इम्पटी / नल स्टेटमेन्ट है.......

A. pass पास

B. null नल

C. empty - इम्पटी

D. None कोई नहीं

 

54. What will be output after execution of the following code?निम्नलिखित कोड के निष्पादन के बाद आउटपुट क्या होगा?

a=11 b=5. if(a//b==2): print('Yes') else: print('No')

A. 2.5

B. Yes

C. No

D. 21

55. Which character is used in Python to make a single line comment? पायथन में सिंगल लाइन कमेंट करने के लिए किस कैरेक्टर का उपयोग किया जाता है?

A. /

B. //

C. #

D. !

 

56. In which language is Python written? पायथन किस भाषा में लिखा गया है?

A. English - इंग्लिश

B. PHP - पीएचपी

C. C-सी

D. All of the above - उपर्युक्त सभी

 

57. Which of the following declarations is incorrect?निम्नलिखित में से कौन सा डिक्लेरेशन गलत है?

A. _x = 2

B. __x = 3

C.xyz__ = 5

D. None of these इनमें से कोई नहीं

 

58. Which of the following is not a keyword in Python language?निम्नलिखित में से कौन पायथन भाषा में एक कीवर्ड नहीं है?

A. val

B. raise

C. try

D. with

 

59. Which of the following precedence order is correct in Python?निम्नलिखित में से कौन सा वरीयता क्रम पायथन में सही है?

A. Parentheses, Exponential, Multiplication,  Division, Addition, Subtraction कोष्ठक, घातीय, गुणा, भाग, जोड़, घटाव

B. Multiplication, Division, Addition, Subtraction, Parentheses, Exponential गुणा, भाग, जोड़, घटाव, कोष्ठक, घातीय

C. Division, Multiplication, Addition, Subtraction, Parentheses, Exponential भाग, गुणा, जोड़, घटाव, कोष्ठक, घातीय

D. Exponential, Parentheses, Multiplication, Division, Addition, Subtraction घातीय, कोष्ठक, गुणा, भाग, जोड़, घटाव

 

60. A Python tuple that is created without using the parentheses brackets (0) is called as?एक पायथन टपल जो पैरेन्थिसीस ब्रैकेट () का उपयोग किए बिना बनाया जाता है, कहलाता है?

A. Tuple packing टपल पैकिंग

B. Tuple sampling टपल सैम्पलिंग

C. Tuple sorting टपल शॉर्टिंग

D. None of the above उपर्युक्त में से कोई नहीं

 

61. What is identity array?आइडेंटिटि ऐरे क्या है।

A. This is a square array with ones on the main diagonal.यह एक वर्गाकार ऐरे है जिसमें मुख्य विकर्ण पर एक होता है।

B. This is a normal array. यह एक सामान्य ऐरे है

C. This is a array with ones on the main diagonal.यह मुख्य विकर्ण पर एक के साथ एक ऐरे है।

D. None of these इनमें से कोई नहीं

 

62. In which year was the Python language developed?पायथन भाषा का विकास किस वर्ष हुआ था?

 

A. 1995

B. 1972

C. 1981

D. 1989

 

63. Which type of Programming does Python support?पायथन किस प्रकार की प्रोग्रामिंग को सपोर्ट करता है?

A. Object-oriented programming ऑब्जेक्ट ओरियन्टेड प्रोग्रामिंग

B. Structured programmingस्ट्रक्चर्ड प्रोग्रामिंग

C. Functional programming फंक्शनल प्रोग्रामिंग

D. All of the mentioned उपर्युक्त सभी

 

64. Which of the following declarations is incorrect in python language?निम्नलिखित में से कौन सा डिक्लेरेशन पायथन भाषा में गलत है?

A. xyzp = 5,000,000

B. x y z p = 5000 6000 7000 8000

C. x,y,z,p = 5000, 6000, 7000, 8000

D. x_y_z_p = 5,000,000

 

65. NumPY stands for. - नमपाई का पूर्ण अर्थ है।

A. Numbering Python नंबरिंग पायथन

B. Number In Python पायथन में नंबर

C. Numerical Python न्यूमेरिक पायथन

D. None of the above उपर्युक्त में से कोई नहीं

 

66. What will be output after execution of the following code?निम्नलिखित कोड के निष्पादन के बाद आउटपुट क्या होगा?

 

a = 1

 while True:

 if a % 7== 0

break

 print(a)

a += 1

 

A. 1 2 3 4 5

B. 1 2 3 4 5 6

C. 1 2 3 4 5 6 7

D. None of these इनमें से कोई नहीं

 

67. Empty list indicated by which symbol. खाली लिस्ट किस सिम्बल द्वारा इंगित की जाती है।

A.[]

B. ()

C. {}

D. None कोई नहीं

 

68. The method used to removes all the items at once. मेथड एक ही बार में सभी ऑइटम को हटा देता है।

A. remove()

B. clear()

C. removelist()

D. None of these इनमें से कोई नहीं

 

69. The most important object defined in NumPy is an N-dimensional array type called?NumPy में डिफाइन्ड सबसे महत्वपूर्ण ऑब्जेक्ट एक एन-डॉयमेन्सनल ऐरे टाइप है जिसे कहा जाता है?

A. ndarray

B. narray

C. nd_array

D. darray

 

70. Numpy was developed by. Numpy ___के द्वारा विकसित किया गया था

A. Guido van Rosum गुड्डो वैन रोसुम

B. Travis Oliphant ट्रैविस ओलिफांट

C. Wes McKinney वेस मैककिनी

D. Jim Hugunin जिम हुगुनिन

 

71.............design approach starts by dividing the complex algorithm into one or more modules...... डजाइन एप्प्रोच जटिल एल्गोरिथ्म को एक व अधिक मॉड्यूल में विभाजित करके शुरू होता है।

A. Top-Down टॉप-डाउन

B. Down-Top डाउन-टॉप

C. Both of the above उपर्युक्त दोनों

D. None of the above उपरोक्त में से कोई नहीं

 

72. Find the last element of list in Python? Assume 'bikes' is the name of list. पायथन में लिस्ट का अंतिम एलिमेन्ट बताइये? मान लें 'बाइक' लिस्ट का नाम है।

 

A. bikes[:-1]

B. bilkes[1]

C. bikes(:-1)

D. None of the above उपरोक्त में से कोई नहीं

 

73. What will be the output of the following Python code? निम्नलिखित पायथन कोड का आउटपुट क्या होगा। a=[1, 2, 3, 4, 5] print(a[::2])

A. [1,3,5]

B. [1,4,5]

C. [2,4,5]

D. None of the above उपरोक्त में से कोई नहीं

 

74. What will be the output of Python expression. पायथन एक्सप्रेशन का आउटपुट क्या होगा। >>>round(4.576)

A. 5

B. 6

C. 4

D. None of these इनमें से कोई नहीं

 

75. What is the value of expression >>>5+3%2.एक्सप्रेशन >>>5+3%2 का वैल्यू क्या है

A. 4

B. 5

C. 6

D. None कोई नहीं

 

76. ........function reads a single line from the file; a newline character (\n) is left at the end of the string.......फंक्शन फाइल से एक लाइन रीड करता है, एक न्यू लाइन कैरेक्टर (\n) स्ट्रिंग के अंत में छोड़ देता है।

A. read()

B. Readline()

C. write()

D. None of these इनमें से कोई नहीं

 

77. Operators with the same precedence are evaluated in. एक समान वरीयता वाले ऑपरेटरों का मूल्यांकन किया जाता है।

A. Left to Right बाये से दाये

B. Right to Left दाये से बाये

C. Both of the above उपरोक्त दोनो

D. None of these इनमें से कोई नहीं

 

78. immutable means. इम्यूटेबिल का अर्थ है।

A. They cannot be edited वे बदले नहीं जा सकते है

B. They can be edited वे बदले जा सकते है

C. Both of the above उपरोक्त दोनो

D. None of the above उपरोक्त में से कोई नहीं

 

79. The....... symbol is always the first and the last symbol in the flowchart. फ्लोचार्ट में ........सिम्बल होता है। सिम्बल हमेशा पहला और अंतिम

A. Rectangle रैक्टेन्गिल

B. Terminal टर्मिनल

C. Diamond डॉयमंड

D. None of these इनमें से कोई नहीं

 

80. What is standard module in Python? पायथन में स्टैंडर्ड मॉड्यूल क्या है।

A. It can not be imported the same way as we import our user-defined modules. यह उसी तरह से इंपोर्ट नहीं किए जा सकते हैं जैसे हम अपने यूजर डिफाईन गोंडचूल को इंपोर्ट करते हैं।

B. It can be imported the same way as we import our user-defined modules. यह उसी तरह से इंपोर्ट किए जा सकते हैं जैसे हम अपने यूजर-डिफाईन मॉडयूल को इंपोर्ट करते हैं।

C. Both दोनों

D. None of the above उपरोक्त में से कोई नहीं

 

81........ is correct regarding the object- oriented programming concept in Python? पायथन में ऑब्जेक्ट ओरिएंटेड प्रोग्रामिग कॉन्सेप्ट के बारे में सही है।

A.      Classes are real world entities. क्लॉसेस रियल वर्ल्ड इन्ट्रिटीज है।

 B. Objects are real world entities ऑब्जेक्ट रियल वर्ल्ड इन्ट्टिीज है।

C. Objects and classes are real world entities. ऑब्जेक्ट्स और क्लॉसेस रियल वर्ल्ड इन्ट्टिीज है।

D. objects are real-world entities while classes are not real. ऑब्जेक्ट्स रियल वर्ल्ड इन्ट्रिटीज हैं जबकि क्लॉसेस रियल वर्ल्ड इन्ट्रिटीज नहीं हैं।

 

82. IDLE means...... आईडीएलई का मतलब है.......

A. Integrated Development and Learning Environment इन्टीग्रेटेड डेवलपमेन्ट और लर्निंग इन्वायरनमेन्ट

B. Ideal Development and Learning Environment आइडियल डेवलपमेन्ट और लर्निंग इन्वायरनमेन्ट

C. Internet development and Learning Environment इन्टरनेट डेवलपमेन्ट और लर्निंग इन्वायरनमेन्ट

D. None of the above उपरोक्त में से कोई नहीं

 

83. ........smallest individual unit or element in a program. प्रोग्राम में सबसे छोटी इन्डिविजुअल यूनिट या एलिमेन्ट होता है।

 

A. Token टोकन

B. Keyword कीवर्ड

C. Identifier आइडेन्टिफॉयर

D. None of these इनमें से कोई नहीं

 

84. What is identifier? आइडेन्टिफॉयर क्या है?

A. User-defined name यूजर-डिफाइन्ड नेम

B. Pre-defined name प्री-डिफाइन्ड नेम

C. Both of the above उपरोक्त दोनो

D. None of the above उपरोक्त में कोई नहीं

 

85. Why does the name of local variables start with an underscore denote? लोकल वेरिएबल का नाम अंडरस्कोर डिनोट से क्यों शुरू होता है?

A. To identify the variable. वेरिएबल की पहचान करने के लिए

B. To identify the constant. कॉन्स्टेन्ट की पहचान करने के लिए

C. It Indicates a public variable of a class.यह एक क्लॉस के पब्लिक वेरिएबल को इंगित करता है

D. Variables cannot be accessed from outside the class.वेरिएबल्स को क्लॉस के बाहर से एक्सेस नहीं किया जा सकता है।

 

86. Which one of the following has the same precedence level?निम्नलिखित में से किसका प्रेसीडेन्स लेवल समान है?

A. Division, Power, Multiplication Addition and Subtraction डिवीजन, पावर, गुणा, जोड़ और घटाव

B. Division and Multiplication डिवीजन और गुणा

C. Subtraction and Division घटाव और डिवीजन

D. Power and Division पावर और डिवीजन

 

87. .......functions is a built-in function python language. फंक्शन पाइथन लैंग्वेज में एक बिल्ट-इन फज्ञा है।

A. val

B. print()

C. print In()

D. const()

 

88. What will be the output of this code?इस कोड का आउटपुट क्या होगा?

>>>any([3>8,6>5,5<2])

A True-

B. False फॉल्स

C. Invalid code इनवैलिड कोड

D. Errorएरर

 

89, What will be the output of this code? दिए गए कोड का आउटपुट क्या होगा?

>>>"OLEVEL" [1:]

A. LEVEL

B. VEL

C. EVEL

D. None कोई नहीं

 

90. In python-1 corresponds to the: पायथन में 1 का सम्बन्ध है।

A. last index लास्ट इंडेक्स

B. first index फस्र्ट इंडेक्स

C. middle index मीडिल इंडेक्स

 

D. end index इंड इंडेक्स

 

91. Which of the following is the correct output of this program?दिए गए कोड का सही आउटपुट क्या होगा?

i=0

while i<3

print (i)

i +=1

else:

print (0)

A. 0 1

B. 0 1 2

C. 0 1 2 0

D. 0 1 2 0 3

 

92. What will be the output of this program? इस प्रोग्राम का आउटपुट क्या होगा?

a=['AA', 'BB']

for i in a: i.lower()

print(a)

 

A. ['AA','BB']

B. ['aa','bb']

C. [AA,bb]

D. [a,b]

 

93. What is range)? रेंज क्या है?

A. generates a list of numbers, to iterate over with for loops लिस्ट ऑफ नंबर्स को जनरेट करना ताकि वो फॉर लूप पर इंटरेट हो।

B. immediate exit from the innermost loop structure. इनरमोस्ट लूप में से इमीडियेट एग्जिट

C. returned an iterator a sequence object. सीक्वेंस ऑब्जेक्ट का इंटरेटर रिटर्न करता है। A

D. Arranging numbers whether in ascending or descending order. संख्याओं को आरोही या अवरोही क्रम में व्यवस्थित करना।

 

94. What is xrange() function?xrange() फंक्शन क्या है।

A. generates a list of numbers, to iterate over with for loops लिस्ट ऑफ नंबर्स को जनरेट करना ताकि वो फॉर लूप पर इंटरेट हो।

B. immediate exit from the innermost loop structure.इनरमोस्ट लूप में से इमीडियेट एग्जिट

C. returned an iterator a sequence object. सीक्वेंस ऑब्जेक्ट का इंटरेटर रिटर्न करता है।

D. Arranging numbers whether in ascending or descending order. संख्याओं को आरोही या अवरोही क्रम में व्यवस्थित करना।

 

95. If we change one data type to another, then it is called? यदि हम एक डेटा प्रकार को दूसरे में बदलते हैं, तो इसे कहते हैं

A. Type conversion टाईप कन्वर्जन

B. Type casting टाईप कॉस्टिंग

C. Both of the above उपर्युक्त दोनो

D. None of the above उपर्युक्त में से कोई नही

 

96. If we try to access the item outside the list index, then what type of error it may give?यदि हम लिस्ट इन्डेक्स के बाहर के आइटम तक पहुँचने का प्रयास करते हैं, तो यह किस प्रकार की त्रुटि दे सकता है?

 

A. List is not defined लिस्ट डिफाईन नहीं है

B. List index out of range लिस्ट इंडेक्स रेंज से बाहर है

C. List index out of bound लिस्ट इंडेक्स बाउंड से बाहर है

D. None of the above उपर्युक्त में से कोई नहीं

 

97. What is list data type in python? पायथन में लिस्ट डेटा टाइप क्या है?

A. collection of integer number इंटीजर नंबर का संग्रह

B. collection of string स्ट्रिंग का संग्रह

C. collection of same data type समान डेटा प्रकार का संग्रह

D. collection of different data type विभिन्न प्रकार के डेटा का संग्रह

 

98. l=[1,2,3,4], then l[-2] is?

A. 1

B. 2

C. 3

D. 4

 

99. l=[1,2,3,4,8,1.2],which type of data type is this?यह किस प्रकार का डेटा प्रकार है?

A. set

B. List

C. Tuple

D. Integer

 

100. What will be the output of the followin function-निम्नलिखित फंक्शन का आउटपुट क्या होगा-

>>>all([2,4,0,6])

 

A. False फाल्स

B. True-

C. 0

D. Invalid code इनवैलिड कोड

 


Post a Comment

0 Comments

 python most imp  mcqs set 5