Operators, Expressions and Statements

1 / 67

इस expression का उत्तर क्या है22%3

2 / 67

निम्नलिखित पाइथन कोड का आउटपुट क्या होगा print(2**3)

3 / 67

pow(x,y) के लिए सही ऑपरेटर कौन सा है?

4 / 67

What will be the output of the following 'python' program? a=1 b=5 if(a==5 or b>10): print("l will certainly pass") else: print("l am not so sure about the result").

5 / 67

रिलेशनल Operation का परिणाम  हमेशा होता है

6 / 67

जोड और घटाव का वरीयता स्तर (precedence level) एक ही है।

7 / 67

Mathematical operation string पर किये जा सकते है?

8 / 67

python में, in और not in ऑपरेटर को Membership Operator के रूप में जाना जाता है

9 / 67

9: print (3**4) इसको execute करने पर output क्या आएगा?

10 / 67

print("10" +15) का output होगा?

11 / 67

Correct output statement. if print(100/0)

12 / 67

python में equality operator कौन से है?

13 / 67

+ operator को ______ overload करता है?

14 / 67

Python में ______ एक NULL statement है।

15 / 67

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

16 / 67

print(0.1+0.2 == 0.3) का आउटपुट क्या है?

17 / 67

print(0.1+0.2 > 0.3) का आउटपुट क्या है?

18 / 67

2**(3**2), (2**3)**2, 2**3**2 का output क्या होगा ।

19 / 67

x, y, z = "Orange", "Banana", "Cherry" क्या यह कथन गलत है।

20 / 67

Passage के text होने में, अलग-अलग words और punctuation marks को के रूप में जाना जाता है।

21 / 67

TruePass statement program को बिना कोई क्रिया किए कोड के टुकड़े से गुजरने देता है।

22 / 67

Which of the following is the truncation division operator in Python?

23 / 67

किसी function से वापस calling function पर control transfer करने के लिए उपयोग किया जाने वाला keyword है

24 / 67

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

25 / 67

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

26 / 67

Error checking के लिए Assert Statement का उपयोग किया जाता है।

27 / 67

min(max(False,-3,-4), 2,7) का output क्या हैं।

28 / 67

समान वैल्यू वरीयता (same precedence) वाले ऑपरेटरों का मूल्यांकन (Evalution) किस तरीके से किया जाता है?

29 / 67

क्या python में Pass keyword एक NULL statement है?

30 / 67

What will be the value of the following Python expression?

4 + 3 % 5

31 / 67

What will be the output of the following Python code?

i = 1

while True:

if i % 3 == 0:

break

print(i)

i += 1

32 / 67

What will be the output of the following Python code?

I = [1, 0, 2, 0, 'hello', '.']

list(filter(bool, I))

33 / 67

What will be the output of the following Python code snippet if x=1?

x << 2

34 / 67

What will be the output of the following Python code snippet?

for i in [1, 2, 3, 4][-1]:

print (i)

35 / 67

What will be the output of the following Python code?

x = 'abcd'

for i in range(len(x)):

print(1)

36 / 67

The for loop in Python is an

37 / 67

break in Python is used

38 / 67

A loop block in python starts with a -

39 / 67

Which of the following loops is not supported by the python programming language?

40 / 67

Which of the following is not a valid keyword of Python associated with loops?

41 / 67

Select which is true for, for loop

42 / 67

Which of the following is True regarding loops in Python?

43 / 67

Which of the following is False regarding loops in Python?

44 / 67

When does the else statement written after loop executes?

45 / 67

_______ in Python is a counter-controlled loop.

46 / 67

A count controlled loop will:

47 / 67

What is another word for 'iteration'?

48 / 67

X wants to allow the program to repeatedly ask the user to enter their Choice if it does not equal the Answer.

Which loop option should X use?

49 / 67

Code repeated/looped until a condition has been met or a set number of times.

50 / 67

Why is iteration important?

51 / 67

Which term describes a loop that continues repeating without a terminating (ending) condition?

52 / 67

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

53 / 67

. Find and write the output of the following python code:

x = "abcdef"

i = "a"

while i in x:

print(i, end = " ")

 

54 / 67

Find the output of the following program segments:

a = 110

while a > 100:

print(a, end = "#")

a -=  2

55 / 67

  1. Find the output of the following program segments:

country = "INDIA"

for i in country

print (i, end="")

56 / 67

  1. Find the output of the following program segments:

i = 0

sum = 0

while i < 9:

if i % 4 == 0:

sum = sum + i

i = i + 2

print (sum)

57 / 67

Iteration stands for _______

58 / 67

Which of the following is consider as an infinite loop?

59 / 67

How many times the message Hello will appear when this loop runs?

while(0):

print("Hello")

60 / 67

How many times will this loop run?

while(1):

print(2)

61 / 67

How many times will this loop run?

while(1==2):

pass

62 / 67

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

for I in range(10):

print(I)

63 / 67

range(3) in Python is equivalent to:

64 / 67

What will be the output of the given program segment?

 

for I in range(1,10, 1):

print(I)

65 / 67

Which is not correct for the repetition constructs in Python?

66 / 67

Which of the following is not a valid jump statement in Python?

67 / 67

What is the result of executing the following code?

count = 10

while count <= 10:

if count < 10:

count = count + 1

print(count)

Your score is

The average score is 63%

0%