Prepstellar

Python Fundamentals · Practice set 1 of 8

What Is Python?: 10 practice questions

10 questions · Untimed · Free

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.

Set 1 · What Is Python? · 10 questions Read the lesson
  1. Question 1 of 10

    Which description best matches Python?

    1. AA graphical interface toolkit
    2. BA high-level interpreted programming language
    3. CA file-moving shell command with no program structure
    4. 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
  2. Question 2 of 10

    Which task is an example of a problem Python can address?

    1. ALinking every script before the interpreter can read it
    2. BManually editing every file
    3. CAutomating changes across many text files
    4. 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
  3. Question 3 of 10

    What does Python's interpreted nature enable during development?

    1. ARunning code without a separate compilation and linking step
    2. BUsing the language without an interpreter or runtime
    3. CReplacing all program structure with operating-system commands
    4. 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
  4. Question 4 of 10

    How does Python compare with a shell script for a growing program?

    1. APython offers more structure and support for large programs
    2. BPython is limited to moving files and changing text data
    3. CPython requires each statement to be linked before it is tested
    4. 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
  5. Question 5 of 10

    Which Python characteristic helps express complex operations compactly?

    1. AGrouping code with brackets
    2. BA mandatory declaration for every variable and argument
    3. CHigh-level built-in data types
    4. 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
  6. Keep the ones you got wrong

    In the app, every question you miss comes back exactly when you’re about to forget it.

  7. Question 6 of 10

    Which set lists operating-system families where Python is available?

    1. AUnix only, with no Windows or macOS availability
    2. BWindows, macOS, and Unix
    3. CWindows only
    4. 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
  8. Question 7 of 10

    How can Python participate in an application written in C?

    1. ARewrite every module as a shell file
    2. BIt replaces the application's programmable interface with fixed text files
    3. CIt prevents the application from calling functions implemented in C or C++
    4. 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
  9. 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?

    1. AUse a batch file for the graphical application
    2. BUse a platform-specific shell command and avoid reusable program units
    3. CDelay every test until a separately linked application is complete
    4. 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
  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?

    1. ARequire full compilation and linking before each experiment
    2. BPostpone all function checks until the final program is packaged
    3. CUse a shell without Python
    4. 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
  11. 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?

    1. AReplace the C operation with a batch file and remove the programmable interface
    2. BUse Python only for file movement and prohibit application embedding
    3. CCompile the entire host application as a Python dictionary before execution
    4. 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
  12. 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.