Home
MCQs by exam
Python Interview Basics
Python Interview Basics MCQs · Page 2
34 multiple choice questions typical of the Python Interview Basics exam, with answers and explanations. Switch on practice mode to test yourself first.
A
typeof()
B
datatype()
C
type()
Correct answer
D
class()
A
The Python style guide for writing readable code
Correct answer
B
A Python package manager
C
A built-in Python module
D
The Python license
A
2 spaces
B
4 spaces
Correct answer
C
8 spaces
D
1 tab
A
Define the main function
B
Import the main module
C
Exit the program
D
Run code only when the file is executed directly, not imported
Correct answer
A
npm
B
gem
C
pip
Correct answer
D
maven
A
Using backslashes only
B
Using double hash
C
Using triple quotes
Correct answer
D
Using <<EOF
A
lambda
B
yield
C
global
D
goto
Correct answer
A
import zen
B
import this
Correct answer
C
from python import zen
D
print(zen)
A
func
B
function
C
def
Correct answer
D
define
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