From fd9a9c6e2ebf3ddf8e721f3c1cf55726f3d67231 Mon Sep 17 00:00:00 2001 From: sakshi jain <60092734+sakshi-jain24@users.noreply.github.com> Date: Fri, 11 Sep 2020 21:46:04 +0530 Subject: [PATCH] Name :- Sakshi Jain College and year :- Samrat Ashoka Technological Institute, VIDISHA and 3rd year --- ...on I-O and Import, Operators and Namespace(MCQs).md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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*