
Exploring Python: Features and Modes
Authored by Anju Harshan
Computers
10th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes Python's typing system?
Python uses static typing, where variable types must be declared before use
Python uses dynamic typing, where variable types are determined at runtime
Python requires explicit type casting for all variable assignments
Python only supports integer and string data types
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a key advantage of Python being an interpreted language?
It compiles the entire program before execution, making it faster
It requires a separate compiler tool to run programs
It executes code line by line, making debugging easier
It converts code directly into machine language without any intermediate steps
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Python's interactive mode, which symbol typically appears to indicate that the interpreter is ready to accept input?
`#>`
`>>`
`>>>`
`$>`
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a known limitation of Python compared to languages like C or C++?
Python does not support object-oriented programming
Python cannot handle large datasets
Python has slower execution speed due to being interpreted
Python does not support functions or modules
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When writing a Python program in script mode, where is the code typically saved?
Directly in the computer's RAM
In a file with a `.py` extension
In a file with a `.exe` extension
In the Python interpreter's memory buffer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A student wants to quickly test a small Python expression like `2 ** 8` to see its result without writing a full program. Which mode should the student use and why?
Script mode, because it saves the result permanently to a file
Interactive mode, because it immediately evaluates and displays the result of expressions
Script mode, because it is faster for single-line expressions
Interactive mode, because it compiles the expression into machine code instantly
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A developer needs to build a large application that will be reused multiple times. Considering the features of script mode and interactive mode, which mode is more appropriate and what is the primary reason?
Interactive mode, because it allows the developer to see output immediately after each line
Interactive mode, because it stores all code permanently in the system
Script mode, because the code can be saved, edited, and executed repeatedly as a complete program
Script mode, because it prevents any runtime errors from occurring
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?