NIELIT O Level M3-R5 Solved Paper 2

NIELIT O Level M3-R5 Solved Paper 2

31.What will be the value of X in the following Python expression?
निम्नलिखित पायथन अभिव्यक्ति में X का मान क्या होगा?
X = 2+9*((3*12)-8)/10
A) 30.0
B) 30.8
C) 28.4
D) 27.2 ✔️

32.Which of the following expressions involves coercion when evaluated in Python?
पायथन में मूल्यांकन किए जाने पर निम्नलिखित में से किस अभिव्यक्ति में जोर शामिल है?
A) 4.7 – 1.5
B) 7.9 * 6.3
C) 1.7 % 2 ✔️
D) 3.4 + 4.6

33.What will be the output of the following Python expression?
निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या होगा?
24//6%3, 24//4//2
A) (1,3) ✔️
B) (0,3)
C) (1,0)
D) (3,1)

34.Which among the following list of operators has the highest precedence?
निम्नलिखित में से किस ऑपरेटर की सूची में सबसे अधिक वरीयता है?
+, -, **, %, /, <<, >>, |
A) <<, >>
B) ** ✔️
C) |
D) %

35.What will be the value of the following Python expression?
निम्नलिखित पायथन अभिव्यक्ति का मूल्य क्या होगा?
float(4+int(2.39)%2)
A) 5.0
B) 5
C) 4.0 ✔️
D) 4

36.Which of the following expressions is an example of type conversion?
निम्न में से कौन सा अभिव्यक्ति प्रकार रूपांतरण का एक उदाहरण है?
A) 4.0 + float(3) ✔️
B) 5.3 + 6.3
C) 5.0 + 3
D) 3 + 7

37.Which of the following expressions results in an error?
निम्नलिखित में से कौन सा अभिव्यक्ति में त्रुटि है?
A) float(’10’)
B) int(’10’)
C) float(‘10.8’)
D) int(‘10.8’) ✔️

38.What will be the value of the following Python expression?
निम्नलिखित पायथन अभिव्यक्ति का मूल्य क्या होगा?
4+2**5//10
A) 3
B) 7 ✔️
C) 77
D) 0

39.The expression 2**2**3 is evaluates as: (2**2)**3.
अभिव्यक्ति 2 ** 2 ** 3 इस प्रकार है: (2 ** 2) ** 3
A) True
B) False ✔️

40.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
bool(‘False’)
bool()

A) True
True
B) False
True
C) False
False
D)True ✔️
False

41.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
[‘hello’, ‘morning’][bool(”)]
A) error
B) no output
C) hello ✔️
D) morning

42.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
not(3>4)
not(1&1)

A)True True
B)True ✔️
False
C)False
True
D)False
False

43.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
[‘f’, ‘t’][bool(‘spam’)]
A) t ✔️
B) f
C) No output
D) Error

44.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
l=[1, 0, 2, 0, ‘hello’, ”, []]
list(filter(bool, l))
A) Error
B) [1, 0, 2, 0, ‘hello’, “, []]
C) [1, 0, 2, ‘hello’, “, []]
D) [1, 2, ‘hello’] ✔️

45.Which of the following results in a SyntaxError?
निम्नलिखित में से कौन सा सिंटैक्सएरर में परिणाम देता है?
A) ‘”Once upon a time…”, she said.’
B) “He said, ‘Yes!'”
C) ‘3\’ ✔️
D) “‘That’s okay”‘

46.The following is displayed by a print function call. Select all of the function calls that result in this output.
निम्नलिखित एक प्रिंट फ़ंक्शन कॉल द्वारा प्रदर्शित किया जाता है। इस आउटपुट में सभी फ़ंक्शन कॉल का चयन करें।
tom
dick
harry

A) print(”’tom\ndick\nharry”’)
B) print(“’tomdickharry”’)
C) print(‘tom\ndick\nharry’) ✔️
D) print(‘tom dick harry’

47.What is the average value of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का औसत मूल्य क्या है?
>>>grade1 = 80
>>>grade2 = 90
>>>average = (grade1 + grade2) / 2

A) 85.0 ✔️
B) 85.1
C) 95.0
D) 95.1

48.Select all options that print.
प्रिंट करने वाले सभी विकल्पों का चयन करें।
hello-how-are-you
A) print(‘hello’, ‘how’, ‘are’, ‘you’)
B) print(‘hello’, ‘how’, ‘are’, ‘you’ + ‘-‘ * 4)
C) print(‘hello-‘ + ‘how-are-you’) ✔️
D) print(‘hello’ + ‘-‘ + ‘how’ + ‘-‘ + ‘are’ + ‘you’)

49.What is the return value of trunc()?
ट्रंक () का रिटर्न मान क्या है?
A) int ✔️
B) bool
C) float
D) None

50.What is the output of print 0.1 + 0.2 == 0.3?
0.1 + 0.2 == 0.3 प्रिंट का आउटपुट क्या है?
A) True
B) False ✔️
C) Machine dependent
D) Error

51.Which of the following is not a complex number?
निम्नलिखित में से कौन एक जटिल संख्या नहीं है?
A) k = 2 + 3j
B) k = complex(2, 3)
C) k = 2 + 3l ✔️
D) k = 2 + 3J

52.What is the type of inf? Inf का प्रकार क्या है?
A) Boolean
B) Integer
C) Float ✔️
D) Complex

53.What does ~4 evaluate to? ~ 4 किसका मूल्यांकन करता है?
A) -5 ✔️
B) -4
C) -3
D) +3

54.What does ~~~~~~5 evaluate to? ~~~~~~ 5 का क्या मूल्यांकन करता है?
A) +5 ✔️
B) -11
C) +11
D) -5

55.Which of the following is incorrect?
निम्नलिखित में से कौन गलत है?
A) x = 0b101
B) x = 0x4f5
C) x = 19023
D) x = 03964 ✔️

56.What is the result of cmp(3, 1)?
सीएमपी (3, 1) का परिणाम क्या है?
A) 1 ✔️
B) 0
C) True
D) False

57.Which of the following is incorrect?
निम्नलिखित में से कौन गलत है?
A) float(‘inf’)
B) float(‘nan’)
C) float(’56’+’78’)
D) float(’12+34′) ✔️

58.What is the result of round(0.5) – round(-0.5)?
राउंड (0.5) – राउंड (-0.5) का परिणाम क्या है?
A) 1.0
B) 2.0
C) 0.0
D) Value depends on Python version ✔️

59.What will be the output of the following Python expression?
निम्नलिखित पायथन अभिव्यक्ति का आउटपुट क्या होगा?
print(4.00/(2.0+2.0))
A) Error
B) 1.0 ✔️
C) 1.00
D) 1


60.What will be the output of the following Python code if the system date is 21st June, 2021 (Wednesday)?
यदि सिस्टम तिथि 21 जून, 2021 (बुधवार) है तो निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
[] or {}
{} or []
A)
[]
{}
B)
[]
[]
C) ✔️
{}
[]
D)
{}
{}

Relate Link