Back to Must-Know Dashboard

Python

Must-Know Practice Sets

Overall Progress0 / 8 Modules Completed
Introduction to Python#1

Identify which of the following is an interpreted language.

A
Pascal
B
C
C
Python
D
C++

Pascal, C and C++ are all compiled languages. Python is an interpreted language — the official implementation uses byte code interpretation.

Introduction to Python#2

Python syntax is case-sensitive. State true or false.

A
True
B
False

Case sensitivity means that 'x' is different from 'X', and 'John' is different from 'john'. Python syntax is case-sensitive.

Introduction to Python#3

Select the command to be used to run the Python script file named t.py.

A
go python t.py
B
run python t.py
C
execute python t.py
D
python t.py

To run Python files from the command prompt, set the path of Python and run the file using: python filename.py

Introduction to Python#4

Select the method that can be used to create a directory in Python.

A
os.mkdir()
B
os.make_dir()
C
os.create_dir()
D
os.creat_dir()

Python's OS module provides os.mkdir(path) to create a directory. It creates a directory at the specified path.

Introduction to Python#5

Name the creator of Python.

A
Steve Jobs
B
Guido van Rossum
C
James Gosling
D
Bill Gates

Guido van Rossum is the creator of Python. Python was conceived in the late 1980s and its implementation was started in December 1989.

Introduction to Python#6

In Python, who detects the syntax error and when?

A
interpreter/at compile time
B
compiler/at runtime
C
compiler/at compile time
D
interpreter/at runtime

Syntax errors arise when the Python parser is unable to understand a line of code. They are reported by the interpreter at runtime.

Introduction to Python#7

Identify the symbol that a Python single-line comment begins with.

A
#
B
//
C
/*
D
$$

Single-line comments in Python begin with the hash (#) character and are automatically terminated by the end of that line.

Introduction to Python#8

Identify the style that Python paragraph (multi-line) comments use.

A
// comments //
B
''' comments '''
C
/* comments */
D
# comments #

For writing Python paragraph comments, you may use triple-quoted strings (''' or """). Add the triple-quoted string at the beginning and end of the comment block.

Introduction to Python#9

Select the command to be used to start Python from the command prompt.

A
python
B
execute python
C
go python
D
run python

The command 'python' must be used to start the Python interactive interpreter from the command prompt.

Introduction to Python#10

Select the correct code snippet: A: print("Programming is fun") print("Python is fun") [extra indentation on second line] B: print("Programming is fun") print("Python is fun") C: print("Programming is fun) print("Python is fun") D: print("Programming is fun") print("Python is fun)

A
A
B
B
C
C
D
D

Option A has wrong indentation (Python is sensitive to indentation). Options C and D have missing closing quotation marks. Option B is syntactically correct.

Master the remaining 49 Must-Know questions

You've seen the basics. Unlock the full database of verified simulations and guarantee your selection with the 2026 Success Pass.

Unlock Success Pass — ₹99

Key Topics to Study

Based on our question bank analysis, master these concepts to score high in Python.

Recommended

Success Primer Exam

Test your knowledge under real exam conditions with our curated mock assessment.

Start Preparing for Primers
Watch Walkthroughs!