Skip to content
Menu
O Level Mock Test
O Level Mock Test

Python Programming

/50
358

1 / 50

Algorithms cannot be represented by___ .

एल्गोरिदम को ___ द्वारा प्रदर्शित नहीं किया जा सकता है।

2 / 50

_____ reports all error with line numbers and produce faster object code then interpreter.

_____ पंक्ति संख्याओं के साथ सभी त्रुटियों की रिपोर्ट करता है और दुभाषिया की तुलना में तेज़ ऑब्जेक्ट कोड उत्पन्न करता है।

3 / 50

Designing the problem

समस्या को डिज़ाइन करना

4 / 50

Two main measures for the efficiency of an algorithm are

किसी एल्गोरिथम की दक्षता के दो मुख्य उपाय हैं

5 / 50

Which of the following carries out the instructions defined in the interface?

निम्नलिखित में से कौन इंटरफ़ेस में परिभाषित निर्देशों को कार्यान्वित करता है?

6 / 50

Which of the following is not a part of Execution Flow during debugging?

डिबगिंग के दौरान निम्नलिखित में से कौन सा निष्पादन प्रवाह का हिस्सा नहीं है?

7 / 50

When an algorithm is written in the form of a programming language, it becomes a:

जब एक एल्गोरिदम को प्रोग्रामिंग भाषा के रूप में लिखा जाता है, तो यह बन जाता है:

8 / 50

Correcting the problem code

समस्या कोड को ठीक करना

9 / 50

Algorithm when translated into a programming language is called ____ .

एल्गोरिदम को जब प्रोग्रामिंग भाषा में अनुवादित किया जाता है तो उसे ____ कहा जाता है।

10 / 50

The correctness and appropriateness of____ solution can be checked very easily.

____ समाधान की शुद्धता और उपयुक्तता को बहुत आसानी से जांचा जा सकता है।

11 / 50

Which of the following defines what an object can do?

निम्नलिखित में से कौन परिभाषित करता है कि कोई वस्तु क्या कर सकती है?

12 / 50

In python code, on encountering a syntax error, the ____ does not execute the program.

पायथन कोड में, सिंटैक्स त्रुटि का सामना करने पर, ____ प्रोग्राम निष्पादित नहीं करता है।

13 / 50

Operations to be repeated a certain number of times are done by ____ .

एक निश्चित संख्या में दोहराए जाने वाले ऑपरेशन ____ द्वारा किए जाते हैं।

14 / 50

Which of the following is the basic I/O connections in file?

फ़ाइल में निम्नलिखित में से कौन सा मूल I/O कनेक्शन है?

15 / 50

Testing is known as :

परीक्षण को इस नाम से जाना जाता है:

16 / 50

A computer programme that manages and controls a computer's activity?

एक कंप्यूटर प्रोग्राम जो कंप्यूटर की गतिविधि का प्रबंधन और नियंत्रण करता है?

17 / 50

The meaning of bug is a-

बग का अर्थ है-

18 / 50

Which of the following language is understood by computer?

निम्नलिखित में से कौन सी भाषा कंप्यूटर द्वारा समझी जाती है?

19 / 50

Error does not fall into and category

त्रुटि और श्रेणी में नहीं आती

20 / 50

Function of a compiler is to

कंपाइलर का कार्य है

21 / 50

What will be the output of the following pseudocode, where ^ represent XOR operation?

निम्नलिखित छद्म कोड का आउटपुट क्या होगा, जहां ^ XOR ऑपरेशन का प्रतिनिधित्व करता है?

Integer a, b, c

Set b= 4, a= 3

c= a^b

Print c

22 / 50

Which of the following software translates source code into object code?

निम्नलिखित में से कौन सा सॉफ्टवेयर सोर्स कोड को ऑब्जेक्ट कोड में अनुवादित करता है?

23 / 50

Pseodocode is used for

सियोडोकोड का उपयोग किसके लिए किया जाता है?

24 / 50

The errors that can be pointed out by the compiler are.......

संकलक द्वारा बताई जा सकने वाली त्रुटियाँ हैं.......

25 / 50

Users write the programs in which language?

उपयोगकर्ता प्रोग्राम किस भाषा में लिखते हैं?

26 / 50

The Compexity of linear search algorithm is

रैखिक खोज एल्गोरिथ्म की जटिलता है

27 / 50

Set of statements is executed again and again based upon conditional test.

सशर्त परीक्षण के आधार पर कथनों के सेट को बार-बार निष्पादित किया जाता है।

28 / 50

All instruction are executed one after other.

सभी अनुदेश एक के बाद एक क्रियान्वित किये जाते हैं।

29 / 50

Which one is the type of algorithm?

एल्गोरिदम का प्रकार कौन सा है?

30 / 50

An algorithm that calls itself directly or indirectly is called as____ .

एक एल्गोरिदम जो स्वयं को प्रत्यक्ष या अप्रत्यक्ष रूप से कॉल करता है उसे ____ कहा जाता है।

31 / 50

A sequence of instruction, in a computer language, to get the desired result is known as ____ .

वांछित परिणाम प्राप्त करने के लिए कंप्यूटर भाषा में निर्देश के अनुक्रम को ____ के रूप में जाना जाता है।

32 / 50

What are the three different types of algorithm constructions?

एल्गोरिदम निर्माण के तीन अलग-अलग प्रकार क्या हैं?

33 / 50

The way for solving a problem step by step is known as______ .

किसी समस्या को चरण दर चरण हल करने के तरीके को ______ के रूप में जाना जाता है।

34 / 50

Set of statements is executed based upon conditional test.

कथनों का सेट सशर्त परीक्षण के आधार पर निष्पादित किया जाता है।

35 / 50

Which type of Error generate, when argument have invalid values specified?

जब तर्क में अमान्य मान निर्दिष्ट होते हैं, तो किस प्रकार की त्रुटि उत्पन्न होती है?

36 / 50

It refers to the ability of an application to run on different plateforms with  or without minimal changes.

यह किसी एप्लिकेशन की न्यूनतम परिवर्तनों के साथ या उसके बिना विभिन्न प्लेटफ़ॉर्म पर चलने की क्षमता को संदर्भित करता है।

37 / 50

Which of the following executes the programming code line by line?

निम्नलिखित में से कौन प्रोग्रामिंग कोड को लाइन दर लाइन निष्पादित करता है?

38 / 50

The part of a Machine level instruction, which tellsthe central processor what has to be done, is

मशीन स्तर के निर्देश का वह भाग, जो केंद्रीय प्रोसेसर को बताता है कि क्या करना है

39 / 50

Python supports Object-Oriented style or technique of programming that encapsulates code within____ .

पायथन ऑब्जेक्ट-ओरिएंटेड शैली या प्रोग्रामिंग की तकनीक का समर्थन करता है जो कोड को ____ के भीतर समाहित करता है।

40 / 50

A graphical representation of a computer program in relation to its sequence of functions____ .

कार्यों के अनुक्रम के संबंध में एक कंप्यूटर प्रोग्राम का ग्राफिकल प्रतिनिधित्व____।

41 / 50

If we not see the rules of the programming language, we get?

यदि हम प्रोग्रामिंग भाषा के नियमों को नहीं देखते हैं, तो हमें क्या मिलता है?

42 / 50

Which statements is correct about the object-oriented programming concept in Python?

पायथन में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग अवधारणा के बारे में कौन सा कथन सही है?

43 / 50

What will be the output of the follow pseudocode?

निम्नलिखित स्यूडोकोड का आउटपुट क्या होगा?

Integer a, b

Set a = 9, b=5

a=a mod(a-3)

b=b mod(b-3)

Print a+b

44 / 50

The word comes from the name of a Persian mathematician Abu Ja'far Mohammed ibn-i Musa al khowarizami is a called?

यह शब्द फ़ारसी गणितज्ञ अबू जाफ़र मोहम्मद इब्न-ए मूसा अल खोवारीज़ामी के नाम से आया है जिसे कहा जाता है?

45 / 50

Advantage of using FlowCharts are:

फ़्लोचार्ट का उपयोग करने के लाभ हैं:

46 / 50

Part of algorithm which is repeated for fixed number of times is classified as

एल्गोरिथम का वह भाग जिसे निश्चित संख्या में बार-बार दोहराया जाता है, को इस प्रकार वर्गीकृत किया गया है

47 / 50

