Python tokens, identifiers, variables and comments PYQ part 2
What We'll Learn
A quick overview of today's lecture
Python tokens, identifiers, variables and comments PYQ part 2
PYQ PRACTICE SCOPE: Python tokens, identifiers, variables and comments.
Concept ID: XI_U2_TOKENS_IDENTIFIERS_VARIABLES_COMMENTS.
Use only previous-year questions whose concept_ids include XI_U2_TOKENS_IDENTIFIERS_VARIABLES_COMMENTS.
Key things we'll cover
Python tokens, identifiers, variables and comments
PYQ references used by all prompt types6 included0 excluded
Flagged questions are excluded from Study Notes, PPT, and Student Notes references until corrected in Paper Analyzer.
Included
ID 1231 · 2025 · 1 mark(s)
Identify the valid identifiers from the following:
(a) Abc
(b) if
(c) WHILE
(d) 1_g
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments
Included
ID 1254 · 2025 · 1 mark(s)
Identify the invalid keyword in Python from the following:
(a) for
(b) import
(c) none
(d) break
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments
Included
ID 1337 · 2025 · 1 mark(s)
Which of the following is the correct identifier?
A) continue
B) Break
C) -student
D) mark$
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments
Included
ID 1353 · 2025 · 1 mark(s)
Assertion (A): In Python, None is the same as 0 and used to represent zero.
Reason (R):The keyword None is used in Python to denote the absence of a value or a null value.
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments
Included
ID 1382 · 2025 · 1 mark(s)
Which of the following is an invalid identifier in Python?
(a) price
(b) _discount
(c) 2ndValue
(d) salePrice
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments
Included
ID 1426 · 2025 · 1 mark(s)
Which of the following is an invalid identifier in Python?
(a) Sumval
(b) Fibo_val
(c) Cust#ID
(d) EmpName
Python Basics and Data Concepts → Python tokens, identifiers, variables and comments