Completed

Expressions, Type Conversion, I/O

Class 11 · Computer Science Thu, 8 Oct 2026 8:00 PM 60s / question 15 questions · 15 marks

Questions From This Challenge

Q1mcq1 mark
In Python, which of the following correctly lists arithmetic operator precedence from highest to lowest?
+ - then * / // % then **
** then * / // % then + - ✓
* / // % then + - then **
+ - then ** then * / // %
Q2mcq1 mark
What is the value of the expression 2 + 3 * 4 ** 2?
50 ✓
80
400
44
Q3mcq1 mark
When Python evaluates the expression 5 + 2.5, it automatically converts the integer 5 to a float before adding. This automatic conversion is called:
Explicit type conversion
Implicit type conversion (type coercion) ✓
Type casting
A syntax error
Q4mcq1 mark
Which built-in function is used to explicitly convert the string '25' into an integer?
str()
float()
int() ✓
bool()
Q5mcq1 mark
What is the result of int(7.9) in Python?
8
7 ✓
7.9
Error
Q6mcq1 mark
The input() function in Python, by default, returns the value entered by the user as a:
int
float
str ✓
bool
Q7mcq1 mark
A student writes: age = input('Enter your age: ') followed by next_year = age + 1. Running this code produces a TypeError. What is the most likely cause?
input() cannot accept numeric-looking text
age holds a string, and a string cannot be directly added to an integer without first converting it using int() ✓
The variable name age is a reserved keyword
print() was not called before input()
Q8mcq1 mark
What is the value of the expression 10 - 2 * 3 > 2 ** 2?
True
False ✓
4
Error
Q9mcq1 mark
Among Python's logical operators, which one has the highest precedence (is evaluated first)?
or
and
not ✓
They all have equal precedence
Q10output1 mark
What is printed when this code runs?
result = 2 + 3 * 4 - 6 / 2
print(result)
Correct output: 11.0
Q11output1 mark
What is printed when this code runs?
a = "10"
b = "20"
print(int(a) + int(b))
Correct output: 30
Q12output1 mark
What is printed when this code runs?
x = 5
y = 2.0
z = x + y
print(z)
print(type(z))
Correct output: 7.0 <class 'float'>
Q13output1 mark
What is printed when this code runs?
marks = 95
message = "Marks: " + str(marks)
print(message)
Correct output: Marks: 95
Q14output1 mark
What is printed when this code runs?
print(bool(0), bool(1), bool(-5))
Correct output: False True True
Q15output1 mark
What is printed when this code runs?
name = "Aisha"
score = 88
print("Student:", name, "Score:", score)
Correct output: Student: Aisha Score: 88
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...