Python Fundamentals · Practice set 1 of 8
What Is Python?: 10 practice questions
10 free Python Fundamentals practice questions on What Is Python?, with an explanation for every answer. Untimed. The full mock exam and the timed version are in the app.
-
Question 1 of 10
Which description best matches Python?
- AA graphical interface toolkit
- BA high-level interpreted programming language
- CA file-moving shell command with no program structure
- DA compile-and-link tool restricted to one operating system
Show the answer
Python is a full high-level programming language whose interpreted nature supports scripting and rapid application development.
Next → 1 / 10 -
Question 2 of 10
Which task is an example of a problem Python can address?
- ALinking every script before the interpreter can read it
- BManually editing every file
- CAutomating changes across many text files
- DRunning programs solely on a single operating system
Show the answer
Bulk search-and-replace over text files is one documented example of practical automation with Python.
Next → 2 / 10 -
Question 3 of 10
What does Python's interpreted nature enable during development?
- ARunning code without a separate compilation and linking step
- BUsing the language without an interpreter or runtime
- CReplacing all program structure with operating-system commands
- DRestricting experiments until an entire application is complete
Show the answer
The interpreter can run Python code directly, shortening the path from writing a change to trying it.
Next → 3 / 10 -
Question 4 of 10
How does Python compare with a shell script for a growing program?
- APython offers more structure and support for large programs
- BPython is limited to moving files and changing text data
- CPython requires each statement to be linked before it is tested
- DPython removes modules so the program remains a single command
Show the answer
Python can begin with automation while still providing structures that support larger programs.
Next → 4 / 10 -
Question 5 of 10
Which Python characteristic helps express complex operations compactly?
- AGrouping code with brackets
- BA mandatory declaration for every variable and argument
- CHigh-level built-in data types
- DRemoval of arrays, dictionaries, and other containers
Show the answer
High-level data types can express complex work in a single statement and contribute to compact programs.
Next → 5 / 10 -
Keep the ones you got wrong
In the app, every question you miss comes back exactly when you’re about to forget it.
-
Question 6 of 10
Which set lists operating-system families where Python is available?
- AUnix only, with no Windows or macOS availability
- BWindows, macOS, and Unix
- CWindows only
- DmacOS only, with no Windows or Unix availability
Show the answer
The introductory documentation identifies Windows, macOS, and Unix as supported operating-system families.
Next → 6 / 10 -
Question 7 of 10
How can Python participate in an application written in C?
- ARewrite every module as a shell file
- BIt replaces the application's programmable interface with fixed text files
- CIt prevents the application from calling functions implemented in C or C++
- DIts interpreter can serve as an embedded extension or command language
Show the answer
Python supports embedding the interpreter in another application to provide programmable behavior.
Next → 7 / 10 -
Question 8 of 10
A team needs a portable first draft of a small graphical application and wants more program structure than a batch file. Which choice best fits both constraints?
- AUse a batch file for the graphical application
- BUse a platform-specific shell command and avoid reusable program units
- CDelay every test until a separately linked application is complete
- DUse Python as a full high-level programming language
Show the answer
Python combines availability across major desktop platforms with structure beyond shell scripts and support for graphical applications.
Next → 8 / 10 -
Question 9 of 10
A developer wants to test individual functions immediately and avoid a compile-link cycle after each edit. Which Python capability satisfies both needs?
- ARequire full compilation and linking before each experiment
- BPostpone all function checks until the final program is packaged
- CUse a shell without Python
- DUse the interpreter interactively during development
Show the answer
Interactive interpreter use supports feature experiments and bottom-up function testing without a separate compilation and linking stage.
Next → 9 / 10 -
Question 10 of 10
An existing C application needs a programmable command language, and one performance-critical operation should remain implemented in C. Which design matches Python's documented extensibility?
- AReplace the C operation with a batch file and remove the programmable interface
- BUse Python only for file movement and prohibit application embedding
- CCompile the entire host application as a Python dictionary before execution
- DEmbed the Python interpreter and expose the C operation through an extension
Show the answer
Python can be embedded as an extension language while new built-in functions or modules connect to C or C++ operations.
Next → 10 / 10 -
You’ve finished this set
That’s 10 questions on What Is Python?. In the app the ones you miss come back exactly when you’re about to forget them.
The whole course, on your phone
Lessons you can read, audio you can listen to on the way to work, and practice that remembers what you got wrong.