Podcast
Questions and Answers
Which of the following is the correct syntax for importing the 'math' module in Python?
Which of the following is the correct syntax for importing the 'math' module in Python?
- import 'math' module
- import math (correct)
- importing math
- import module math
What is the purpose of the 'import' statement in Python?
What is the purpose of the 'import' statement in Python?
- To define a new function
- To execute a loop
- To import a module or library (correct)
- To declare a variable
Which of the following statements is true about the 'import' statement in Python?
Which of the following statements is true about the 'import' statement in Python?
- It is optional and not necessary for running Python programs
- It can only be used to import built-in modules
- It can only be used at the beginning of a Python program
- It can be used to import user-defined modules (correct)
The 'import' statement is used to load a module into a Python script.
The 'import' statement is used to load a module into a Python script.
The 'import' statement can only be used to import built-in modules.
The 'import' statement can only be used to import built-in modules.
The 'import' statement is case-sensitive in Python.
The 'import' statement is case-sensitive in Python.
Flashcards are hidden until you start studying