Python basics, tokens, identifiers and comments Theory + PYQ
What We'll Learn
A quick overview of today's lecture
Python basics, tokens, identifiers and comments Theory + PYQ
COMBINED THEORY + PYQ (single slot).
Concept ID: U1_PYTHON_BASICS.
Primary Sub-subtopic: Python basics, tokens, identifiers and comments.
Question-bank grouping: Revision of Python & Core Concepts.
Teach the core theory first, then spend the remainder of the lecture on previous-year questions whose concept_ids include U1_PYTHON_BASICS.
Key things we'll cover
Python basics, tokens, identifiers and comments
PYQ references used by all prompt types11 included0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
Included
ID 6472 · 2021 · 1 mark(s)
Find the invalid identifier from the following:
a) none
b) address
c) Name
d) pass
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6493 · 2021 · 1 mark(s)
Which one of the following is the default extension of a Python file?
a) .exe
b) .p++
c) .py
d) .p
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6494 · 2021 · 1 mark(s)
Which of the following symbol is used in Python for single line comment?
a) /
b) /*
c) //
d) #
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6527 · 2022 · 1 mark(s)
State True or False:
"Variable declaration is implicit in Python."
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6087 · 2023 · 1 mark(s)
State True or False.
"Identifiers are names used to identify a variable, function in a program".
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6088 · 2023 · 1 mark(s)
Which of the following is a valid keyword in Python ?
(a) false
(b) return
(c) non_local
(d) none
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6284 · 2023 · 1 mark(s)
State True or False.
"Comments are not executed by interpreter."
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6131 · 2024 · 1 mark(s)
State True or False:
"Python is a high level language."
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6132 · 2024 · 1 mark(s)
Which of the following is a valid identifier ?
(A) break
(B) global
(C) 2bin
(D) except
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6333 · 2024 · 1 mark(s)
Identify the valid Python identifier from the following :
(A) 2user
(B) user@2
(C) user_2
(D) user 2
Revision of Python & Core Concepts → Python basics tokens identifiers and comments
Included
ID 6176 · 2025 · 1 mark(s)
Which of the following is the correct identifier?
(A) global
(B) Break
(C) def
(D) with
Revision of Python & Core Concepts → Python basics tokens identifiers and comments