NIELIT M3-R5 O Level Model Paper

NIELIT M3-R5 O Level Model Paper

1.Operators with the same precedence are evaluated in which manner?
एक ही पूर्वता वाले ऑपरेटरों का मूल्यांकन किस तरीके से किया जाता है?
A) Left to Right ✔️
B) Right to Left
C) Can’t say
D) None of the mentioned

2.What is the output of this expression,3*1**3?
इस अभिव्यक्ति का आउटपुट क्या है, 3 * 1 ** 3?
A) 27
B) 9
C) 3 ✔️
D) 1

3.Which one of the following has the same precedence level?
निम्नलिखित में से किसकी समान पूर्वता का स्तर है?
A) Addition and Subtraction ✔️
B) Multiplication, Division and Addition
C) Multiplication, Division, Addition and Subtraction
D) Addition and Multiplication

4.The expression Int(x) implies that the variable x is converted to integer.
Int (x) का अर्थ है कि चर x पूर्णांक में बदल जाता है।
A) True ✔️
B) False

5.Which one of the following has the highest precedence in the expression?
निम्नलिखित में से किसकी अभिव्यक्ति में सर्वोच्च मिसाल है?
A) Exponential
B) Addition
C) Multiplication
D) Parentheses ✔️

6.Which of these in not a core data type?
इनमें से कौन एक कोर डेटा प्रकार नहीं है?
A) Lists
B) Dictionary
C) Tuples
D) Class ✔️

7.Given a function that does not return any value, What value is thrown by default when executed in shell.
एक फ़ंक्शन को देखते हुए जो किसी भी मूल्य को वापस नहीं करता है, शेल में निष्पादित होने पर डिफ़ॉल्ट रूप से क्या मूल्य फेंक दिया जाता है।
A) int
B) bool
C) void
D) None ✔️

8.What will be the output of the following Python code?
निम्नलिखित पायथन कोड का आउटपुट क्या होगा?
>>>str=”hello”
>>>str[:2]
>>>
A) he ✔️
B) lo
C) olleh
D) hello

9.Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटियों के बिना चलेगा?
A) round(45.8) ✔️
B) round(6352.898,2,5)
C) round()
D) round(7463.123,2,1)

10.Which of the following will run without errors?
निम्नलिखित में से कौन सी त्रुटियों के बिना चलेगा?
A) round(45.8) ✔️
B) round(6352.898,2,5)
C) round()
D) round(7463.123,2,1)

11.In Python we do not specify types, it is directly interpreted by the compiler, so consider the following operation to be performed.
पायथन में हम प्रकारों को निर्दिष्ट नहीं करते हैं, यह सीधे संकलक द्वारा व्याख्या की जाती है, इसलिए निम्नलिखित ऑपरेशन पर विचार करें।
>>>x = 13 ? 2
objective is to make sure x has a integer value, select all that apply (Python 3.xx)
उद्देश्य यह सुनिश्चित करना है कि x का पूर्णांक मान है, जो लागू होता है उसे चुनें (Python 3.xx)
A) x = 13 // 2
B) x = int(13 / 2)
C) x = 13 % 2
D) All of the mentioned ✔️

12.What error occurs when you execute the following Python code snippet?
निम्न पायथन कोड स्निपेट निष्पादित करते समय क्या त्रुटि होती है?
apple = mango
A) SyntaxError
B) NameError ✔️
C) ValueError
D) TypeError

13.What will be the output of the following Python code snippet?
निम्नलिखित पायथन कोड स्निपेट का आउटपुट क्या होगा?
def example(A):
a = a + ‘2’
a = a*2
return a
>>>example(“hello”)

A) indentation Error ✔️
B) cannot perform mathematical operation onstrings
C) hello2
D) hello2hello2

14.What data type is the object below?
नीचे दिए गए ऑब्जेक्ट का डेटा प्रकार क्या है?
L = [1, 23, ‘hello’, 1]
A) list
B) dictionary
C) array
D) tuple ✔️

15.In order to store values in terms of key and value we use what core data type.
कुंजी और मान के संदर्भ में मूल्यों को संग्रहीत करने के लिए हम किस प्रकार के मुख्य डेटा का उपयोग करते हैं।
A) list
B) tuple
C) class
D) dictionary ✔️

16.Is Python case sensitive when dealing with identifiers?
क्या पहचानकर्ताओं के साथ व्यवहार करते समय पायथन मामला संवेदनशील है?
A) yes ✔️
B) no
C) machine dependent
D) none of the mentioned

17.What is the maximum possible length of an identifier?
एक पहचानकर्ता की अधिकतम संभव लंबाई क्या है?
A) 31 characters
B) 63 characters
C) 79 characters
D) none of the mentioned ✔️

18.Which of the following is invalid?
निम्नलिखित में से कौन सा अमान्य है?
A) _a = 1
B) __a = 1
C) __str__ = 1
D) None of the mentioned ✔️

19.Which of the following is an invalid variable?
निम्नलिखित में से कौन सा एक अमान्य वेरिएबल है?
A) my_string_1
B) 1st_string ✔️
C) foo
D) _

20.Why are local variable names beginning with an underscore discouraged?
अंडरस्कोर से शुरू होने वाले स्थानीय वेरिएबल नाम क्यों हतोत्साहित किए जाते हैं?
A) they are used to indicate a private variables of a class ✔️
B) they confuse the interpreter
C) they are used to indicate global variables
D) they slow down execution

21.Which of the following is not a keyword?
निम्नलिखित में से कौन सा एक कीवर्ड नहीं है?
A) eval ✔️
B) assert
C) nonlocal
D) pass

22.All keywords in Python are in____
पायथन में सभी कीवर्ड ____ में हैं
A) Lower case
B) UPPER CASE
C) Capitalized
D) None of the mentioned ✔️

23.Which of the following is true for variable names in Python?
पायथन में वेरिएबल नामों के लिए निम्नलिखित में से कौन सा सही है?
A) Unlimited length ✔️
B) All private members must have leading and trailing underscores
C) Underscore and ampersand are the only two special characters allowed
D) None of the mentioned

24.Which of the following is an invalid statement?
निम्नलिखित में से कौन सा एक अमान्य कथन है?
A) abc = 1,000,000
B) a b c = 1000 2000 3000 ✔️
C) a,b,c = 1000, 2000, 3000
D) a_b_c = 1,000,000

25.Which of the following cannot be a variable?
निम्नलिखित में से कौन सा एक वेरिएबल नहीं हो सकता है?
A) __init__
B) in ✔️
C) it
D) on

26.Which is the correct operator for power(xy)?
पावर (xy) के लिए सही ऑपरेटर कौन सा है?
A) X^y
B) X**y ✔️
C) X^^y
D) None of the mentioned

27.Which one of these is floor division?
इनमें से कौन सा फलोर डीवीजन है?
A) /
B) // ✔️
C) %
D) None of the mentioned

28.What is the order of precedence in Python?
पायथन में पूर्वता का क्रम क्या है?
i) Parentheses
ii) Exponential
iii) Multiplication
iv) Division
v) Addition
vi) Subtraction
A) i,ii,iii,iv,v,vi ✔️
B) ii,i,iii,iv,v,vi
C) ii,i,iv,iii,v,vi
D) i,ii,iii,iv,vi,v

29.What is the answer to this expression, 22 % 3 is?
इस अभिव्यक्ति का उत्तर 22% 3 क्या है?
A) 7
B) 1 ✔️
C) 0
D) 5

30.Mathematical operations can be performed on a string.
गणितीय संचालन एक स्ट्रिंग पर किया जा सकता है।
A) True
B) False ✔️

Relate Link