0x02. Python - Import & Modules Quiz

Thảo luận trong 'Kinh nghiệm kinh doanh' bởi mmocodervietnam, 23/10/2023.

  1. mmocodervietnam

    mmocodervietnam Thành viên tích cực

    Tham gia:
    13/10/2023
    Bài viết:
    678
    Đã được thích:
    0
    Điểm thành tích:
    16
    **0x02. Python - Import & Modules Quiz**

    **Hashtags:** #python #import #modules #quiz #programming

    **Instructions:**

    1. This is a multiple-choice quiz on Python imports and modules.
    2. Each question has four possible answers.
    3. You have 10 minutes to complete the quiz.
    4. Good luck!

    **Question 1:**

    What is the syntax for importing a module in Python?

    (A) `import module`
    (B) `from module import *`
    (C) `from module import function`
    (D) `import module as m`

    **Question 2:**

    What is the difference between `import` and `from`?

    (A) `import` imports the entire module, while `from` imports only specific parts of the module.
    (B) `import` imports the module into the current namespace, while `from` imports the module
    Chi tiết tại: https://tricksmmo.com/threads/0x02-python-import-modules-quiz.192797/
     

    Xem thêm các chủ đề tạo bởi mmocodervietnam
    Đang tải...


Chia sẻ trang này