Completed

Python Basics + Execution

Class 11 · Informatics Practices Mon, 5 Oct 2026 8:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
In Python's interactive mode, what symbol is used as the prompt to indicate the interpreter is ready to accept a statement?
>>> ✓
$$$
###
///
Q2mcq1 mark
Which statement about Python's script mode is correct?
The program is stored in a file and executed all at once by the interpreter ✓
Each statement is typed and evaluated one at a time with immediate feedback
Script mode requires no file to be saved before execution
Script mode does not allow the use of comments
Q3mcq1 mark
A Python source file saved with which extension can be run in script mode?
.py ✓
.pyt
.python
.ps
Q4mcq1 mark
Which of the following is a Python keyword and therefore cannot be used as a variable name?
if ✓
total
value1
my_var
Q5mcq1 mark
Which of the following is a valid Python identifier?
_marks2 ✓
2marks
class
my-mark
Q6mcq1 mark
In the statement `age = 15`, what type of token is `15`?
A numeric literal ✓
A keyword
An identifier
A punctuator
Q7mcq1 mark
Which of these is classified as a punctuator in Python?
: ✓
if
100
count
Q8mcq1 mark
In Python, indentation is used primarily to:
Define blocks of code belonging to a statement ✓
Make code run faster
Declare variable types
Import external modules
Q9mcq1 mark
What happens when statements inside the same block are indented with an inconsistent number of spaces?
Python raises an IndentationError ✓
Python ignores the inconsistency and runs normally
Python automatically corrects the indentation
Python converts the block into a comment
Q10mcq1 mark
Which of the following correctly represents indentation rules in Python?
All statements within the same block must be indented at the same level ✓
Only the first statement in a block needs to be indented
Indentation is optional and only affects readability
Indentation is required only for loops, not for if statements
Q11mcq1 mark
Which statement about Python variables is true?
A variable is created the moment a value is first assigned to it ✓
A variable must be declared with a data type before assignment
A variable name can start with a digit
A variable's type is fixed for its entire lifetime
Q12mcq1 mark
What is the value of `x` after executing `x = 5` followed by `x = "hello"`?
"hello" ✓
5
Error
None
Q13mcq1 mark
Which statement performs multiple assignment correctly in a single line, assigning 10 to a, 20 to b, and 30 to c?
a, b, c = 10, 20, 30 ✓
a = b = c = 10, 20, 30
a; b; c = 10; 20; 30
a, b, c := 10, 20, 30
Q14mcq1 mark
In Python, which symbol is used to begin a single-line comment?
# ✓
//
/*
--
Q15mcq1 mark
Which statement about Python comments is correct?
Comments are ignored by the interpreter during execution ✓
Comments must be placed only at the beginning of a file
Comments are executed but produce no output
A comment can only contain numeric text
Next Live Challenge
DQL — BETWEEN + Logical Operators
Class 11 · Informatics Practices Fri, 23 Oct 2026, 8:00 PM
View Live Challenges →

← Back to Live Challenge History · Practice MCQs

CodeBuddy
Hi there! 👋 I'm CodeBuddy, your KV Coders assistant.

To help me give you the most accurate answers, please select your class and subject below, or just type your question!
Buddy is typing...