1) What is a namespace in Python? a) A type of loop b) A container that maps names to objects c) A function that stores variables d) A file containing all variable names 2) Which of the following is an example of a built-in namespace? a) Variables inside a function b) Variables declared at the top of a script c) Functions such as print() and list() d) Variables declared using the global keyword 3) Where does Python search for a variable first? a) Built-in namespace b) Global namespace c) Local namespace d) Parent namespace 4) In the following code, which variable has local scope?  a) school_name b) year c) student_name d) None of the above 5) What is the main error in the following code? a) Syntax error b) interest is a global variable c) interest is used outside the function (local variable) d) All the above

ลีดเดอร์บอร์ด

สไตล์ภาพ

ตัวเลือก

สลับแม่แบบ

คืนค่าการบันทึกอัตโนมัติ: ใช่ไหม