Python Bindings: Calling C or C++ From Python Quiz

Interactive Quiz ⋅ 11 Questions
By Joseph Peart

In this quiz, you’ll test your understanding of Python Bindings: Calling C or C++ From Python.

By working through this quiz, you’ll revisit why you might call C or C++ from Python, and what you need to watch out for when marshaling data and managing memory across the language barrier. You’ll also compare how ctypes, CFFI, PyBind11, and Cython each approach the job of creating Python bindings.

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

Python Bindings: Calling C or C++ From Python

Tutorial

Python Bindings: Calling C or C++ From Python

Learn how Python bindings let you call C or C++ code from Python, and compare tools like ctypes, CFFI, PyBind11, and Cython.

advanced python tools