You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which of the following is not a valid namespace?
a) Global namespace
b) Public namespace
c) Built-in namespace
d) Local namespace
ANSWER:-
Which of the following is false about “from-import” form of import?
a) The syntax is: from module name import identifier
b) This form of import prevents name clash
c) The namespace of imported module becomes part of importing module
d) The identifiers in module are accessed directly as: identifier
ANSWER:-
Which is the correct operator for power(xy)?
a) X^y
b) X**y
c) X^^y
d) None of the mentioned
ANSWER:-
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
ANSWER:-
5. What is the output of the following print() function
print('%d %d %.2f' % (11, '22', 11.22))
a) 11 22 11.22
b) TypeError
c) 11 ‘22’ 11.22
ANSWER:-
The text was updated successfully, but these errors were encountered:
a) Global namespace
b) Public namespace
c) Built-in namespace
d) Local namespace
ANSWER:-
a) The syntax is: from module name import identifier
b) This form of import prevents name clash
c) The namespace of imported module becomes part of importing module
d) The identifiers in module are accessed directly as: identifier
ANSWER:-
a) X^y
b) X**y
c) X^^y
d) None of the mentioned
ANSWER:-
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
ANSWER:-
5. What is the output of the following print() function
print('%d %d %.2f' % (11, '22', 11.22))
a) 11 22 11.22
b) TypeError
c) 11 ‘22’ 11.22
ANSWER:-
The text was updated successfully, but these errors were encountered: