Bird
0
0

Which of the following is the correct syntax to import a custom module named utils?

easy📝 Syntax Q3 of 15
Python - Modules and Code Organization
Which of the following is the correct syntax to import a custom module named utils?
Aimport utils
Binclude utils
Cusing utils
Drequire utils
Step-by-Step Solution
Solution:
  1. Step 1: Recall Python import syntax

    Python uses the keyword 'import' to bring in modules.
  2. Step 2: Identify correct keyword for importing

    Only 'import' is valid; 'include', 'using', and 'require' are not Python keywords.
  3. Final Answer:

    import utils -> Option A
  4. Quick Check:

    Import syntax = import module_name [OK]
Quick Trick: Use 'import' keyword to bring in modules [OK]
Common Mistakes:
  • Using keywords from other languages like include or require
  • Forgetting to use import keyword
  • Trying to use 'using' which is not Python syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Python Quizzes