diff --git a/Week 1/Python I-O and Import, Operators and Namespace(MCQs).md b/Week 1/Python I-O and Import, Operators and Namespace(MCQs).md index 824cca2..6fe0174 100644 --- a/Week 1/Python I-O and Import, Operators and Namespace(MCQs).md +++ b/Week 1/Python I-O and Import, Operators and Namespace(MCQs).md @@ -12,7 +12,7 @@ - C. Built-in namespace - D. Local namespace -*Answer :-* +*Answer :-B. Public namespace* *2. Which of the following is false about “from-import” form of import?* - A. The syntax is: from module name import identifier @@ -20,7 +20,7 @@ - C. The namespace of imported module becomes part of importing module - D. The identifiers in module are accessed directly as: identifier -*Answer :-* +*Answer :-B. This form of import prevents name clash* *3. Which is the correct operator for power(xy)?* - A. X^y @@ -28,7 +28,7 @@ - C. X^^y - D. None of the mentioned -*Answer :-* +*Answer :-X**y* *4. What is the order of precedence in python? i) Parentheses @@ -42,7 +42,7 @@ - C. ii,i,iv,iii,v,vi - D. i,ii,iii,iv,vi,v -*Answer :-* +*Answer :-A. i,ii,iii,iv,v,vi* *5. What is the output of the following print() function? print('%d %d %.2f' % (11, '22', 11.22))* @@ -50,6 +50,6 @@ print('%d %d %.2f' % (11, '22', 11.22))* - B. TypeError - C. 11 ‘22’ 11.22 -*Answer :-* +*Answer :-B. TypeError*