Completed

Class 11 CS – Python Fundamentals & Control Flow Test

Class 11 · Computer Science Sun, 13 Sep 2026 9:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1output1 mark
What will be the output of the following Python code?
a = 7
b = 3
print(a + b * 2)
print((a + b) * 2)
Correct output: 13 20
Q2mcq1 mark
Which of the following statements correctly describes an immutable data type?
Its contents can always be changed after creation
Its value cannot be changed after creation ✓
It can store only numeric values
It can contain only one element
Q3output1 mark
What will be the output of the following Python code?
x = 17
y = 5

print(x // y)
print(x % y)
Correct output: 3 2
Q4output1 mark
What will be the output of the following Python code?
s = "COMPUTER"

print(s[2])
print(s[-2])
Correct output: M E
Q5output1 mark
What will be the output of the following Python code?
s = "PYTHON"

print(s[1:5])
print(s[:3])
Correct output: YTHO PYT
Q6output1 mark
What will be the output of the following Python code?
a = "Good"
b = "Luck"

print(a + " " + b)
print(a * 2)
Correct output: Good Luck GoodGood
Q7mcq1 mark
Which of the following correctly converts the string "25" into an integer and then adds 5?
"25" + 5
int("25") + 5 ✓
float("25") + "5"
str("25") + 5
Q8output1 mark
What will be the output of the following Python code?
x = 12

if x > 10:
    print("A")
if x > 15:
    print("B")
else:
    print("C")
Correct output: A C
Q9output1 mark
What will be the output of the following Python code?
n = 21

if n % 2 == 0:
    print("Even")
elif n % 3 == 0:
    print("Divisible by 3")
else:
    print("Other")
Correct output: Divisible by 3
Q10output1 mark
What will be the output of the following Python code?
total = 0

for i in range(1, 6):
    total += i

print(total)
Correct output: 15
Q11output1 mark
What will be the output of the following Python code?
x = 2

while x < 20:
    x = x * 2

print(x)
Correct output: 32
Q12mcq1 mark
Which of the following is a valid Python statement?
2value = 10
class = 20
student_name = "Ravi" ✓
student-name = "Ravi"
Q13output1 mark
What will be the output of the following Python code?
x = 8
y = 3

print(x > 5 and y < 5)
print(x < 5 or y == 3)
Correct output: True True
Q14output1 mark
What will be the output of the following Python code?
s = "DATABASE"

print(s[0:4] + s[4:])
Correct output: DATABASE
Q15mcq1 mark
A Python program accepts a number using input() and then tries to perform arithmetic directly on that input without converting its data type. Which issue is most likely to occur?
The input is automatically converted to an integer
The input is automatically converted to a float
Arithmetic may fail because input() returns a string ✓
The program always produces a syntax error
Next Live Challenge
Mixed: Tuples + Dictionary + Modules
Class 11 · Computer Science 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...