COPA programming in python Page-2 Question Bank

6.  What the sort( ) function will return if [ʹoneʹ, ʹfourʹ, ʹthreeʹ, ʹtwoʹ] is a list object?
यदि ['one', 'four', 'three', 'two'] एक लिस्ट ऑब्जेक्ट है तो sort( ) फ़ंक्शन क्या रिटर्न करेगा ?  [NCVT Exam 24]

(A) ['four', 'three', 'two', 'one']
(B) ['four', 'one', 'three', 'two']
(C) ['one', 'two', 'three', 'four']
(D) {"four","one","three","two"}

7.  What is the data type of print (type(0xFF))?
प्रिंट (type(0xFF)) का डेटा टाइप क्या है?  [NCVT Exam 24]

(A) hexint
(B) hex
(C) number
(D) int

8.  Which keyword adds an alternative condition to an if statement?
कौन सा कीवर्ड if स्टेटमेंट में वैकल्पिक नियम जोड़ता है?  [NCVT Exam 24]

(A) elif
(B) elseif
(C) else if
(D) if else

9.  Which is a valid Python file extension?
वैध पायथन फाइल एक्सटेंशन कौन सा है?  [NCVT Exam 24]

(A) .pl
(B) .p
(C) .python
(D) .py 

10.  Which defines a block of code in Python language?
पाइथॉन भाषा में कोड के ब्लॉक को कौन परिभाषित करता है?  [NCVT Exam 24]

(A) Brackets
 ब्रैकेट
(B) Line break
 लाइन ब्रेक
(C) Key
 की
(D) Indentation
 इंडेंटेशन