Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Week 1/Python I-O and Import, Operators and Namespace(MCQs).md
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@
- 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
- 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 :-*
*Answer :-B. This form of import prevents name clash*

*3. Which is the correct operator for power(xy)?*
- A. X^y
- B. X**y
- C. X^^y
- D. None of the mentioned

*Answer :-*
*Answer :-X**y*

*4. What is the order of precedence in python?
i) Parentheses
Expand All @@ -42,14 +42,14 @@
- 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))*
- A. 11 22 11.22
- B. TypeError
- C. 11 ‘22’ 11.22

*Answer :-*
*Answer :-B. TypeError*