Home
MCQs by exam
Python Interview Basics
Data Science
Python Interview Basics MCQs – Data Science
34 multiple choice questions typical of the Python Interview Basics exam, with answers and explanations. Switch on practice mode to test yourself first.
A
In the system32 folder
B
In the __pycache__ directory
Correct answer
C
In the Python install root only
D
They are never stored
print(6 & 7)
A
6
Correct answer
B
7
C
1
D
Error
A
CPython
B
PyPy
Correct answer
C
Jython
D
MicroPython
x, y = 'ab'
print(x)
A
b
B
a b
C
Error
D
a
Correct answer
A
3.8
B
3.6
C
3.10
Correct answer
D
3.12
A
Python Execution Protocol
B
Program Efficiency Plan
C
Python Enhancement Proposal
Correct answer
D
Package Extension Policy
A
Declaring project metadata and build configuration
Correct answer
B
Storing Python source
C
Storing test results
D
Logging output
A
It is still actively supported
B
It ends in 2030
C
It was never supported
D
It reached end of life on January 1, 2020
Correct answer
A
Lists names in the current scope
Correct answer
B
Lists files in a directory
C
Changes directory
D
Returns the current path
A
Installs a web framework
B
Runs unit tests
C
Compiles HTTP code
D
Starts a simple web server serving the current directory
Correct answer
A
Frozen processes
B
A frozen virtual environment
C
The Python version
D
Installed packages with their versions
Correct answer
print(5 ^ 6)
A
7
B
4
C
Error
D
3
Correct answer
A
Machine code for the CPU
B
The source text
C
Intermediate instructions compiled from source and run by the Python virtual machine
Correct answer
D
An encrypted file
A
Imports
B
Threads
C
Loops
D
The scope of the named variable inside a function
Correct answer
A
3.6
B
3.10
C
3.4
D
3.8
Correct answer
A
The last error
B
The result of the last expression
Correct answer
C
The current directory
D
A private variable
A
Installs minimal packages
B
Makes the output quieter
C
Compiles to machine code
D
Runs a library module as a script
Correct answer
A
Compiles a file
B
Checks code style
C
Runs the code string given on the command line
Correct answer
D
Clears the cache
A
Poetry
Correct answer
B
Cython
C
Jinja
D
Gunicorn
print(1
A
16
B
4
C
Error
D
8
Correct answer
A
Interpreted, high-level, dynamically typed
Correct answer
B
Compiled, low-level, statically typed
C
Assembly language
D
Markup language
A
The unique identity (memory address in CPython) of an object
Correct answer
B
The data type of an object
C
The length of an object
D
The hash of an object
A
By curly braces {}
B
By begin/end keywords
C
By semicolons
D
By indentation
Correct answer
A
Clever
B
Simple
Correct answer
C
Long
D
Nested
A
Guido van Rossum
Correct answer
B
James Gosling
C
Dennis Ritchie
D
Bjarne Stroustrup
Practise on paper
Preparing for Python Interview Basics?
Make it your exam plan: see your progress in every subject and topic, set a daily goal and practise what you have not done yet.
Start my Python Interview Basics plan
Test yourself
Take a timed online test and get a certificate, or play today's quick quiz.
Online tests
Daily quiz