Identify the correct sequence of steps to run program.

प्रोग्राम चलाने के चरणों का सही क्रम पहचानें।

48 / 50

The program must be able to handle unexpected situation like wrong input or no input.

प्रोग्राम को गलत इनपुट या कोई इनपुट न होने जैसी अप्रत्याशित स्थिति को संभालने में सक्षम होना चाहिए।

49 / 50

What will be the output of the following pseudo-code?

निम्नलिखित छद्म कोड का आउटपुट क्या होगा?

Integer a

Set a =4

do

print a+2

a = a-1

while (a not equals 0)

end while

50 / 50

The process of finding errors in code is called as____ .

कोड में त्रुटियां ढूंढने की प्रक्रिया को ____ कहा जाता है।

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/19
131

1 / 19

A process is expressed in a flowchart by____.

एक प्रक्रिया को फ़्लोचार्ट में ____ द्वारा व्यक्त किया जाता है।

2 / 19

Flowchart and algorithms are used for ____.

फ़्लोचार्ट और एल्गोरिदम का उपयोग ____ के लिए किया जाता है।

3 / 19

A detailed flowchart is known as :

एक विस्तृत फ़्लोचार्ट को इस रूप में जाना जाता है:

4 / 19

Actual instructions in flowcharting are represented in____ .

फ़्लोचार्टिंग में वास्तविक निर्देश ____ में दर्शाए गए हैं।

5 / 19

The symbol used for conditional statement in a flow chart is a ___

फ्लो चार्ट में सशर्त विवरण के लिए प्रयुक्त प्रतीक एक ___ है

6 / 19

The flow process chart was originally introduced by _____ in 1921.

प्रवाह प्रक्रिया चार्ट मूल रूप से 1921 में _____ द्वारा पेश किया गया था।

7 / 19

What are the different types of flowchart?

फ़्लोचार्ट के विभिन्न प्रकार क्या हैं?

8 / 19

_____symbols are used to connect one box of flow chart to another.

फ्लो चार्ट के एक बॉक्स को दूसरे बॉक्स से जोड़ने के लिए _____प्रतीकों का उपयोग किया जाता है।

9 / 19

The___ symbol is always the first and the last symbol in the flowchart.

फ़्लोचार्ट में ___ प्रतीक हमेशा पहला और अंतिम प्रतीक होता है।

10 / 19

Which of the following is not an advantage of a flowchart?

निम्नलिखित में से कौन सा फ़्लोचार्ट का लाभ नहीं है?

11 / 19

A __ is a directed graph that describes the flow of execution control of the program.

__ एक निर्देशित ग्राफ है जो प्रोग्राम के निष्पादन नियंत्रण के प्रवाह का वर्णन करता है।

12 / 19

What is the difference between a flowchart and a pseudocode?

फ़्लोचार्ट और स्यूडोकोड के बीच क्या अंतर है?

13 / 19

Which of the following symbol is used for input and output operations in a flow chart.

फ्लो चार्ट में इनपुट और आउटपुट ऑपरेशन के लिए निम्नलिखित में से किस प्रतीक का उपयोग किया जाता है?

14 / 19

A flowchart that outlines the main segments of a program.

एक फ़्लोचार्ट जो किसी प्रोग्राम के मुख्य खंडों को रेखांकित करता है।

15 / 19

Symbol used in flowchart such as rectangle with the horizontal lines on two sides is used for

फ़्लोचार्ट में उपयोग किये जाने वाले प्रतीक जैसे आयत जिसके दो तरफ क्षैतिज रेखाएँ होती हैं, का उपयोग किया जाता है

16 / 19

In a flow chart, which of the following is used to test the condition?

फ्लो चार्ट में, स्थिति का परीक्षण करने के लिए निम्नलिखित में से किसका उपयोग किया जाता है?

17 / 19

The process of drawing a flowchart for an algorithm is called___.

किसी एल्गोरिथम के लिए फ़्लोचार्ट बनाने की प्रक्रिया को___कहा जाता है।

18 / 19

Why do we use a flowchart?

हम फ़्लोचार्ट का उपयोग क्यों करते हैं?

19 / 19

______symbol used to connect relationship between the shapes.

आकृतियों के बीच संबंध जोड़ने के लिए ______प्रतीक का उपयोग किया जाता है।

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/50
110

1 / 50

What is output for below code?

नीचे दिए गए कोड के लिए आउटपुट क्या है?

a=2

b=3

print(a,b)

a,b=b,a

print(a,b)

2 / 50

Which of the following variable declaration is incorrect ?

निम्नलिखित में से कौन सी परिवर्तनीय घोषणा गलत है?

3 / 50

Which of the following is valid Python identifiers?

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

4 / 50

Which of the following is not valid Python  identifiers?

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

5 / 50

Find the output of the following Python programs.

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

a= '1 3'

print(a * 2)

print(a * 0)

print(a * -2)

6 / 50

Raw data assigned to a variable is called as.

किसी वेरिएबल को सौंपे गए कच्चे डेटा को कहा जाता है।

7 / 50

Which of the following statements are correct?

निम्नलिखित में से कौन सा कथन सही है?

(i) Python is a high level programming language.

(ii) Python is an interpreted language.

(iii) Python is a compiled language.

(iv) Python program is compiled before it is interpreted.

8 / 50

What is the output of below code?

नीचे दिए गए कोड का आउटपुट क्या है?

a="Careerbodh"

b=13

print(a+b)

9 / 50

What will be the output of the following code:

निम्नलिखित कोड का आउटपुट क्या होगा:

x=2

y=5,3

add=x+y

print(add)

10 / 50

Which of the following is correct about Python?

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

11 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

"The {} side{1}{2}'.format('bright','of','life')

12 / 50

Python Programs are typed in __ .

Python प्रोग्राम __ में टाइप किये जाते हैं।

13 / 50

What is the output of >>> float(12'6)

>>> फ्लोट(12'6) का आउटपुट क्या है

14 / 50

All keywords in python are in___.

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

15 / 50

What will be the output of the following expression?

निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?

a = 2

b = 8

print(a|b)

print(a>>1)

16 / 50

Which of the following statement will be true.

निम्नलिखित में से कौन सा कथन सत्य होगा।

17 / 50

The__ mode of Python gives instant result of typed statement.

पायथन का __ मोड टाइप किए गए स्टेटमेंट का तुरंत परिणाम देता है।

18 / 50

Which is not a feature of Python language?

पायथन भाषा की कौन सी विशेषता नहीं है?

19 / 50

Which of the following will gave error?

निम्नलिखित में से कौन सा त्रुटि देगा?

20 / 50

Is the following Python code valid?

क्या निम्नलिखित पायथन कोड वैध है?

>>>a,b,c=1,2,3

>>>a,b,c

21 / 50

What is the output of the following statement?

निम्नलिखित कथन का आउटपुट क्या है?

print ((2, 4) + (1, 5))

22 / 50

What will be the output of the following python statement?

निम्नलिखित पायथन स्टेटमेंट का आउटपुट क्या होगा?

>>>print(format("Welcome", "10s"), end = '#'

>>>print(format(111, "4d"), end = '#' )

>>>print(format(924.656, "3.2f"))

23 / 50

Which of the following cannot be a variable?

निम्नलिखित में से कौन सा परिवर्तनशील नहीं हो सकता?

24 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

print(type(type(int)))

25 / 50

Which type of Programming does Python support?

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

26 / 50

Select all options that print.

प्रिंट करने वाले सभी विकल्पों का चयन करें।

hello-how-are-you

27 / 50

What is the output of following program?

निम्नलिखित प्रोग्राम का आउटपुट क्या है?

a= 4.5

b= 3

print (a//b)

28 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

24//6%3, 24//4//2

29 / 50

What will be the datatype of the var in the below code snippet?

नीचे दिए गए कोड स्निपेट में var का डेटाटाइप क्या होगा?

var = 10

print (type(var))

var = "Ram"

print (type (var))

30 / 50

What is the output of >>>'2'+'3'

>>>'2'+'3' का आउटपुट क्या है

31 / 50

Find the output of the following Python code

निम्नलिखित पायथन कोड का आउटपुट खोजें

print('It\'s ok, don\'t worry)

32 / 50

Why does the name of local variables start with an underscore denote?

स्थानीय वेरिएबल्स का नाम अंडरस्कोर से क्यों शुरू होता है?

33 / 50

What value does the following expression evaluation to?

निम्नलिखित अभिव्यक्ति का मूल्यांकन किस मूल्य पर है?

print(5+8* ((3*5)-9)/10)

34 / 50

___ is correct regarding the object-oriented programming concept in Python?

पायथन में ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग अवधारणा के संबंध में ___ सही है?

35 / 50

What will be the value of X in the following python expression?

निम्नलिखित पायथन अभिव्यक्ति में X का मान क्या होगा?

X=2+9*((3*12)-8)/10

36 / 50

Which of the following is incorrect regarding variables in Python?

पायथन में वेरिएबल्स के संबंध में निम्नलिखित में से कौन सा गलत है?

37 / 50

Which of the following declarations is incorrect?

निम्नलिखित में से कौन सी घोषणा गलत है?

38 / 50

Which one of the following is a mutable data type?

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

39 / 50

Which of the following data types is not supported in python?

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

40 / 50

What will the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>a=("Check")*3

>>>a

41 / 50

What will be the output of the following python expression if x= 456?

यदि x=456 है तो निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या होगा?

print("%-06d"%x)

print("%06d"%x)

print("%f"%x)

42 / 50

Python is a___ object-oriented programming language.

पायथन एक___ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग भाषा है।

43 / 50

Which of the following expressions results in an error?

निम्नलिखित में से किस अभिव्यक्ति के परिणामस्वरूप त्रुटि होती है?

44 / 50

What is mean by dynamically typed language?

गतिशील रूप से टाइप की गई भाषा से क्या तात्पर्य है?

45 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

l=list('HELLO')

p=l[0], l[-1], l[1:3]

print('a={0}, b={1}, c={2}'. formar(*p))

46 / 50

Which will be the output of the following Python expression if x=56.236.

यदि x=56.236 तो निम्नलिखित पायथन अभिव्यक्ति का आउटपुट कौन सा होगा।

print("% . 2f " % x)

47 / 50

False statement in python.

पायथन में गलत बयान।

48 / 50

What will be the output of the following expression?

निम्नलिखित अभिव्यक्ति का आउटपुट क्या होगा?

print(7//2)

print(-7//2)

49 / 50

Which of the following declarations is incorrect in python language?

पायथन भाषा में निम्नलिखित में से कौन सी घोषणा गलत है?

50 / 50

How many arguments a Python program can accept from the command line?

एक पायथन प्रोग्राम कमांड लाइन से कितने तर्क स्वीकार कर सकता है?

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/43
86

1 / 43

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

i=0

while i<5 : print ( i ) i +=1 if  i==3 : break else : print ( 0 )

2 / 43

Which of the following expression is correct.

निम्नलिखित में से कौन सा अभिव्यक्ति सही है.

3 / 43

What will be the output after the following statements?

निम्नलिखित कथनों के बाद आउटपुट क्या होगा?

x=2

if  x<5: print (x) else: pass

4 / 43

Which of the following expression value is correct.

निम्नलिखित में से कौन सा अभिव्यक्ति मान सही है।

5 / 43

Which of the following Boolean expressions is not logically equivalent to other three?

निम्नलिखित में से कौन सा बूलियन अभिव्यक्ति तार्किक रूप से अन्य तीन के समकक्ष नहीं है?

 

6 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

for i in range (2.0) :

print ( i )

7 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

m=[[x,x+1,x+2] for x in range(0,3)]

print(m)

8 / 43

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

word = "Python Programming"

n  =  len(word)

word1  = word.upper()

word2  = word.lower()

converted_word = " "

for i in range (n) :

if i % 2 == 0 :

converted_word += word2[ i ]

else :

converted_word +=  word1[ i ]

print (converted_word)

9 / 43

Write the output of the following code:

निम्नलिखित कोड का आउटपुट लिखें:

s="OLEVEL"

for i in range (-1, -len(s), -1):

print (s[ i ], end="$")

10 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

X = "abcdef" while i in x:      print(i, end=" ")

11 / 43

What will be the result of following Python code snippet after execution?

निष्पादन के बाद पायथन कोड स्निपेट का पालन करने का परिणाम क्या होगा?

str1=" "

i=0

var2=1

while(i<3) : var1=1 if    str1: var2=var1*var2+5 else : var2=var1*var2+1 i=i + 1 print (var 2)

12 / 43

Which will be the following is the correct output of this program?

निम्नलिखित में से कौन सा इस प्रोग्राम का सही आउटपुट होगा?

i=0

while  i<3: print (i) i+=1 else : print (0)

13 / 43

In a Python program, Nested if Statements denotes?

पायथन प्रोग्राम में, नेस्टेड इफ स्टेटमेंट्स को दर्शाता है?

14 / 43

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

z="abc"

j="j"

while j in z:

print (j, end=" ")

15 / 43

Which of the following is False regarding loops in Python?

पायथन में लूप के संबंध में निम्नलिखित में से कौन सा गलत है?

16 / 43

What value does the following expression evaluate to?

निम्नलिखित अभिव्यक्ति किस मूल्य का मूल्यांकन करती है?

x = 5

while x  <  10: print ( x,  end=' ' )

17 / 43

Find the output of the following program segments:

निम्नलिखित प्रोग्राम खंडों का आउटपुट खोजें:

country =  'INDIA'

for i in country :

print  (i, end= ' ' )

18 / 43

What will be the final value of I after execution of the loop:

लूप के निष्पादन के बाद I का अंतिम मान क्या होगा:

for  I in range(10):

print( I )

19 / 43

What will be output after execution of the following code?

निम्नलिखित कोड के निष्पादन के बाद आउटपुट क्या होगा?

x=13

if x>12 or x<15 and x==16: print (" Given condition matched") else: print (" Given condition did not match")

20 / 43

Amongst which of the following is / are true with reference to loops in Python?

पायथन में लूप के संदर्भ में निम्नलिखित में से कौन सा/से सत्य है/हैं?

21 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

x = "abcdef"  i = "a"  while i in x:    x = x[: -1]   print(i, end = " " )

22 / 43

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 )

23 / 43

Amongst which of the following is / are the conditional statement in Python code?

निम्नलिखित में से कौन पाइथॉन कोड में सशर्त कथन है/हैं?

24 / 43

What will be the output after the following statements?

निम्नलिखित कथनों के बाद आउटपुट क्या होगा?

for i in range (1,6):

print (i, end= ' ')

if  i==3:

break

25 / 43

What among the following list of operators has the highest precedence?

ऑपरेटरों की निम्नलिखित सूची में से किसकी प्राथमिकता सबसे अधिक है?

+,-,**,%,/,<<,>>,|

26 / 43

What will be the output of the following Python list comprehension?

निम्नलिखित पायथन सूची समझ का आउटपुट क्या होगा?

print([j  for  i in range(2,8) for j in range (i*2,50,i)])

27 / 43

What will be the output of the following?

निम्नलिखित का आउटपुट क्या होगा?

print((range(4)))

28 / 43

What will be the output of the following program on execution?

निष्पादन पर निम्नलिखित प्रोग्राम का आउटपुट क्या होगा?

if False :

print  ("inside if block")

elif True :

print  ("inside elif block")

else :

print  ("inside else block")

29 / 43

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

i=1

while  1:

if  i%3==0:

break

print (i)

i+=1

30 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

i = 1

while  True :

if i%2==0 :

break

print (i)

i  +=  2

31 / 43

What will be the output after the following statements?

निम्नलिखित कथनों के बाद आउटपुट क्या होगा?

a=0

b=3

while  a+b<8 : a+=1 print (a, end=' ')

32 / 43

Which amongst this is not a jump statement?

इनमें से कौन सा जंप स्टेटमेंट नहीं है?

33 / 43

Which of the following is the output of this program?

निम्नलिखित में से कौन सा इस प्रोग्राम का आउटपुट है?

i=1

while False :

if  i%2==0:

print ( i )
i+=2

34 / 43

range(3) in Python is equivalent to:

पायथन में रेंज(3) इसके बराबर है:

35 / 43

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

36 / 43

What will be output after execution of the following code?

निम्नलिखित कोड के निष्पादन के बाद आउटपुट क्या होगा?

a=11

b=5

if (a//b==2):

print ( 'Yes' )

else:

print ( 'No' )

37 / 43

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

count  =  0

while (True) :

if  count  %  3==  0:

print (count, end = "  ")

if (count  >  15) :

break ;

count   +=  1

38 / 43

To access a list which contains ten elements, which of the following uses of range() would produce a list of the desired indexes?

एक सूची तक पहुंचने के लिए जिसमें दस तत्व शामिल हैं, रेंज() का निम्नलिखित में से कौन सा उपयोग वांछित अनुक्रमितों की एक सूची तैयार करेगा?

39 / 43

Which arithmetic operators can not use with strings?

स्ट्रिंग्स के साथ कौन से अंकगणितीय ऑपरेटर का उपयोग नहीं किया जा सकता है?

40 / 43

What are the values of the following Python expressions?

निम्नलिखित पायथन अभिव्यक्तियों के मूल्य क्या हैं?

2**(3**2)

(2**3)**2

2**3**2

41 / 43

Which of the following is the output of this program?

निम्नलिखित में से कौन सा इस प्रोग्राम का आउटपुट है?

True=False

While  True:

print (True)

break

42 / 43

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

x ="abcd"

for i in range (x) :

print ( 'i' )

43 / 43

What will be output after execution of the following code?

निम्नलिखित कोड के निष्पादन के बाद आउटपुट क्या होगा?

a  =  1

while True :

if  a %  7  ==  0:

break

print (a)

a   +=  1

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/50
60

1 / 50

Which of the following statement is used to create a empty set ()

खाली सेट बनाने के लिए निम्नलिखित में से किस कथन का उपयोग किया जाता है ()

2 / 50

is the following python code valid?

क्या निम्नलिखित पायथन कोड वैध है?

>>>a=2,3,4,5

>>>a

3 / 50

What is the output of following code?

निम्नलिखित कोड का आउटपुट क्या है?

>>>x="Ram, Shya"

>>>print(x[::5])

4 / 50

What will be the output of following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

>>>a={14,15,16}

>>>b={2,8,16}

>>>a-b

5 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

string = "my name is x"

for i in string :

print  (i, end=", ")

6 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

a = [1, 2, 3]

a = tuple(a)

a[0] = 2

print(a)

7 / 50

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>a=(0,1,2,3,4)

>>>b=slice(0,2)

>>>a[b]

8 / 50

Suppose list1 is [7, 4, 5, 4, 5, 2, 1, 0], Which of the following is incorrect syntax for slicing operation?

मान लीजिए सूची1 [7, 4, 5, 4, 5, 2, 1, 0] है, स्लाइसिंग ऑपरेशन के लिए निम्नलिखित में से कौन सा गलत सिंटैक्स है?

9 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

a={1: "A", 2:"B", 3:"C"}

b={4:"D", 5:"E"}

a.update(b)

print(a)

10 / 50

Suppose list1 is [4, 2, 2, 4, 5, 2, 1, 0], Which of the following is the correct syntax for slicing operation?

मान लीजिए सूची1 [4, 2, 2, 4, 5, 2, 1, 0] है, तो स्लाइसिंग ऑपरेशन के लिए निम्नलिखित में से कौन सा सही वाक्यविन्यास है?

11 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

ms=('A', 'D', 'H', 'U', 'N', 'I', 'C')

print(ms[1:4])

12 / 50

What is the output of the following code.

निम्नलिखित कोड का परिणाम क्या है।

str = "Welcome"

str[2] = 'a'

print(str)

13 / 50

What is the output of the following code

>>>a=(1,2,3,4)

>>>del(a[2])

14 / 50

Python allows string slicing. What is the output of below code:

पायथन स्ट्रिंग स्लाइसिंग की अनुमति देता है। नीचे दिए गए कोड का आउटपुट क्या है:

s='cppbuzz chicago'

print(s[3:5])

15 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

names1 = [ 'Amir' , 'Bala' , 'Chales' ]

if 'amir' in names1:

print(1)

else:

print(2)

16 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>e="hello india''

>>>print(''%s''%e[4:7])

17 / 50

Which of the following is the proper syntax to check if a particular element is present in a list?

किसी सूची में कोई विशेष तत्व मौजूद है या नहीं इसकी जांच करने के लिए निम्नलिखित में से कौन सा उचित वाक्यविन्यास है?

18 / 50

What is output of below python code?

नीचे दिए गए पायथन कोड का आउटपुट क्या है?

dict= {1:'1', 2: '2', 3:'3'}

del dict[1]

dict[1] = '10'

del dict [2]

print  (len(dict))

19 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

for i in 'abcd' [::-1]:

print  (i)

20 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

myList=[1,2,3,4,5,6]

for i in range(1,6) :

myList[i-1]=myList[i]

for i in range(0,6) :

print(myList[ i ], end=" ")

21 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>t=(1, 2, 4, 3, 8, 9)

>>>[t[i] for i in range(0, len(t), 2)]

22 / 50

How to copy one list to another in Python?

पायथन में एक सूची को दूसरे में कैसे कॉपी करें?

23 / 50

Suppose t = (1, 2, 4, 3), which of the following is incorrect?

मान लीजिए t = (1, 2, 4, 3), निम्नलिखित में से कौन सा गलत है?

24 / 50

What will be the output of the following programming code?

निम्नलिखित प्रोग्रामिंग कोड का आउटपुट क्या होगा?

x= "AmaZing"

print(x[3:], "and",x[:2])

25 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

I=list('HELLO')

'first={0[0]}, third={0[2]}',format(l)

26 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

myList=[1,5,5,5,5,1]

max=myList[0]

index0fMax=0

for i in range(1, len(myList)) :

if myList [ i ]>max:

max=myList[i]

index0fMax=i

print(index0fMax)

27 / 50

Which of the following is correct slicing operation to extract every kth character from the string str1 starting from  n and ending at m-1.

n से शुरू होकर m-1 पर समाप्त होने वाली स्ट्रिंग str1 से प्रत्येक kth वर्ण को निकालने के लिए निम्नलिखित में से कौन सा सही स्लाइसिंग ऑपरेशन है।

28 / 50

Which of the following is not a declaration of the dictionary?

निम्नलिखित में से कौन सा शब्दकोष की घोषणा नहीं है?

29 / 50

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is the value of listExample.pop(1)?

मान लीजिए listExample [3, 4, 5, 20, 5, 25, 1, 3] है, तो listExample.pop(1) का मान क्या है?

30 / 50

How can we create on empty list in Python?

हम पायथन में खाली सूची कैसे बना सकते हैं?

31 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

dict={ "Joey" :1, "Rachel" : 2}

dict.update({"Phoebe":2})

print(dict)

32 / 50

What type of Error is returned by statement?

कथन द्वारा किस प्रकार की त्रुटि लौटाई जाती है?

>>>str[1.5]

33 / 50

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>d={ ''john'' : 40,  ''peter'' : 45 }

>>>d [ ''john'']

34 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

Day = ["Sunday", "Monday", "Tuesday", "Wednesday"];

Print(Day[-3:-1])

35 / 50

Is the following Python code valid?

क्या निम्नलिखित पायथन कोड वैध है?

>>>a,b=1,2,3

36 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

Day = ["Sunday", "Monday", "Tuesday", "Wednesday"];

del Day[ 2 ]

print (Day)

37 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

names1=['Amir','bear','charlton','Daman']

names2=names1

names3=names1[ : ]

names2[0]= 'Alice'

names3[1]='Bob'

sum=0

for ls in (names1, names2,names3):

if  ls[0]=='Alice':

sum =sum+1

if   ls [1]=='Bob':

sum=sum+10

print    (sum)

38 / 50

Suppose a list with name arr, contains 5 elements, You can get the 2nd element from the list using?

मान लीजिए कि arr नाम वाली एक सूची में 5 तत्व हैं, तो आप इसका उपयोग करके सूची से दूसरा तत्व प्राप्त कर सकते हैं?

39 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

>>>a=(2,3,1,5)

>>>a.sort()

>>>a

40 / 50

What type of data is:

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

a=[(1, 1),(2,4),(3,9)]?

41 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

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

sum = 0

for ele in a:

sum += ele

print(sum)

42 / 50

Assume q = [3, 4, 5, 20, 5, 25, 1, 3], then what will be the items of q list after q.pop(1)?

मान लीजिए q = [3, 4, 5, 20, 5, 25, 1, 3], तो q.pop(1) के बाद q सूची के आइटम क्या होंगे?

43 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a=[13,56,17]

a.append([87])

a.extend([45,67])

print(a)

44 / 50

Which of the following creates a tuple?

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

45 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a={ 1: "A" , 2: "B" , 3: "C"}

for  i  in a :

print ( i, end="  ")

46 / 50

In which of the following data type, duplicate items are not allowed?

निम्नलिखित में से किस डेटा प्रकार में, डुप्लिकेट आइटम की अनुमति नहीं है?

47 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

a=set( ' dcma ' )

b=set( ' mlpc ' )

print( a^b )|

48 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

list1 = [1, 2, 3, 4]

list2 = [5, 6, 7, 8]

print(len(list1 + list2))

49 / 50

Which of the following is the correct output of this program?

निम्नलिखित में से कौन सा इस प्रोग्राम का सही आउटपुट है?

d={0:'a',1:'b',2:'c'}

for i in d:

print( i )

50 / 50

Suppose d={"John":40, "peter":45}, what happens when we try to retrieve a value using the expression d["susan"]?

मान लीजिए d={"जॉन":40, "पीटर":45}, जब हम अभिव्यक्ति d["susan"] का उपयोग करके कोई मान प्राप्त करने का प्रयास करते हैं तो क्या होता है?

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/50
36

1 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  foo (k) :

k[0]  =  1

q  =  [0]

foo(q)

print(q)

2 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  maximum(x, y):

if  x > y:

return  x

elif   x  ==  y:

return  'The numbers are equal'

else :

return   y

print(maximum(2,  3))

3 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import  functools

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

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

print (m)

4 / 50

What will be the output of the following?

निम्नलिखित का आउटपुट क्या होगा?

def  iq( a, b) :

if (a==0) :

return  b

else :

return  iq (a-1,a+b)

print(iq( 3,6))

5 / 50

Which part of the memory does the system store the parameter and local variables of a function call?

सिस्टम मेमोरी के किस भाग में फ़ंक्शन कॉल के पैरामीटर और स्थानीय वेरिएबल्स को संग्रहीत करता है?

 

6 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

from math import factorial

print (factorial (5))

7 / 50

What is the return type of following function ?

निम्नलिखित फ़ंक्शन का रिटर्न प्रकार क्या है?

def func1 ():

return 'mnp', 22

8 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

from math import  *

a  =  2.19

b  =  3.999999

c  =  -3.30

print(int (a),  floor(b),  ceil(c),  fabs(c))

9 / 50

Which one of these is NOT true about recursion?

इनमें से कौन सा प्रत्यावर्तन के बारे में सत्य नहीं है?

 

10 / 50

The function pow(x,y,z) is evaluated as:

फ़ंक्शन pow(x,y,z) का मूल्यांकन इस प्रकार किया जाता है:

11 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

>>>x=(1,2,3)

>>>sum(x,3)

12 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

x=[ 'ab' ,  'cd' ]

y=0

for  i  in  x:

x[y]=i .upper( )

y+=1

print ( x )

13 / 50

What will be the output of the following Python code ?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

a=3

b=2

def  change ( ) :

global  b

a=4

b=5

return ( a*b )

print ( change( )*a)

14 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def foo( i, x=[ ] ):

x.append(i)

return  x

for i in range (3):

print (foo(i))

15 / 50

How many numbers will be printed by the following code?

निम्नलिखित कोड से कितने नंबर प्रिंट होंगे?

def  fun(a,b):

for  x in range(a, b+1):

if  x%3==0:

print (x, end=" ")

fun(100, 120)

16 / 50

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def   calc ( x ) :

r=2*x**2

return  r

print ( calc ( 5 ))

17 / 50

Which of the following function headers is correct?

निम्नलिखित में से कौन सा फ़ंक्शन हेडर सही है?

18 / 50

What will be the output of the following Python program?

निम्नलिखित पायथन प्रोग्राम का आउटपुट क्या होगा?

def  addItem(listParam) :

listParam+=[ 1 ]

mylist=[1, 2, 3, 4]

addItem(mylist)

print(len(mylist))

19 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

>>>example="helloworld"

>>>example[::-1].startswith("d")

20 / 50

The output of the following python program is____.

निम्नलिखित पायथन प्रोग्राम का आउटपुट ____ है।

r=lambda q:q*2

s=lambda q:q*3

x=2

x=r(x)

x=s(x)

x=r(x)

print x

21 / 50

The output of below Python program:

नीचे दिए गए पायथन प्रोग्राम का आउटपुट:

def  find(a, **b):

print(type(b))

find(a='1',b='2')

22 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  printMax(a, b):

if  a > b:

print (a, 'is maximum' )

elif  a == b:

print (a, 'is equal to' , b)

else :

print (b, 'is maximum' )

printMax( 3, 4)

23 / 50

What will be output of this expression:

इस अभिव्यक्ति का आउटपुट क्या होगा:

'p' + 'q' if '12'.isdigit() else 'r' + 's'

24 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

def  add (a, b):

return  a+5, b+5

result=add(3,2)

print(result)

25 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  func (a, b=5, c=10):

print( 'a is' , a, 'and b is' , b, 'and c is' , c)

func(3, 7)

func(25, c=24)

func(c=50, a=100)

26 / 50

The output of this Python code would be:

इस पायथन कोड का आउटपुट होगा:

def  find(x,  **y ):

print (type(y))

find("letters" , X= '1' , Y= '2' )

27 / 50

What is the output of the following?

निम्नलिखित का आउटपुट क्या है?

print("Hello {0!r} and

{0!s}".format('foo','bin'))

28 / 50

If  str1="Programming Language " What does str1.find("m") return?

यदि  str1='प्रोग्रामिंग भाषा ' str1.find('m') क्या लौटाती है?

29 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

x = 50

def  func(x) :

print ('x  is' , x)

x = 2

print ('Changed  local  x  to' ,  x)

fun(x)

print( 'x is now' , x)

30 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

def    fun (a,  b=6):

a=a+b

print (a)

fun (5, 4)

31 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

l=["good","oh!","excellent!","#450"]

print([n for n in l if n.isalpha( ) or n

.isdigit( )])

32 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

square = lambda x: x  **  2

a  =  [ ]

for  i  in  range(5):

a.append(square(i))

print (a)

33 / 50

The function which cause side effects to the arguments passed are called__.

वह फ़ंक्शन जो पारित किए गए तर्कों पर दुष्प्रभाव उत्पन्न करता है, उसे __ कहा जाता है।

34 / 50

The output of this Python code would be:

इस पायथन कोड का आउटपुट होगा:

>>>s='{0},{1}, and {2}'

>>>s.format('hi','great','day')

35 / 50

Write the output of the following:

निम्नलिखित का आउटपुट लिखें:

print("python".join("@"))

36 / 50

Which statement is correct about Isalnum().

इस्लनम() के बारे में कौन सा कथन सही है?

37 / 50

What is output of python code:

पायथन कोड का आउटपुट क्या है:

>>>print('car'.parition('xy'))

38 / 50

What is the output of below program?

नीचे दिए गए प्रोग्राम का आउटपुट क्या है?

def say(message, times=1):

print(message*times)

say('Hello')

say('World' ,5)

39 / 50

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def   check( i, j):

if ( i==0) :

return  j

else :

return check (i-1,i+j)

print ( check(4,7))

 

40 / 50

What does the following code print?

निम्नलिखित कोड क्या प्रिंट करता है?

x='mohan'

for i in range(len(x)):

x[ i ]. upper( )

print (x)

41 / 50

Which of the following statement is false about recursion:

रिकर्सन के बारे में निम्नलिखित में से कौन सा कथन गलत है:

42 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

x  = 50

def  fun1 ( ):

x  =  25

print ( x )

fun1( )

print ( x )

43 / 50

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)

44 / 50

What is tall recursion?

लंबा रिकर्सन क्या है?

 

45 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  cube(x) :

return  x  *  x  *  x

x  =  cube (5)

print  (x)

46 / 50

How are keyboard arguments specified in the function heading?

फ़ंक्शन शीर्षक में कीबोर्ड तर्क कैसे निर्दिष्ट किए जाते हैं?

47 / 50

What is output of below python code:

नीचे दिए गए पायथन कोड का आउटपुट क्या है:

>>>str = ['career','bodh','snasthan']

>>>' '.join(str)

48 / 50

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

def disp(*arg):

for i in arg:

print( i )

disp(name="Rajat", age="20")

49 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  increment_items (L,   increment):

i  =  0

while  i  <  len(L) : L[i] = L[i] + increment i  =  i  +  1 values  =  [1,  2,  3] print ( increment_items (values,  2)) print ( values )

50 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

>>>count=1

>>>def careerboth():

...  global count

...   for i in(1,2,3):

...     count+=1

...

>>>careerbodh()

>>>print(count)

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/49
26

1 / 49

Which of the following is the basic I/O connections in file?

फ़ाइल में निम्नलिखित में से कौन सा मूल I/O कनेक्शन है?

2 / 49

Which mode creates a new file if the file does not exist?

यदि फ़ाइल मौजूद नहीं है तो कौन सा मोड एक नई फ़ाइल बनाता है?

3 / 49

The readlines() method reads and returns__.

रीडलाइन्स() विधि पढ़ती है और लौटाती है__।

4 / 49

Which function of pickle module is used to write data on binary file?

बाइनरी फ़ाइल पर डेटा लिखने के लिए पिकल मॉड्यूल के किस फ़ंक्शन का उपयोग किया जाता है?

5 / 49

To use load() function for working with binary file in python which module is require:

पायथन में बाइनरी फ़ाइल के साथ काम करने के लिए लोड() फ़ंक्शन का उपयोग करने के लिए किस मॉड्यूल की आवश्यकता है:

6 / 49

What error is returned by the following statement if the file does not exist?

यदि फ़ाइल मौजूद नहीं है तो निम्नलिखित कथन द्वारा कौन सी त्रुटि लौटाई जाती है?

f=open("A.txt")

7 / 49

What is the use of seek() method in files?

फाइलों में तलाश () पद्धति का क्या उपयोग है?

8 / 49

A function used for writing data is the binary format:

डेटा लिखने के लिए उपयोग किया जाने वाला फ़ंक्शन बाइनरी प्रारूप है:

9 / 49

Which statement will return one line from a file (file object is 'f')?

कौन सा कथन फ़ाइल से एक पंक्ति लौटाएगा (फ़ाइल ऑब्जेक्ट 'एफ' है)?

10 / 49

A text file contains only textual information consisting of ___.

एक टेक्स्ट फ़ाइल में केवल टेक्स्ट संबंधी जानकारी होती है जिसमें ___ शामिल होती है।

11 / 49

Which of the following mode argument is used to truncate?

निम्नलिखित में से किस मोड तर्क का उपयोग काट-छाँट करने के लिए किया जाता है?

12 / 49

f.read(5) will read _ form a file (file object 'f')

f.read(5) पढ़ेगा _ एक फ़ाइल बनाएगा (फ़ाइल ऑब्जेक्ट 'f')

13 / 49

Which method is used to Write(s) a list of lines to the file.

फ़ाइल में पंक्तियों की सूची लिखने के लिए किस विधि का उपयोग किया जाता है?

14 / 49

Which of the following will read entire content of file(file object 'f')?

निम्नलिखित में से कौन फ़ाइल की संपूर्ण सामग्री (फ़ाइल ऑब्जेक्ट 'f') को पढ़ेगा?

15 / 49

Which of the function takes two arguments ?

कौन सा फ़ंक्शन दो तर्क लेता है?

16 / 49

__ function returns the current position of a file pointer.

__ फ़ंक्शन फ़ाइल पॉइंटर की वर्तमान स्थिति लौटाता है।

17 / 49

Each line of a text file is terminated by a special character, called the ______

टेक्स्ट फ़ाइल की प्रत्येक पंक्ति एक विशेष वर्ण द्वारा समाप्त होती है, जिसे ______ कहा जाता है

18 / 49

Which function returns the strings?

कौन सा फ़ंक्शन स्ट्रिंग्स लौटाता है?

19 / 49

____ function takes a list of lines to be written to file.

____ फ़ंक्शन फ़ाइल में लिखी जाने वाली पंक्तियों की एक सूची लेता है।

20 / 49

Which statement will open file "data.txt" in append mode?

कौन सा कथन "data.txt" फ़ाइल को एपेंड मोड में खोलेगा?

21 / 49

To open a file c:\balaji.txt for reading, we use___.

पढ़ने के लिए एक फ़ाइल c:\Balaji.txt खोलने के लिए, हम___ का उपयोग करते हैं।

22 / 49

___is used to close a file object(fp).

___ का उपयोग फ़ाइल ऑब्जेक्ट (fp) को बंद करने के लिए किया जाता है।

23 / 49

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

f=open("demo.txt","r")

print(f.tell())

24 / 49

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

f= open("demo.txt","w+")

f.write("Welcome to Python")

f .seek (5)

a=f.read(5)

print(a)

25 / 49

Which of the following mode will refer to binary data?

निम्नलिखित में से कौन सा मोड बाइनरी डेटा को संदर्भित करेगा?

26 / 49

Which function is used to Writes the string(s) to the file and returns the number of characters written.

किस फ़ंक्शन का उपयोग फ़ाइल में स्ट्रिंग लिखने और लिखे गए वर्णों की संख्या लौटाने के लिए किया जाता है।

27 / 49

In Python, the primary use of the tell() method is that:

पायथन में, टेल() विधि का प्राथमिक उपयोग यह है:

28 / 49

The syntax used to rename a file :

किसी फ़ाइल का नाम बदलने के लिए प्रयुक्त सिंटैक्स:

29 / 49

__ are the modes of both writing and reading in binary format in file.

__ फ़ाइल में बाइनरी फॉर्मेट में लिखने और पढ़ने दोनों के तरीके हैं।

30 / 49

Which statement will move file pointer 10 bytes backward from current position.

कौन सा स्टेटमेंट फ़ाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट्स पीछे ले जाएगा।

31 / 49

A __ stores information in the form of a stream of ASCII or Unicode characters i.e. human readable.

A __ जानकारी को ASCII या यूनिकोड वर्णों की एक धारा के रूप में संग्रहीत करता है अर्थात मानव पठनीय।

32 / 49

Which function is used to read all characters?

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

33 / 49

Which of the following options can be used to read the first line of a text file data.txt?

किसी टेक्स्ट फ़ाइल data.txt की पहली पंक्ति को पढ़ने के लिए निम्नलिखित में से किस विकल्प का उपयोग किया जा सकता है?

34 / 49

Which statement will move file pointer 10 bytes backward from current position ?

कौन सा कथन फ़ाइल पॉइंटर को वर्तमान स्थिति से 10 बाइट्स पीछे ले जाएगा?

35 / 49

The function that yields current position in the file.

वह फ़ंक्शन जो फ़ाइल में वर्तमान स्थिति उत्पन्न करता है।

36 / 49

Which of the following is/are the method used to unpickling data from a binary file?

निम्नलिखित में से कौन सी विधि बाइनरी फ़ाइल से डेटा को अनपिक करने के लिए उपयोग की जाने वाली विधि है/हैं?

37 / 49

What is the current syntax of remove a file?

किसी फ़ाइल को हटाने का वर्तमान सिंटैक्स क्या है?

38 / 49

When we open file in append mode the file pointer is at the _____ of the file.

जब हम फ़ाइल को एपेंड मोड में खोलते हैं तो फ़ाइल पॉइंटर फ़ाइल के _____ पर होता है।

39 / 49

Which one of the following is not attributes of file?

निम्नलिखित में से कौन सा फ़ाइल का गुण नहीं है?

40 / 49

Which is the function to read the remaining lines of the file from a file object infile ?

फ़ाइल ऑब्जेक्ट इनफ़ाइल से फ़ाइल की शेष पंक्तियों को पढ़ने का कार्य कौन सा है?

41 / 49

Correct syntax of file.writelines() is?

File.writelines() का सही सिंटैक्स है?

42 / 49

Which of the following error is returned by the given code?

निम्नलिखित में से कौन सी त्रुटि दिए गए कोड द्वारा लौटाई जाती है?

>>>f=open("test.txt","w")

>>>f.write(345)

43 / 49

Method is used to display entire contents of the file.

विधि का उपयोग फ़ाइल की संपूर्ण सामग्री को प्रदर्शित करने के लिए किया जाता है।

44 / 49

Which function is used to write data in binary mode?

बाइनरी मोड में डेटा लिखने के लिए किस फ़ंक्शन का उपयोग किया जाता है?

45 / 49

Which of the following is not correct mode to open a file?

फ़ाइल खोलने के लिए निम्नलिखित में से कौन सा तरीका सही नहीं है?

46 / 49

Amongst which of the following is/are needed to open an existing file?

किसी मौजूदा फ़ाइल को खोलने के लिए निम्नलिखित में से किसकी आवश्यकता है/हैं?

47 / 49

____ function reads a single line from the file; a newline character (\n) is left at the end of the string.

____ फ़ंक्शन फ़ाइल से एक पंक्ति पढ़ता है; स्ट्रिंग के अंत में एक न्यूलाइन कैरेक्टर (\n) छोड़ा गया है।

48 / 49

The syntax of seek() is: file_object.seek(offset [, reference_point])

What does the reference_point indicate?

तलाश() का सिंटैक्स है: file_object.seek(offset [, reference_point])

Reference_point क्या दर्शाता है?

49 / 49

If we open a file in write mode and file does not exists, which of the error will generate ?

यदि हम किसी फ़ाइल को राइट मोड में खोलते हैं और फ़ाइल मौजूद नहीं है, तो कौन सी त्रुटि उत्पन्न होगी?

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/50
29

1 / 50

A python module is a file with the __file extension that contains valid python code.

पायथन मॉड्यूल __फ़ाइल एक्सटेंशन वाली एक फ़ाइल है जिसमें वैध पायथन कोड होता है।

2 / 50

Suppose a function called add() is defined in a module called adder.py. Which of the following code snippets correctly show how to import and use the add() function? Select all that apply.

मान लीजिए कि add() नामक फ़ंक्शन को adder.py नामक मॉड्यूल में परिभाषित किया गया है। निम्नलिखित में से कौन सा कोड स्निपेट सही ढंग से दिखाता है कि ऐड() फ़ंक्शन को कैसे आयात और उपयोग किया जाए? जो भी लागू हो उसे चुनें.

3 / 50

Which of the following is false about "from.....import....." form of import?

आयात के "से...आयात..." रूप के बारे में निम्नलिखित में से कौन सा गलत है?

4 / 50

What will be the output of the following?

निम्नलिखित का आउटपुट क्या होगा?

import  sys

sys.stdout.write( 'Welcome\n' )

sys.stdout.write( 'All\n' )

5 / 50

What will be the output of the following code snippet?

निम्नलिखित कोड स्निपेट का आउटपुट क्या होगा?

x=1

def  add( ):

global  x

x=x+1

add( )

print (x)

6 / 50

Which one of the following has the highest precedence in the expression?

निम्नलिखित में से किसकी अभिव्यक्ति में सर्वोच्च प्राथमिकता है?

7 / 50

The hierarchy of operations is denoted as__.

संचालन के पदानुक्रम को __ के रूप में दर्शाया गया है।

I) +,-

II) Power

III) *,/

IV) \, MOD

8 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

from math import pow

print(math.pow(2,3))

9 / 50

The scope rule in Python are summarized as ____.

पायथन में स्कोप नियम को ____ के रूप में संक्षेपित किया गया है।

10 / 50

Which of the following is not an advantage of using modules?

निम्नलिखित में से कौन सा मॉड्यूल का उपयोग करने का लाभ नहीं है?

11 / 50

Which of the following environment variable for Python tells the Python interpreter where to locate the module files imported into a program?

पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर पायथन दुभाषिया को बताता है कि प्रोग्राम में आयातित मॉड्यूल फ़ाइलों का पता कहाँ लगाना है?

12 / 50

Which of the following is a feature of DocString?

निम्नलिखित में से कौन सी DocString की एक विशेषता है?

13 / 50

Which operator is used in Python to import modules from packages?

पैकेज से मॉड्यूल आयात करने के लिए पायथन में किस ऑपरेटर का उपयोग किया जाता है?

14 / 50

What will be the output of the following python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

>>>import collections

>>>a=collections.namedtuple('a',['i','j'])

>>>obj=a(i=4,j=7)

>>>print(obj)

15 / 50

Which of the following is false about "from-import" form of import?

आयात के "आयात-से" रूप के बारे में निम्नलिखित में से कौन सा गलत है?

16 / 50

What will be the output of the following Python code

निम्नलिखित पायथन कोड का आउटपुट क्या होगा

x=42

y=25

def  change( ) :

global y

x=4

y=5

return  (x*y)

print (change( )*x)

17 / 50

___ is a string literal denoted by triple quotes for providing the specifications of certain program elements.

___ कुछ प्रोग्राम तत्वों की विशिष्टताओं को प्रदान करने के लिए ट्रिपल कोट्स द्वारा दर्शाया गया एक स्ट्रिंग शाब्दिक है।

18 / 50

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

def   writer( ) :

title= 'Sir'

name=(lambda x:title+'  '+x)

return  name

who = writer( )

print(who('Ashish'))

19 / 50

Which of these functions can NOT be defined under the sys module?

इनमें से कौन सा फ़ंक्शन sys मॉड्यूल के अंतर्गत परिभाषित नहीं किया जा सकता है?

20 / 50

Which module is to be imported for using randint( ) function ?

रैंडिंट() फ़ंक्शन का उपयोग करने के लिए कौन सा मॉड्यूल आयात किया जाना है?

21 / 50

Which of the following is false about "importmodulename" form of import?

आयात के "importmodulename" रूप के बारे में निम्नलिखित में से कौन सा गलत है?

22 / 50

Which of the following is not a valid namesapce?

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

23 / 50

Which of the following isn't true about main modules?

मुख्य मॉड्यूल के बारे में निम्नलिखित में से कौन सा सत्य नहीं है?

24 / 50

Which of the following functions converts date to corresponding time in python?

निम्नलिखित में से कौन सा फ़ंक्शन पायथन में दिनांक को संबंधित समय में परिवर्तित करता है?

25 / 50

Which of the following is true about top-down design process?

टॉप-डाउन डिज़ाइन प्रक्रिया के बारे में निम्नलिखित में से कौन सा सत्य है?

26 / 50

____ will return the mathematical number pi form the module.

____ मॉड्यूल से गणितीय संख्या pi लौटाएगा।

27 / 50

PyPI stands for ___.

PyPI का मतलब ___ है।

28 / 50

Which of the statements about modules is false?

मॉड्यूल के बारे में कौन सा कथन गलत है?

29 / 50

Read the following python code carefully and point out the global variables?

निम्नलिखित पायथन कोड को ध्यान से पढ़ें और वैश्विक चर को इंगित करें?

y,z=1,2     def f():        global x x=y+z

30 / 50

What happens if a local variable exists with the same name as the global variable you want to access?

यदि कोई स्थानीय वैरिएबल उस वैश्विक वैरिएबल के समान नाम के साथ मौजूद है जिसे आप एक्सेस करना चाहते हैं तो क्या होगा?

31 / 50

What is the order of namespaces in which Python looks for an identifier?

नेमस्पेस का क्रम क्या है जिसमें पायथन एक पहचानकर्ता की तलाश करता है?

32 / 50

What will be the output of the following Python Code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

from math  import  *

floor(3 . 7)

33 / 50

Which one of the following has the same precedence level?

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

34 / 50

Which statement is correct to import all modules from the package?

पैकेज से सभी मॉड्यूल आयात करने के लिए कौन सा कथन सही है?

35 / 50

The process of pickling in Python includes__.

पायथन में pickling की प्रक्रिया में__ शामिल है।

36 / 50

What will be the output of the following Python code if the system date is 30th September, 2022?

यदि सिस्टम दिनांक 30 सितंबर, 2022 है तो निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import datetime

print(datetime.date.today())

37 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  f( p, q, r) :

global  s

p=10

q=20

r=30

s=40

print ( p, q, r, s )

p, q, r, s = 1, 2, 3, 4

f ( 5, 10, 15 )

38 / 50

What is standard module in Python?

पायथन में मानक मॉड्यूल क्या है?

39 / 50

What is the pickling?

pickling क्या है?

40 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

def  f1 (x) :

global x

x+=1

print (x)

f1(15)

print ( "hello" )

41 / 50

Which of the following statement is correct about Getcwd().

Getcwd() के बारे में निम्नलिखित में से कौन सा कथन सही है।

 

42 / 50

Which of the following precedence order is correct in Python?

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

43 / 50

The module pickle is used to __.

मॉड्यूल pickle का उपयोग __ के लिए किया जाता है।

44 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import time

t = (2010, 9, 20, 8, 45, 12, 6, 0, 0)

print(time.asctime(t))

45 / 50

Which of these is the definition for packages in Python?

इनमें से कौन सी पायथन में पैकेज की परिभाषा है?

46 / 50

Which module in the python standard library parses options received from the command line?

पायथन मानक लाइब्रेरी में कौन सा मॉड्यूल कमांड लाइन से प्राप्त विकल्पों को पार्स करता है?

47 / 50

Which of the following environment variable for Python is an alternative module search path?

पायथन के लिए निम्नलिखित में से कौन सा पर्यावरण चर एक वैकल्पिक मॉड्यूल खोज पथ है?

48 / 50

Which of these definitions correctly describes a module?

इनमें से कौन सी परिभाषा किसी मॉड्यूल का सही वर्णन करती है?

49 / 50

In the declaration, x=Circle(), x contains a __to Circle() object.-

घोषणा में, x=Circle(), x में __to Circle() ऑब्जेक्ट शामिल है।-

50 / 50

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import time

print(time.asctime())

Your score is

LinkedIn Facebook Twitter VKontakte
0%


/37
56

1 / 37

Which of the following argument we need to pass in reshape() function.

निम्नलिखित में से कौन सा तर्क हमें reshape() फ़ंक्शन में पारित करने की आवश्यकता है।

2 / 37

__ helps to check the data type of an array.

__ किसी सरणी के डेटा प्रकार की जांच करने में मदद करता है।

3 / 37

___ are set of procedures defined in SciPy library to find the minimum value of function or the root of an equation.

___ फ़ंक्शन के न्यूनतम मान या किसी समीकरण के मूल को खोजने के लिए SciPy लाइब्रेरी में परिभाषित प्रक्रियाओं का सेट है।

4 / 37

A __ is a one dimensional array like structure with homogeneous data.

__ सजातीय डेटा के साथ एक आयामी सरणी जैसी संरचना है।

5 / 37

What is the purpose of NumPy in Python?

पायथन में NumPy का उद्देश्य क्या है?

6 / 37

___ creates an uninitialized array of specified shape and dtype.

___ निर्दिष्ट आकार और dtype की एक अप्रारंभीकृत सरणी बनाता है।

7 / 37

How we can convert the Numpy array to the list in python?

हम Numpy ऐरे को पायथन में सूची में कैसे बदल सकते हैं?

8 / 37

Array processing package.

ऐरे प्रोसेसिंग पैकेज.

9 / 37

Shape() function in Numpy array is used to ____.

Numpy ऐरे में शेप() फ़ंक्शन का उपयोग ____ के लिए किया जाता है।

10 / 37

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

import numpy as np

a=np.array([[1, 2, 3],[0, 1, 4],[11, 22, 33]])

print(a.size)

11 / 37

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

import numpy as np

a=np.array([[1, 2, 3, 4],[5, 6, 7, 8],[9, 10, 11, 12]])

print(a[2,2])

12 / 37

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

import numpy as np

a=np.array([[1, 2, 3]])

print(a.shape)

13 / 37

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

import numpy as np

a=np.array([1, 5, 4, 7, 8])

a=a+1

print(a[1])

14 / 37

What is the output of the following code?

निम्नलिखित कोड का परिणाम क्या है?

import numpy as np

y=np.array([[11,12,13,14],[32,33,34,35]])

print(y.ndim)

15 / 37

What will be the output of the following?

निम्नलिखित का आउटपुट क्या होगा?

import numpy as np

a=np.array([2, 3, 4, 5])

b=np.arange(4)|

print (a+b)

16 / 37

The most important object defined in NumPy is an N-dimensional array type called?

NumPy में परिभाषित सबसे महत्वपूर्ण वस्तु एक N-आयामी सरणी प्रकार है जिसे कहा जाता है?

17 / 37

What will be the output of the following Python code?

निम्नलिखित पायथन कोड का आउटपुट क्या होगा?

import  numpy  as  np

ary  =  np.array([1, 2, 3, 5, 8])

ary  =  ary  +  1

print   (ary[1])

18 / 37

Numpy was developed by __.

Numpy को __ द्वारा विकसित किया गया था।

19 / 37

____ is a Pandas function for loading CSV files into Dataframe.

____ CSV फ़ाइलों को डेटाफ़्रेम में लोड करने के लिए एक पांडा फ़ंक्शन है।

20 / 37

Which of the following function stacks 1D arrays as columns into a 2D array?

निम्नलिखित में से कौन सा फ़ंक्शन 1D सारणियों को 2D सारणी में कॉलम के रूप में संग्रहीत करता है?

21 / 37

Which of the following keyword is used to access the numpy module in python?

पायथन में numpy मॉड्यूल तक पहुंचने के लिए निम्नलिखित में से किस कीवर्ड का उपयोग किया जाता है?

22 / 37

NumPY stands for.-

NumPY का मतलब है.-

23 / 37

What kind of data structures are used for manipulating data in Pandas?

पांडा में डेटा में हेरफेर करने के लिए किस प्रकार की डेटा संरचनाओं का उपयोग किया जाता है?

24 / 37

NumPy arrays can be __.

NumPy सरणियाँ __ हो सकती हैं।

25 / 37

Which of the following data structure is supported by pandas library?

निम्नलिखित में से कौन सी डेटा संरचना पांडा लाइब्रेरी द्वारा समर्थित है?

26 / 37

What is the purpose of zeros() function used in Numpy array?

Numpy ऐरे में प्रयुक्त शून्य () फ़ंक्शन का उद्देश्य क्या है?

27 / 37

To create sequence of numbers, Numpy provides a function ____ analogous to range that returns arrays instead of lists.

संख्याओं का अनुक्रम बनाने के लिए, Numpy रेंज के अनुरूप एक फ़ंक्शन ____ प्रदान करता है जो सूचियों के बजाय सरणी लौटाता है।

28 / 37

Observe the following code and identify what will be the outcome?

निम्नलिखित कोड का अवलोकन करें और पहचानें कि परिणाम क्या होगा?

import numpy as np

a=np.array([1,2,3,4,5,6])

print(a)

29 / 37

_____ is used for data analysis and manipulations in tabular data in Python.

_____ का उपयोग पायथन में सारणीबद्ध डेटा में डेटा विश्लेषण और हेरफेर के लिए किया जाता है।

30 / 37

What will be the output of the following code?

निम्नलिखित कोड का आउटपुट क्या होगा?

import numpy as np

print(np.maximum([2, 3, 4], [1, 5, 2]))

31 / 37

The Pandas __ method returns a new DataFrame.

पांडा __ विधि एक नया डेटाफ़्रेम लौटाती है।

32 / 37

Amongst which Python library is similar to Pandas?

इनमें से कौन सी पायथन लाइब्रेरी पांडा के समान है?

33 / 37

What is the output of the following program in python?

पायथन में निम्नलिखित प्रोग्राम का आउटपुट क्या है?

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])

34 / 37

ndarray is also known as the ___ array.

ndarray को ___ सारणी के रूप में भी जाना जाता है।

35 / 37

np.eye() is used for creating:

np.eye() का उपयोग निम्न बनाने के लिए किया जाता है:

36 / 37

By using function __ , we can change the shape of the Numpy array in python.

फ़ंक्शन __ का उपयोग करके, हम पायथन में नम्पी सरणी का आकार बदल सकते हैं।

37 / 37

Which of the following returns an array of ones with the same shape and type as a given array?

निम्नलिखित में से कौन किसी दिए गए सरणी के समान आकार और प्रकार वाली सरणी लौटाता है?

Your score is

LinkedIn Facebook Twitter VKontakte
0%

Categories

  • Business
  • Education
  • Life Fun
  • Technology

Follow Us

Follow us on Facebook Subscribe us on Youtube Follow us on Instagram Contact us on WhatsApp

Recent Posts

  • CCC-8
  • Here are 10 points that you can follow to protect your job from being taken over by AI:
  • What is the Future of Ai
  • Latest or Future Education Trends
  • Best career options in 2023

Categories

  • Business
  • Education
  • Life Fun
  • Technology

Archives

  • November 2024
  • April 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • June 2022
©2026 O Level Mock Test | Powered by WordPress and Superb Themes!